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 java.util.ArrayList;
20 import java.util.Collection;
21
22 import org.apache.jetspeed.rewriter.rules.Tag;
23
24 /***
25 * Tag
26 *
27 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
28 * @version $Id: TagImpl.java 516448 2007-03-09 16:25:47Z ate $
29 */
30 public class TagImpl extends IdentifiedImpl implements Tag
31 {
32 private boolean remove = false;
33 private boolean strip = false;
34 private Collection attributes = new ArrayList();
35
36
37
38
39 public void setId(String id)
40 {
41 if (id != null)
42 {
43 this.id = id.toUpperCase();
44 }
45 }
46
47
48
49
50 public boolean getRemove()
51 {
52 return remove;
53 }
54
55
56
57
58 public void setRemove(boolean b)
59 {
60 remove = b;
61 }
62
63 public String toString()
64 {
65 return id;
66 }
67
68 /***
69 * Castor setter to set attributes for a Tag.
70 *
71 * @param attributes
72 */
73 public void setAttributes(Collection attributes)
74 {
75 this.attributes = attributes;
76 }
77
78 /***
79 * Castor getter to get attributes for a Tag.
80 *
81 * @param attributes
82 */
83 public Collection getAttributes()
84 {
85 return this.attributes;
86 }
87
88
89 /***
90 * @return
91 */
92 public boolean getStrip()
93 {
94 return strip;
95 }
96
97 /***
98 * @param b
99 */
100 public void setStrip(boolean b)
101 {
102 strip = b;
103 }
104
105 }