Revision 11032 trunk/frameworks/_fwAndami/src/com/iver/andami/config/generate/AndamiConfigDescriptor.java
AndamiConfigDescriptor.java | ||
---|---|---|
318 | 318 |
{ //-- local scope |
319 | 319 |
} |
320 | 320 |
desc.setValidator(fieldValidator); |
321 |
//-- _andamiOptions |
|
322 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.config.generate.AndamiOptions.class, "_andamiOptions", "andami-options", org.exolab.castor.xml.NodeType.Element); |
|
323 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() { |
|
324 |
public java.lang.Object getValue( java.lang.Object object ) |
|
325 |
throws IllegalStateException |
|
326 |
{ |
|
327 |
AndamiConfig target = (AndamiConfig) object; |
|
328 |
return target.getAndamiOptions(); |
|
329 |
} |
|
330 |
public void setValue( java.lang.Object object, java.lang.Object value) |
|
331 |
throws IllegalStateException, IllegalArgumentException |
|
332 |
{ |
|
333 |
try { |
|
334 |
AndamiConfig target = (AndamiConfig) object; |
|
335 |
target.setAndamiOptions( (com.iver.andami.config.generate.AndamiOptions) value); |
|
336 |
} |
|
337 |
catch (java.lang.Exception ex) { |
|
338 |
throw new IllegalStateException(ex.toString()); |
|
339 |
} |
|
340 |
} |
|
341 |
public java.lang.Object newInstance( java.lang.Object parent ) { |
|
342 |
return new com.iver.andami.config.generate.AndamiOptions(); |
|
343 |
} |
|
344 |
} ); |
|
345 |
desc.setHandler(handler); |
|
346 |
desc.setMultivalued(false); |
|
347 |
addFieldDescriptor(desc); |
|
348 |
|
|
349 |
//-- validation code for: _andamiOptions |
|
350 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
|
351 |
{ //-- local scope |
|
352 |
} |
|
353 |
desc.setValidator(fieldValidator); |
|
321 | 354 |
} //-- com.iver.andami.config.generate.AndamiConfigDescriptor() |
322 | 355 |
|
323 | 356 |
|
Also available in: Unified diff