Revision 6614 trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/ComboScaleDescriptor.java
ComboScaleDescriptor.java | ||
---|---|---|
165 | 165 |
{ //-- local scope |
166 | 166 |
} |
167 | 167 |
desc.setValidator(fieldValidator); |
168 |
//-- _activationClass |
|
169 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_activationClass", "activation-class", org.exolab.castor.xml.NodeType.Attribute); |
|
170 |
desc.setImmutable(true); |
|
171 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() { |
|
172 |
public java.lang.Object getValue( java.lang.Object object ) |
|
173 |
throws IllegalStateException |
|
174 |
{ |
|
175 |
ComboScale target = (ComboScale) object; |
|
176 |
return target.getActivationClass(); |
|
177 |
} |
|
178 |
public void setValue( java.lang.Object object, java.lang.Object value) |
|
179 |
throws IllegalStateException, IllegalArgumentException |
|
180 |
{ |
|
181 |
try { |
|
182 |
ComboScale target = (ComboScale) object; |
|
183 |
target.setActivationClass( (java.lang.String) value); |
|
184 |
} |
|
185 |
catch (java.lang.Exception ex) { |
|
186 |
throw new IllegalStateException(ex.toString()); |
|
187 |
} |
|
188 |
} |
|
189 |
public java.lang.Object newInstance( java.lang.Object parent ) { |
|
190 |
return null; |
|
191 |
} |
|
192 |
} ); |
|
193 |
desc.setHandler(handler); |
|
194 |
desc.setRequired(true); |
|
195 |
addFieldDescriptor(desc); |
|
196 |
|
|
197 |
//-- validation code for: _activationClass |
|
198 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
|
199 |
fieldValidator.setMinOccurs(1); |
|
200 |
{ //-- local scope |
|
201 |
StringValidator typeValidator = new StringValidator(); |
|
202 |
typeValidator.setWhiteSpace("preserve"); |
|
203 |
fieldValidator.setValidator(typeValidator); |
|
204 |
} |
|
205 |
desc.setValidator(fieldValidator); |
|
206 | 168 |
//-- _actionCommand |
207 | 169 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_actionCommand", "action-command", org.exolab.castor.xml.NodeType.Attribute); |
208 | 170 |
desc.setImmutable(true); |
Also available in: Unified diff