1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
package org.apache.myfaces.config.impl.digester.elements; |
20 | |
|
21 | |
import java.io.Serializable; |
22 | |
import java.util.ArrayList; |
23 | |
import java.util.Collection; |
24 | |
import java.util.Collections; |
25 | |
import java.util.List; |
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | 0 | public class AttributeImpl extends org.apache.myfaces.config.element.Attribute implements Serializable |
43 | |
{ |
44 | |
private List<String> _description; |
45 | |
private List<String> _displayName; |
46 | |
private List<String> _icon; |
47 | |
private String _attributeName; |
48 | |
private String _attributeClass; |
49 | |
private String _defaultValue; |
50 | |
private String _suggestedValue; |
51 | |
private List<String> _attributeExtension; |
52 | |
|
53 | |
|
54 | |
public void addDescription(String value) |
55 | |
{ |
56 | 0 | if(_description == null) |
57 | |
{ |
58 | 0 | _description = new ArrayList<String>(); |
59 | |
} |
60 | |
|
61 | 0 | _description.add(value); |
62 | 0 | } |
63 | |
|
64 | |
public Collection<? extends String> getDescriptions() |
65 | |
{ |
66 | 0 | if(_description == null) |
67 | |
{ |
68 | 0 | return Collections.emptyList(); |
69 | |
} |
70 | |
|
71 | 0 | return _description; |
72 | |
} |
73 | |
|
74 | |
public void addDisplayName(String value) |
75 | |
{ |
76 | 0 | if(_displayName == null) |
77 | |
{ |
78 | 0 | _displayName = new ArrayList<String>(); |
79 | |
} |
80 | |
|
81 | 0 | _displayName.add(value); |
82 | 0 | } |
83 | |
|
84 | |
public Collection<? extends String> getDisplayNames() |
85 | |
{ |
86 | 0 | if(_displayName == null) |
87 | |
{ |
88 | 0 | return Collections.emptyList(); |
89 | |
} |
90 | |
|
91 | 0 | return _displayName; |
92 | |
} |
93 | |
|
94 | |
public void addIcon(String value) |
95 | |
{ |
96 | 0 | if(_icon == null) |
97 | |
{ |
98 | 0 | _icon = new ArrayList<String>(); |
99 | |
} |
100 | |
|
101 | 0 | _icon.add(value); |
102 | 0 | } |
103 | |
|
104 | |
public Collection<? extends String> getIcons() |
105 | |
{ |
106 | 0 | if(_icon == null) |
107 | |
{ |
108 | 0 | return Collections.emptyList(); |
109 | |
} |
110 | |
|
111 | 0 | return _icon; |
112 | |
} |
113 | |
|
114 | |
public void setAttributeName(String attributeName) |
115 | |
{ |
116 | 0 | _attributeName = attributeName; |
117 | 0 | } |
118 | |
|
119 | |
public String getAttributeName() |
120 | |
{ |
121 | 0 | return _attributeName; |
122 | |
} |
123 | |
|
124 | |
public void setAttributeClass(String attributeClass) |
125 | |
{ |
126 | 0 | _attributeClass = attributeClass; |
127 | 0 | } |
128 | |
|
129 | |
public String getAttributeClass() |
130 | |
{ |
131 | 0 | return _attributeClass; |
132 | |
} |
133 | |
|
134 | |
public void setDefaultValue(String defaultValue) |
135 | |
{ |
136 | 0 | _defaultValue = defaultValue; |
137 | 0 | } |
138 | |
|
139 | |
public String getDefaultValue() |
140 | |
{ |
141 | 0 | return _defaultValue; |
142 | |
} |
143 | |
|
144 | |
public void setSuggestedValue(String suggestedValue) |
145 | |
{ |
146 | 0 | _suggestedValue = suggestedValue; |
147 | 0 | } |
148 | |
|
149 | |
public String getSuggestedValue() |
150 | |
{ |
151 | 0 | return _suggestedValue; |
152 | |
} |
153 | |
|
154 | |
public void addAttributeExtension(String attributeExtension) |
155 | |
{ |
156 | 0 | if(_attributeExtension == null) |
157 | |
{ |
158 | 0 | _attributeExtension = new ArrayList<String>(); |
159 | |
} |
160 | |
|
161 | 0 | _attributeExtension.add(attributeExtension); |
162 | 0 | } |
163 | |
|
164 | |
public Collection<? extends String> getAttributeExtensions() |
165 | |
{ |
166 | 0 | if(_attributeExtension == null) |
167 | |
{ |
168 | 0 | return Collections.emptyList(); |
169 | |
} |
170 | |
|
171 | 0 | return _attributeExtension; |
172 | |
} |
173 | |
} |