1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.rewriter.rules.impl;
18
19 import org.apache.jetspeed.rewriter.rules.Attribute;
20 import org.apache.jetspeed.rewriter.rules.Rule;
21
22 /***
23 * Attribute
24 *
25 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
26 * @version $Id: AttributeImpl.java 516448 2007-03-09 16:25:47Z ate $
27 */
28 public class AttributeImpl extends IdentifiedImpl implements Attribute
29 {
30 private Rule rule;
31 private String ruleId;
32
33
34
35
36 public void setId(String id)
37 {
38 if (id != null)
39 {
40 this.id = id.toUpperCase();
41 }
42 }
43
44
45
46
47 public Rule getRule()
48 {
49 return this.rule;
50 }
51
52
53
54
55 public void setRule(Rule rule)
56 {
57 this.rule = rule;
58 }
59
60 /***
61 * Castor setter to set the rule id.
62 *
63 * @param ruleId The rule identifier.
64 */
65 public void setRuleId(String ruleId)
66 {
67 this.ruleId = ruleId;
68 }
69
70 /***
71 * Castor accessor to get the rule id.
72 *
73 * @return The rule identifier.
74 */
75 public String getRuleId()
76 {
77 return this.ruleId;
78 }
79
80 }