public RawScriptTypeDescriptor() { super(); _xmlName = "RawScriptType"; _elementDefinition = false; // -- set grouping compositor setCompositorAsSequence(); org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- initialize element descriptors // -- _content desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_content", "content", org.exolab.castor.xml.NodeType.Element); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { RawScriptType target = (RawScriptType) object; return target.getContent(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { RawScriptType target = (RawScriptType) object; target.setContent((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _content fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); }
public EntryDescriptor() { super(); _nsURI = "http://xmlns.opennms.org/xsd/config/rrdtool-xport"; _xmlName = "entry"; _elementDefinition = true; org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- _content desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Entry target = (Entry) object; return target.getContent(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Entry target = (Entry) object; target.setContent((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); addFieldDescriptor(desc); // -- validation code for: _content fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- initialize attribute descriptors // -- initialize element descriptors }
public SecurityRequirementDescriptor() { super(); xmlName = "security-requirement"; XMLFieldDescriptorImpl desc = null; XMLFieldHandler handler = null; FieldValidator fieldValidator = null; // -- set grouping compositor setCompositorAsSequence(); // -- initialize attribute descriptors // -- initialize element descriptors // -- _description desc = new XMLFieldDescriptorImpl( java.lang.String.class, "_description", "description", NodeType.Element); desc.setImmutable(true); handler = (new XMLFieldHandler() { public Object getValue(Object object) throws IllegalStateException { SecurityRequirement target = (SecurityRequirement) object; return target.getDescription(); } public void setValue(Object object, Object value) throws IllegalStateException, IllegalArgumentException { try { SecurityRequirement target = (SecurityRequirement) object; target.setDescription((java.lang.String) value); } catch (Exception ex) { throw new IllegalStateException(ex.toString()); } } public Object newInstance(Object parent) { return null; } }); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _description fieldValidator = new FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope StringValidator sv = new StringValidator(); sv.setWhiteSpace("preserve"); fieldValidator.setValidator(sv); } desc.setValidator(fieldValidator); } // -- de.fhg.isst.ComponentML.SecurityRequirementDescriptor()
public TimeLimitActionTypeDescriptor() { super(); _nsURI = "http://www.adlnet.org/xsd/adlcp_v1p3"; _xmlName = "timeLimitActionType"; _elementDefinition = false; org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- _content desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { TimeLimitActionType target = (TimeLimitActionType) object; return target.getContent(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { TimeLimitActionType target = (TimeLimitActionType) object; target.setContent((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setHandler(handler); addFieldDescriptor(desc); // -- validation code for: _content fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- initialize attribute descriptors // -- initialize element descriptors }
public AT033ATDescriptor() { super(); nsURI = "http://www.evologic.com.uk/evologic/evotype"; xmlName = "AT033AT"; org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.xml.XMLFieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- _value desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_value", "value", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { AT033AT target = (AT033AT) object; return target.getValue(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { AT033AT target = (AT033AT) object; target.setValue((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }); desc.setHandler(handler); desc.setRequired(true); addFieldDescriptor(desc); // -- validation code for: _value fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope StringValidator typeValidator = new StringValidator(); typeValidator.setWhiteSpace("preserve"); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- initialize element descriptors } // -- org.artistar.tahoe.config.type.AT033ATDescriptor()
public MimeTypeTypeDescriptor() { super(); nsURI = "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"; xmlName = "mime-typeType"; elementDefinition = false; org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- _content desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { MimeTypeType target = (MimeTypeType) object; return target.getContent(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { MimeTypeType target = (MimeTypeType) object; target.setContent((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setHandler(handler); addFieldDescriptor(desc); // -- validation code for: _content fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope StringValidator typeValidator = new StringValidator(); typeValidator.setWhiteSpace("preserve"); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- initialize attribute descriptors // -- initialize element descriptors } // -- org.light.portlet.definition.MimeTypeTypeDescriptor()
public JndiDescriptor() { xmlName = "jndi"; XMLFieldDescriptorImpl desc = null; XMLFieldHandler handler = null; FieldValidator fieldValidator = null; // -- initialize attribute descriptors attributes = new XMLFieldDescriptorImpl[1]; // -- _name desc = new XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", NodeType.Attribute); desc.setImmutable(true); handler = (new XMLFieldHandler() { public Object getValue(Object object) throws IllegalStateException { Jndi target = (Jndi) object; return target.getName(); } public void setValue(Object object, Object value) throws IllegalStateException, IllegalArgumentException { try { Jndi target = (Jndi) object; target.setName((java.lang.String) value); } catch (Exception ex) { throw new IllegalStateException(ex.toString()); } } public Object newInstance(Object parent) { return null; } }); desc.setHandler(handler); desc.setRequired(true); attributes[0] = desc; // -- validation code for: _name fieldValidator = new FieldValidator(); fieldValidator.setMinOccurs(1); fieldValidator.setValidator(new StringValidator()); desc.setValidator(fieldValidator); // -- initialize element descriptors elements = new XMLFieldDescriptorImpl[0]; } // -- org.exolab.castor.jdo.conf.JndiDescriptor()
public MeteorRsMsgTypeDescriptor() { super(); nsURI = "http://schemas.pescxml.org"; xmlName = "MeteorRsMsgType"; // -- set grouping compositor setCompositorAsSequence(); org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.xml.XMLFieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- _PESCXMLVersion desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_PESCXMLVersion", "PESCXMLVersion", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { MeteorRsMsgType target = (MeteorRsMsgType) object; return target.getPESCXMLVersion(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { MeteorRsMsgType target = (MeteorRsMsgType) object; target.setPESCXMLVersion((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }); desc.setHandler(handler); desc.setRequired(true); addFieldDescriptor(desc); // -- validation code for: _PESCXMLVersion fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope StringValidator typeValidator = new StringValidator(); typeValidator.setWhiteSpace("preserve"); typeValidator.setFixed("3.0.0"); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- initialize element descriptors // -- _meteorDataProviderInfoList desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( org.nchelp.meteor.message.response.MeteorDataProviderInfo.class, "_meteorDataProviderInfoList", "MeteorDataProviderInfo", org.exolab.castor.xml.NodeType.Element); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { MeteorRsMsgType target = (MeteorRsMsgType) object; return target.getMeteorDataProviderInfo(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { MeteorRsMsgType target = (MeteorRsMsgType) object; target.addMeteorDataProviderInfo( (org.nchelp.meteor.message.response.MeteorDataProviderInfo) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return new org.nchelp.meteor.message.response.MeteorDataProviderInfo(); } }); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(true); addFieldDescriptor(desc); // -- validation code for: _meteorDataProviderInfoList fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope } desc.setValidator(fieldValidator); // -- _meteorDataAggregates desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( org.nchelp.meteor.message.response.MeteorDataAggregates.class, "_meteorDataAggregates", "MeteorDataAggregates", org.exolab.castor.xml.NodeType.Element); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { MeteorRsMsgType target = (MeteorRsMsgType) object; return target.getMeteorDataAggregates(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { MeteorRsMsgType target = (MeteorRsMsgType) object; target.setMeteorDataAggregates( (org.nchelp.meteor.message.response.MeteorDataAggregates) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return new org.nchelp.meteor.message.response.MeteorDataAggregates(); } }); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _meteorDataAggregates fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope } desc.setValidator(fieldValidator); // -- _meteorIndexProviderDataList desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( org.nchelp.meteor.message.response.MeteorIndexProviderData.class, "_meteorIndexProviderDataList", "MeteorIndexProviderData", org.exolab.castor.xml.NodeType.Element); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { MeteorRsMsgType target = (MeteorRsMsgType) object; return target.getMeteorIndexProviderData(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { MeteorRsMsgType target = (MeteorRsMsgType) object; target.addMeteorIndexProviderData( (org.nchelp.meteor.message.response.MeteorIndexProviderData) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return new org.nchelp.meteor.message.response.MeteorIndexProviderData(); } }); desc.setHandler(handler); desc.setMultivalued(true); addFieldDescriptor(desc); // -- validation code for: _meteorIndexProviderDataList fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(0); { // -- local scope } desc.setValidator(fieldValidator); } // -- org.nchelp.meteor.message.response.MeteorRsMsgTypeDescriptor()
public PremiumDtlsDescriptor() { super(); xmlName = "PremiumDtls"; // -- set grouping compositor setCompositorAsSequence(); org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- initialize element descriptors // -- _premiumTypeCd desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( au.com.suncorp.dm.policy.types.PremiumTypeCdType.class, "_premiumTypeCd", "PremiumTypeCd", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { PremiumDtls target = (PremiumDtls) object; return target.getPremiumTypeCd(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { PremiumDtls target = (PremiumDtls) object; target.setPremiumTypeCd((au.com.suncorp.dm.policy.types.PremiumTypeCdType) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; handler = new org.exolab.castor.xml.handlers.EnumFieldHandler( au.com.suncorp.dm.policy.types.PremiumTypeCdType.class, handler); desc.setImmutable(true); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _premiumTypeCd fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope } desc.setValidator(fieldValidator); // -- _inOutputCd desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( au.com.suncorp.dm.policy.types.InOutputCdType.class, "_inOutputCd", "InOutputCd", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { PremiumDtls target = (PremiumDtls) object; return target.getInOutputCd(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { PremiumDtls target = (PremiumDtls) object; target.setInOutputCd((au.com.suncorp.dm.policy.types.InOutputCdType) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; handler = new org.exolab.castor.xml.handlers.EnumFieldHandler( au.com.suncorp.dm.policy.types.InOutputCdType.class, handler); desc.setImmutable(true); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _inOutputCd fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope } desc.setValidator(fieldValidator); // -- _singleInstalmentCd desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( au.com.suncorp.dm.policy.types.SingleInstalmentCdType.class, "_singleInstalmentCd", "SingleInstalmentCd", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { PremiumDtls target = (PremiumDtls) object; return target.getSingleInstalmentCd(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { PremiumDtls target = (PremiumDtls) object; target.setSingleInstalmentCd( (au.com.suncorp.dm.policy.types.SingleInstalmentCdType) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; handler = new org.exolab.castor.xml.handlers.EnumFieldHandler( au.com.suncorp.dm.policy.types.SingleInstalmentCdType.class, handler); desc.setImmutable(true); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _singleInstalmentCd fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope } desc.setValidator(fieldValidator); // -- _premiumCompDtlsList desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( au.com.suncorp.dm.policy.PremiumCompDtls.class, "_premiumCompDtlsList", "PremiumCompDtls", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { PremiumDtls target = (PremiumDtls) object; return target.getPremiumCompDtls(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { PremiumDtls target = (PremiumDtls) object; target.addPremiumCompDtls((au.com.suncorp.dm.policy.PremiumCompDtls) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return new au.com.suncorp.dm.policy.PremiumCompDtls(); } }; desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(true); addFieldDescriptor(desc); // -- validation code for: _premiumCompDtlsList fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope } desc.setValidator(fieldValidator); } // -- au.com.suncorp.dm.policy.PremiumDtlsDescriptor()
public SelectRecordDescriptor() { super(); setExtendsWithoutFlatten( new com.cdoframework.cdolib.database.xsd.descriptors.SQLBlockTypeDescriptor()); _xmlName = "SelectRecord"; _elementDefinition = true; org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- outputId desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "outputId", "OutputId", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { SelectRecord target = (SelectRecord) object; return target.getOutputId(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { SelectRecord target = (SelectRecord) object; target.setOutputId((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: outputId fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.addPattern("\\{([a-z]|[A-Z])([a-z]|[A-Z]|[0-9]|\\.|\\[|\\])*\\}"); typeValidator.setWhiteSpace("preserve"); typeValidator.setMinLength(1); } desc.setValidator(fieldValidator); // -- recordCountId desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "recordCountId", "RecordCountId", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { SelectRecord target = (SelectRecord) object; return target.getRecordCountId(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { SelectRecord target = (SelectRecord) object; target.setRecordCountId((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: recordCountId fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.addPattern("(\\{([a-z]|[A-Z])([a-z]|[A-Z]|[0-9]|\\.|\\[|\\])*\\})?"); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- initialize element descriptors }
public MetadataTypeDescriptor() { super(); _nsURI = "http://www.topografix.com/GPX/1/1"; _xmlName = "metadataType"; _elementDefinition = false; // -- set grouping compositor setCompositorAsSequence(); org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- initialize element descriptors // -- _name desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Element); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { MetadataType target = (MetadataType) object; return target.getName(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { MetadataType target = (MetadataType) object; target.setName((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setNameSpaceURI("http://www.topografix.com/GPX/1/1"); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _name fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- _desc desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_desc", "desc", org.exolab.castor.xml.NodeType.Element); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { MetadataType target = (MetadataType) object; return target.getDesc(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { MetadataType target = (MetadataType) object; target.setDesc((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setNameSpaceURI("http://www.topografix.com/GPX/1/1"); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _desc fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- _author desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( net.sourceforge.gpstools.gpx.Author.class, "_author", "author", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { MetadataType target = (MetadataType) object; return target.getAuthor(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { MetadataType target = (MetadataType) object; target.setAuthor((net.sourceforge.gpstools.gpx.Author) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("net.sourceforge.gpstools.gpx.Author"); desc.setHandler(handler); desc.setNameSpaceURI("http://www.topografix.com/GPX/1/1"); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _author fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope } desc.setValidator(fieldValidator); // -- _copyright desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( net.sourceforge.gpstools.gpx.Copyright.class, "_copyright", "copyright", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { MetadataType target = (MetadataType) object; return target.getCopyright(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { MetadataType target = (MetadataType) object; target.setCopyright((net.sourceforge.gpstools.gpx.Copyright) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("net.sourceforge.gpstools.gpx.Copyright"); desc.setHandler(handler); desc.setNameSpaceURI("http://www.topografix.com/GPX/1/1"); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _copyright fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope } desc.setValidator(fieldValidator); // -- _metadataLinkList desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( net.sourceforge.gpstools.gpx.MetadataLink.class, "_metadataLinkList", "link", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { MetadataType target = (MetadataType) object; return target.getMetadataLink(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { MetadataType target = (MetadataType) object; target.addMetadataLink((net.sourceforge.gpstools.gpx.MetadataLink) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public void resetValue(Object object) throws IllegalStateException, IllegalArgumentException { try { MetadataType target = (MetadataType) object; target.removeAllMetadataLink(); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("net.sourceforge.gpstools.gpx.MetadataLink"); desc.setHandler(handler); desc.setNameSpaceURI("http://www.topografix.com/GPX/1/1"); desc.setMultivalued(true); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _metadataLinkList fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(0); { // -- local scope } desc.setValidator(fieldValidator); // -- _time desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.util.Date.class, "_time", "time", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { MetadataType target = (MetadataType) object; return target.getTime(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { MetadataType target = (MetadataType) object; target.setTime((java.util.Date) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return new java.util.Date(); } }; handler = new org.exolab.castor.xml.handlers.DateFieldHandler(handler); desc.setImmutable(true); desc.setSchemaType("dateTime"); desc.setHandler(handler); desc.setNameSpaceURI("http://www.topografix.com/GPX/1/1"); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _time fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.DateTimeValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.DateTimeValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _keywords desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_keywords", "keywords", org.exolab.castor.xml.NodeType.Element); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { MetadataType target = (MetadataType) object; return target.getKeywords(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { MetadataType target = (MetadataType) object; target.setKeywords((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setNameSpaceURI("http://www.topografix.com/GPX/1/1"); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _keywords fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- _bounds desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( net.sourceforge.gpstools.gpx.Bounds.class, "_bounds", "bounds", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { MetadataType target = (MetadataType) object; return target.getBounds(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { MetadataType target = (MetadataType) object; target.setBounds((net.sourceforge.gpstools.gpx.Bounds) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("net.sourceforge.gpstools.gpx.Bounds"); desc.setHandler(handler); desc.setNameSpaceURI("http://www.topografix.com/GPX/1/1"); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _bounds fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope } desc.setValidator(fieldValidator); // -- _metadataExtensions desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( net.sourceforge.gpstools.gpx.MetadataExtensions.class, "_metadataExtensions", "extensions", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { MetadataType target = (MetadataType) object; return target.getMetadataExtensions(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { MetadataType target = (MetadataType) object; target.setMetadataExtensions((net.sourceforge.gpstools.gpx.MetadataExtensions) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("net.sourceforge.gpstools.gpx.MetadataExtensions"); desc.setHandler(handler); desc.setNameSpaceURI("http://www.topografix.com/GPX/1/1"); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _metadataExtensions fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope } desc.setValidator(fieldValidator); }
public IconDescriptor() { super(); xmlName = "icon"; org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.xml.XMLFieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- _text desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_text", "text", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Icon target = (Icon) object; return target.getText(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Icon target = (Icon) object; target.setText((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }); desc.setHandler(handler); desc.setRequired(true); addFieldDescriptor(desc); // -- validation code for: _text fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope StringValidator typeValidator = new StringValidator(); typeValidator.setWhiteSpace("preserve"); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _src desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_src", "src", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Icon target = (Icon) object; return target.getSrc(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Icon target = (Icon) object; target.setSrc((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }); desc.setHandler(handler); desc.setRequired(true); addFieldDescriptor(desc); // -- validation code for: _src fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope StringValidator typeValidator = new StringValidator(); typeValidator.setWhiteSpace("preserve"); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- initialize element descriptors } // -- com.iver.andami.plugins.config.generate.IconDescriptor()
public IntervalDescriptor() { super(); _xmlName = "interval"; _elementDefinition = true; // -- set grouping compositor setCompositorAsSequence(); org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- initialize element descriptors // -- _ixBug desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Long.TYPE, "_ixBug", "ixBug", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Interval target = (Interval) object; if (!target.hasIxBug()) { return null; } return new java.lang.Long(target.getIxBug()); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Interval target = (Interval) object; // ignore null values for non optional primitives if (value == null) { return; } target.setIxBug(((java.lang.Long) value).longValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("integer"); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _ixBug fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope org.exolab.castor.xml.validators.LongValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.LongValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _ixInterval desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Long.TYPE, "_ixInterval", "ixInterval", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Interval target = (Interval) object; if (!target.hasIxInterval()) { return null; } return new java.lang.Long(target.getIxInterval()); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Interval target = (Interval) object; // ignore null values for non optional primitives if (value == null) { return; } target.setIxInterval(((java.lang.Long) value).longValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("integer"); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _ixInterval fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope org.exolab.castor.xml.validators.LongValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.LongValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _dtStart desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.util.Date.class, "_dtStart", "dtStart", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Interval target = (Interval) object; return target.getDtStart(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Interval target = (Interval) object; target.setDtStart((java.util.Date) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return new java.util.Date(); } }; handler = new org.exolab.castor.xml.handlers.DateFieldHandler(handler); desc.setImmutable(true); desc.setSchemaType("dateTime"); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _dtStart fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope org.exolab.castor.xml.validators.DateTimeValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.DateTimeValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _dtEnd desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.util.Date.class, "_dtEnd", "dtEnd", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Interval target = (Interval) object; return target.getDtEnd(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Interval target = (Interval) object; target.setDtEnd((java.util.Date) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return new java.util.Date(); } }; handler = new org.exolab.castor.xml.handlers.DateFieldHandler(handler); desc.setImmutable(true); desc.setSchemaType("dateTime"); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _dtEnd fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope org.exolab.castor.xml.validators.DateTimeValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.DateTimeValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _sTitle desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_sTitle", "sTitle", org.exolab.castor.xml.NodeType.Element); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Interval target = (Interval) object; return target.getSTitle(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Interval target = (Interval) object; target.setSTitle((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _sTitle fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- _ixPerson desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Long.TYPE, "_ixPerson", "ixPerson", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Interval target = (Interval) object; if (!target.hasIxPerson()) { return null; } return new java.lang.Long(target.getIxPerson()); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Interval target = (Interval) object; // ignore null values for non optional primitives if (value == null) { return; } target.setIxPerson(((java.lang.Long) value).longValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("integer"); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _ixPerson fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope org.exolab.castor.xml.validators.LongValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.LongValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); }
public DowntimeDescriptor() { super(); _nsURI = "http://xmlns.opennms.org/xsd/config/poller"; _xmlName = "downtime"; _elementDefinition = true; org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- _begin desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Long.TYPE, "_begin", "begin", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Downtime target = (Downtime) object; if (!target.hasBegin()) { return null; } return new java.lang.Long(target.getBegin()); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Downtime target = (Downtime) object; // ignore null values for non optional primitives if (value == null) { return; } target.setBegin(((java.lang.Long) value).longValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("long"); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _begin fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope org.exolab.castor.xml.validators.LongValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.LongValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setMinInclusive(-9223372036854775808L); typeValidator.setMaxInclusive(9223372036854775807L); } desc.setValidator(fieldValidator); // -- _end desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Long.TYPE, "_end", "end", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Downtime target = (Downtime) object; if (!target.hasEnd()) { return null; } return new java.lang.Long(target.getEnd()); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Downtime target = (Downtime) object; // if null, use delete method for optional primitives if (value == null) { target.deleteEnd(); return; } target.setEnd(((java.lang.Long) value).longValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("long"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _end fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.LongValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.LongValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setMinInclusive(-9223372036854775808L); typeValidator.setMaxInclusive(9223372036854775807L); } desc.setValidator(fieldValidator); // -- _delete desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_delete", "delete", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Downtime target = (Downtime) object; return target.getDelete(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Downtime target = (Downtime) object; target.setDelete((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _delete fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.addPattern("(yes|true)"); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- _interval desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Long.TYPE, "_interval", "interval", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Downtime target = (Downtime) object; if (!target.hasInterval()) { return null; } return new java.lang.Long(target.getInterval()); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Downtime target = (Downtime) object; // if null, use delete method for optional primitives if (value == null) { target.deleteInterval(); return; } target.setInterval(((java.lang.Long) value).longValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("long"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _interval fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.LongValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.LongValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setMinInclusive(-9223372036854775808L); typeValidator.setMaxInclusive(9223372036854775807L); } desc.setValidator(fieldValidator); // -- initialize element descriptors }
public CategoryDescriptor() { super(); _nsURI = "http://xmlns.opennms.org/xsd/rtceui"; _xmlName = "category"; _elementDefinition = true; // -- set grouping compositor setCompositorAsSequence(); org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- initialize element descriptors // -- _catlabel desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_catlabel", "catlabel", org.exolab.castor.xml.NodeType.Element); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Category target = (Category) object; return target.getCatlabel(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Category target = (Category) object; target.setCatlabel((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/rtceui"); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _catlabel fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- _catvalue desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Double.TYPE, "_catvalue", "catvalue", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Category target = (Category) object; if (!target.hasCatvalue()) { return null; } return new java.lang.Double(target.getCatvalue()); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Category target = (Category) object; // ignore null values for non optional primitives if (value == null) { return; } target.setCatvalue(((java.lang.Double) value).doubleValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("double"); desc.setHandler(handler); desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/rtceui"); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _catvalue fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope org.exolab.castor.xml.validators.DoubleValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.DoubleValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setMinInclusive(-1.7976931348623157E308); typeValidator.setMaxInclusive(1.7976931348623157E308); } desc.setValidator(fieldValidator); // -- _nodeList desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( org.opennms.netmgt.xml.rtc.Node.class, "_nodeList", "node", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Category target = (Category) object; return target.getNode(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Category target = (Category) object; target.addNode((org.opennms.netmgt.xml.rtc.Node) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public void resetValue(Object object) throws IllegalStateException, IllegalArgumentException { try { Category target = (Category) object; target.removeAllNode(); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return new org.opennms.netmgt.xml.rtc.Node(); } }; desc.setSchemaType("org.opennms.netmgt.xml.rtc.Node"); desc.setHandler(handler); desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/rtceui"); desc.setMultivalued(true); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _nodeList fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(0); { // -- local scope } desc.setValidator(fieldValidator); }
public MenuDescriptor() { super(); xmlName = "menu"; org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.xml.XMLFieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- _actionCommand desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_actionCommand", "action-command", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Menu target = (Menu) object; return target.getActionCommand(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Menu target = (Menu) object; target.setActionCommand((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }); desc.setHandler(handler); addFieldDescriptor(desc); // -- validation code for: _actionCommand fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope StringValidator typeValidator = new StringValidator(); typeValidator.setWhiteSpace("preserve"); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _key desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_key", "key", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Menu target = (Menu) object; return target.getKey(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Menu target = (Menu) object; target.setKey((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }); desc.setHandler(handler); addFieldDescriptor(desc); // -- validation code for: _key fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope StringValidator typeValidator = new StringValidator(); typeValidator.setWhiteSpace("preserve"); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _icon desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_icon", "icon", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Menu target = (Menu) object; return target.getIcon(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Menu target = (Menu) object; target.setIcon((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }); desc.setHandler(handler); addFieldDescriptor(desc); // -- validation code for: _icon fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope StringValidator typeValidator = new StringValidator(); typeValidator.setWhiteSpace("preserve"); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _tooltip desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_tooltip", "tooltip", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Menu target = (Menu) object; return target.getTooltip(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Menu target = (Menu) object; target.setTooltip((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }); desc.setHandler(handler); addFieldDescriptor(desc); // -- validation code for: _tooltip fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope StringValidator typeValidator = new StringValidator(); typeValidator.setWhiteSpace("preserve"); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _enableText desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_enableText", "enable-text", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Menu target = (Menu) object; return target.getEnableText(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Menu target = (Menu) object; target.setEnableText((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }); desc.setHandler(handler); addFieldDescriptor(desc); // -- validation code for: _enableText fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope StringValidator typeValidator = new StringValidator(); typeValidator.setWhiteSpace("preserve"); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _mnemonic desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_mnemonic", "mnemonic", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Menu target = (Menu) object; return target.getMnemonic(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Menu target = (Menu) object; target.setMnemonic((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }); desc.setHandler(handler); addFieldDescriptor(desc); // -- validation code for: _mnemonic fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope StringValidator typeValidator = new StringValidator(); typeValidator.setWhiteSpace("preserve"); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _text desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_text", "text", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Menu target = (Menu) object; return target.getText(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Menu target = (Menu) object; target.setText((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }); desc.setHandler(handler); desc.setRequired(true); addFieldDescriptor(desc); // -- validation code for: _text fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope StringValidator typeValidator = new StringValidator(); typeValidator.setWhiteSpace("preserve"); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _position desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Integer.TYPE, "_position", "position", org.exolab.castor.xml.NodeType.Attribute); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Menu target = (Menu) object; if (!target.hasPosition()) return null; return new java.lang.Integer(target.getPosition()); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Menu target = (Menu) object; // if null, use delete method for optional primitives if (value == null) { target.deletePosition(); return; } target.setPosition(((java.lang.Integer) value).intValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }); desc.setHandler(handler); addFieldDescriptor(desc); // -- validation code for: _position fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope IntegerValidator typeValidator = new IntegerValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _is_separator desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Boolean.TYPE, "_is_separator", "is_separator", org.exolab.castor.xml.NodeType.Attribute); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Menu target = (Menu) object; if (!target.hasIs_separator()) return null; return (target.getIs_separator() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Menu target = (Menu) object; // if null, use delete method for optional primitives if (value == null) { target.deleteIs_separator(); return; } target.setIs_separator(((java.lang.Boolean) value).booleanValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }); desc.setHandler(handler); addFieldDescriptor(desc); // -- validation code for: _is_separator fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope BooleanValidator typeValidator = new BooleanValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- initialize element descriptors } // -- com.iver.andami.plugins.config.generate.MenuDescriptor()
public NsclientCollectionDescriptor() { super(); _nsURI = "http://xmlns.opennms.org/xsd/config/nsclient-datacollection"; _xmlName = "nsclient-collection"; _elementDefinition = true; // -- set grouping compositor setCompositorAsSequence(); org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- _name desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { NsclientCollection target = (NsclientCollection) object; return target.getName(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { NsclientCollection target = (NsclientCollection) object; target.setName((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _name fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- initialize element descriptors // -- _rrd desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( org.opennms.netmgt.config.nsclient.Rrd.class, "_rrd", "rrd", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { NsclientCollection target = (NsclientCollection) object; return target.getRrd(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { NsclientCollection target = (NsclientCollection) object; target.setRrd((org.opennms.netmgt.config.nsclient.Rrd) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return new org.opennms.netmgt.config.nsclient.Rrd(); } }; desc.setSchemaType("org.opennms.netmgt.config.nsclient.Rrd"); desc.setHandler(handler); desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/config/nsclient-datacollection"); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _rrd fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope } desc.setValidator(fieldValidator); // -- _wpms desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( org.opennms.netmgt.config.nsclient.Wpms.class, "_wpms", "wpms", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { NsclientCollection target = (NsclientCollection) object; return target.getWpms(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { NsclientCollection target = (NsclientCollection) object; target.setWpms((org.opennms.netmgt.config.nsclient.Wpms) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return new org.opennms.netmgt.config.nsclient.Wpms(); } }; desc.setSchemaType("org.opennms.netmgt.config.nsclient.Wpms"); desc.setHandler(handler); desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/config/nsclient-datacollection"); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _wpms fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope } desc.setValidator(fieldValidator); }
public WdbElementDescriptor() { super(); xmlName = "wdbElement"; org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- _name desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { WdbElement target = (WdbElement) object; return target.getName(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { WdbElement target = (WdbElement) object; target.setName((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _name fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope StringValidator typeValidator = new StringValidator(); typeValidator.setWhiteSpace("preserve"); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _type desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_type", "type", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { WdbElement target = (WdbElement) object; return target.getType(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { WdbElement target = (WdbElement) object; target.setType((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _type fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope StringValidator typeValidator = new StringValidator(); typeValidator.setWhiteSpace("preserve"); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _size desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Integer.TYPE, "_size", "size", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { WdbElement target = (WdbElement) object; if (!target.hasSize()) return null; return new java.lang.Integer(target.getSize()); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { WdbElement target = (WdbElement) object; // if null, use delete method for optional primitives if (value == null) { target.deleteSize(); return; } target.setSize(((java.lang.Integer) value).intValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _size fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope IntegerValidator typeValidator = new IntegerValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- initialize element descriptors } // -- com.gele.tools.wow.wdbearmanager.castor.WdbElementDescriptor()
public AuditMgrRespDescriptor() { super(); xmlName = "auditMgrResp"; // -- set grouping compositor setCompositorAsChoice(); XMLFieldDescriptorImpl desc = null; XMLFieldHandler handler = null; FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- initialize element descriptors // -- _auditLogEntriesList desc = new XMLFieldDescriptorImpl( AuditLogEntries.class, "_auditLogEntriesList", "auditLogEntries", NodeType.Element); handler = (new XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { AuditMgrResp target = (AuditMgrResp) object; return target.getAuditLogEntries(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { AuditMgrResp target = (AuditMgrResp) object; target.addAuditLogEntries((AuditLogEntries) value); } catch (Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return new AuditLogEntries(); } }); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(true); addFieldDescriptor(desc); // -- validation code for: _auditLogEntriesList fieldValidator = new FieldValidator(); fieldValidator.setMinOccurs(0); desc.setValidator(fieldValidator); // -- _noDataResponse desc = new XMLFieldDescriptorImpl( java.lang.String.class, "_noDataResponse", "noDataResponse", NodeType.Element); desc.setImmutable(true); handler = (new XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { AuditMgrResp target = (AuditMgrResp) object; return target.getNoDataResponse(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { AuditMgrResp target = (AuditMgrResp) object; target.setNoDataResponse((java.lang.String) value); } catch (Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _noDataResponse fieldValidator = new FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope StringValidator sv = new StringValidator(); sv.setWhiteSpace("preserve"); fieldValidator.setValidator(sv); } desc.setValidator(fieldValidator); } // -- com.cisco.eManager.common.audit2.AuditMgrRespDescriptor()
public ReadmailProtocolDescriptor() { super(); _nsURI = "http://xmlns.opennms.org/xsd/mail-transport-test"; _xmlName = "readmail-protocol"; _elementDefinition = true; org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- _transport desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_transport", "transport", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { ReadmailProtocol target = (ReadmailProtocol) object; return target.getTransport(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { ReadmailProtocol target = (ReadmailProtocol) object; target.setTransport((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _transport fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.addPattern("pop3|pop3s|imap|imaps"); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- _sslEnable desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Boolean.TYPE, "_sslEnable", "ssl-enable", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { ReadmailProtocol target = (ReadmailProtocol) object; if (!target.hasSslEnable()) { return null; } return (target.getSslEnable() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { ReadmailProtocol target = (ReadmailProtocol) object; // if null, use delete method for optional primitives if (value == null) { target.deleteSslEnable(); return; } target.setSslEnable(((java.lang.Boolean) value).booleanValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("boolean"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _sslEnable fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.BooleanValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _startTls desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Boolean.TYPE, "_startTls", "start-tls", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { ReadmailProtocol target = (ReadmailProtocol) object; if (!target.hasStartTls()) { return null; } return (target.getStartTls() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { ReadmailProtocol target = (ReadmailProtocol) object; // if null, use delete method for optional primitives if (value == null) { target.deleteStartTls(); return; } target.setStartTls(((java.lang.Boolean) value).booleanValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("boolean"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _startTls fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.BooleanValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- initialize element descriptors }
public MgmtPolicyDescriptor() { super(); xmlName = "MgmtPolicy"; // -- set grouping compositor setCompositorAsSequence(); org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.xml.XMLFieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- initialize element descriptors // -- _id desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( com.cisco.eManager.common.inventory2.ManagedObjectId.class, "_id", "id", org.exolab.castor.xml.NodeType.Element); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { MgmtPolicy target = (MgmtPolicy) object; return target.getId(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { MgmtPolicy target = (MgmtPolicy) object; target.setId((com.cisco.eManager.common.inventory2.ManagedObjectId) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return new com.cisco.eManager.common.inventory2.ManagedObjectId(); } }); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _id fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope } desc.setValidator(fieldValidator); // -- _name desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Element); desc.setImmutable(true); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { MgmtPolicy target = (MgmtPolicy) object; return target.getName(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { MgmtPolicy target = (MgmtPolicy) object; target.setName((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _name fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope StringValidator typeValidator = new StringValidator(); typeValidator.setWhiteSpace("preserve"); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _pathname desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_pathname", "pathname", org.exolab.castor.xml.NodeType.Element); desc.setImmutable(true); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { MgmtPolicy target = (MgmtPolicy) object; return target.getPathname(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { MgmtPolicy target = (MgmtPolicy) object; target.setPathname((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _pathname fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope StringValidator typeValidator = new StringValidator(); typeValidator.setWhiteSpace("preserve"); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _state desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( com.cisco.eManager.common.inventory2.MgmtPolicyState.class, "_state", "state", org.exolab.castor.xml.NodeType.Element); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { MgmtPolicy target = (MgmtPolicy) object; return target.getState(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { MgmtPolicy target = (MgmtPolicy) object; target.setState((com.cisco.eManager.common.inventory2.MgmtPolicyState) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return new com.cisco.eManager.common.inventory2.MgmtPolicyState(); } }); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _state fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope } desc.setValidator(fieldValidator); } // -- com.cisco.eManager.common.inventory2.MgmtPolicyDescriptor()
public PackageDescriptor() { super(); _nsURI = "http://xmlns.opennms.org/xsd/config/linkd"; _xmlName = "package"; _elementDefinition = true; // -- set grouping compositor setCompositorAsSequence(); org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- _name desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Package target = (Package) object; return target.getName(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; target.setName((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _name fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- _snmp_poll_interval desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Long.TYPE, "_snmp_poll_interval", "snmp_poll_interval", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Package target = (Package) object; if (!target.hasSnmp_poll_interval()) { return null; } return new java.lang.Long(target.getSnmp_poll_interval()); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; // if null, use delete method for optional primitives if (value == null) { target.deleteSnmp_poll_interval(); return; } target.setSnmp_poll_interval(((java.lang.Long) value).longValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("long"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _snmp_poll_interval fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.LongValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.LongValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setMinInclusive(-9223372036854775808L); typeValidator.setMaxInclusive(9223372036854775807L); } desc.setValidator(fieldValidator); // -- _discovery_link_interval desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Long.TYPE, "_discovery_link_interval", "discovery_link_interval", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Package target = (Package) object; if (!target.hasDiscovery_link_interval()) { return null; } return new java.lang.Long(target.getDiscovery_link_interval()); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; // if null, use delete method for optional primitives if (value == null) { target.deleteDiscovery_link_interval(); return; } target.setDiscovery_link_interval(((java.lang.Long) value).longValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("long"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _discovery_link_interval fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.LongValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.LongValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setMinInclusive(-9223372036854775808L); typeValidator.setMaxInclusive(9223372036854775807L); } desc.setValidator(fieldValidator); // -- _autoDiscovery desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Boolean.TYPE, "_autoDiscovery", "auto-discovery", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Package target = (Package) object; if (!target.hasAutoDiscovery()) { return null; } return (target.getAutoDiscovery() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; // if null, use delete method for optional primitives if (value == null) { target.deleteAutoDiscovery(); return; } target.setAutoDiscovery(((java.lang.Boolean) value).booleanValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("boolean"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _autoDiscovery fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.BooleanValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _enableDiscoveryDownload desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Boolean.TYPE, "_enableDiscoveryDownload", "enable-discovery-download", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Package target = (Package) object; if (!target.hasEnableDiscoveryDownload()) { return null; } return (target.getEnableDiscoveryDownload() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; // if null, use delete method for optional primitives if (value == null) { target.deleteEnableDiscoveryDownload(); return; } target.setEnableDiscoveryDownload(((java.lang.Boolean) value).booleanValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("boolean"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _enableDiscoveryDownload fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.BooleanValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _enableVlanDiscovery desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Boolean.TYPE, "_enableVlanDiscovery", "enable-vlan-discovery", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Package target = (Package) object; if (!target.hasEnableVlanDiscovery()) { return null; } return (target.getEnableVlanDiscovery() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; // if null, use delete method for optional primitives if (value == null) { target.deleteEnableVlanDiscovery(); return; } target.setEnableVlanDiscovery(((java.lang.Boolean) value).booleanValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("boolean"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _enableVlanDiscovery fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.BooleanValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _useCdpDiscovery desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Boolean.TYPE, "_useCdpDiscovery", "use-cdp-discovery", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Package target = (Package) object; if (!target.hasUseCdpDiscovery()) { return null; } return (target.getUseCdpDiscovery() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; // if null, use delete method for optional primitives if (value == null) { target.deleteUseCdpDiscovery(); return; } target.setUseCdpDiscovery(((java.lang.Boolean) value).booleanValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("boolean"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _useCdpDiscovery fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.BooleanValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _useIpRouteDiscovery desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Boolean.TYPE, "_useIpRouteDiscovery", "use-ip-route-discovery", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Package target = (Package) object; if (!target.hasUseIpRouteDiscovery()) { return null; } return (target.getUseIpRouteDiscovery() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; // if null, use delete method for optional primitives if (value == null) { target.deleteUseIpRouteDiscovery(); return; } target.setUseIpRouteDiscovery(((java.lang.Boolean) value).booleanValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("boolean"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _useIpRouteDiscovery fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.BooleanValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _useBridgeDiscovery desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Boolean.TYPE, "_useBridgeDiscovery", "use-bridge-discovery", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Package target = (Package) object; if (!target.hasUseBridgeDiscovery()) { return null; } return (target.getUseBridgeDiscovery() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; // if null, use delete method for optional primitives if (value == null) { target.deleteUseBridgeDiscovery(); return; } target.setUseBridgeDiscovery(((java.lang.Boolean) value).booleanValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("boolean"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _useBridgeDiscovery fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.BooleanValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _saveRouteTable desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Boolean.TYPE, "_saveRouteTable", "save-route-table", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Package target = (Package) object; if (!target.hasSaveRouteTable()) { return null; } return (target.getSaveRouteTable() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; // if null, use delete method for optional primitives if (value == null) { target.deleteSaveRouteTable(); return; } target.setSaveRouteTable(((java.lang.Boolean) value).booleanValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("boolean"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _saveRouteTable fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.BooleanValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _saveStpNodeTable desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Boolean.TYPE, "_saveStpNodeTable", "save-stp-node-table", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Package target = (Package) object; if (!target.hasSaveStpNodeTable()) { return null; } return (target.getSaveStpNodeTable() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; // if null, use delete method for optional primitives if (value == null) { target.deleteSaveStpNodeTable(); return; } target.setSaveStpNodeTable(((java.lang.Boolean) value).booleanValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("boolean"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _saveStpNodeTable fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.BooleanValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _saveStpInterfaceTable desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Boolean.TYPE, "_saveStpInterfaceTable", "save-stp-interface-table", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Package target = (Package) object; if (!target.hasSaveStpInterfaceTable()) { return null; } return (target.getSaveStpInterfaceTable() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; // if null, use delete method for optional primitives if (value == null) { target.deleteSaveStpInterfaceTable(); return; } target.setSaveStpInterfaceTable(((java.lang.Boolean) value).booleanValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("boolean"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _saveStpInterfaceTable fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.BooleanValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _forceIpRouteDiscoveryOnEthernet desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Boolean.TYPE, "_forceIpRouteDiscoveryOnEthernet", "force-ip-route-discovery-on-ethernet", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Package target = (Package) object; if (!target.hasForceIpRouteDiscoveryOnEthernet()) { return null; } return (target.getForceIpRouteDiscoveryOnEthernet() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; // if null, use delete method for optional primitives if (value == null) { target.deleteForceIpRouteDiscoveryOnEthernet(); return; } target.setForceIpRouteDiscoveryOnEthernet(((java.lang.Boolean) value).booleanValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("boolean"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _forceIpRouteDiscoveryOnEthernet fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.BooleanValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- initialize element descriptors // -- _filter desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( org.opennms.netmgt.config.linkd.Filter.class, "_filter", "filter", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Package target = (Package) object; return target.getFilter(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; target.setFilter((org.opennms.netmgt.config.linkd.Filter) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return new org.opennms.netmgt.config.linkd.Filter(); } }; desc.setSchemaType("org.opennms.netmgt.config.linkd.Filter"); desc.setHandler(handler); desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/config/linkd"); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _filter fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope } desc.setValidator(fieldValidator); // -- _specificList desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_specificList", "specific", org.exolab.castor.xml.NodeType.Element); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Package target = (Package) object; return target.getSpecific(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; target.addSpecific((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public void resetValue(Object object) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; target.removeAllSpecific(); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/config/linkd"); desc.setMultivalued(true); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _specificList fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(0); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- _includeRangeList desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( org.opennms.netmgt.config.linkd.IncludeRange.class, "_includeRangeList", "include-range", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Package target = (Package) object; return target.getIncludeRange(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; target.addIncludeRange((org.opennms.netmgt.config.linkd.IncludeRange) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public void resetValue(Object object) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; target.removeAllIncludeRange(); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return new org.opennms.netmgt.config.linkd.IncludeRange(); } }; desc.setSchemaType("org.opennms.netmgt.config.linkd.IncludeRange"); desc.setHandler(handler); desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/config/linkd"); desc.setMultivalued(true); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _includeRangeList fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(0); { // -- local scope } desc.setValidator(fieldValidator); // -- _excludeRangeList desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( org.opennms.netmgt.config.linkd.ExcludeRange.class, "_excludeRangeList", "exclude-range", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Package target = (Package) object; return target.getExcludeRange(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; target.addExcludeRange((org.opennms.netmgt.config.linkd.ExcludeRange) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public void resetValue(Object object) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; target.removeAllExcludeRange(); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return new org.opennms.netmgt.config.linkd.ExcludeRange(); } }; desc.setSchemaType("org.opennms.netmgt.config.linkd.ExcludeRange"); desc.setHandler(handler); desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/config/linkd"); desc.setMultivalued(true); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _excludeRangeList fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(0); { // -- local scope } desc.setValidator(fieldValidator); // -- _includeUrlList desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_includeUrlList", "include-url", org.exolab.castor.xml.NodeType.Element); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Package target = (Package) object; return target.getIncludeUrl(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; target.addIncludeUrl((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public void resetValue(Object object) throws IllegalStateException, IllegalArgumentException { try { Package target = (Package) object; target.removeAllIncludeUrl(); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/config/linkd"); desc.setMultivalued(true); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _includeUrlList fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(0); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); }
public DestinationPortDetailsTypeDescriptor() { super(); _xmlName = "DestinationPortDetailsType"; _elementDefinition = false; // -- set grouping compositor setCompositorAsSequence(); org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- initialize element descriptors // -- _destinationPort desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_destinationPort", "DestinationPort", org.exolab.castor.xml.NodeType.Element); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { DestinationPortDetailsType target = (DestinationPortDetailsType) object; return target.getDestinationPort(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { DestinationPortDetailsType target = (DestinationPortDetailsType) object; target.setDestinationPort((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _destinationPort fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- _estimatedArrival desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( com.ups.tracking.trackReply.EstimatedArrival.class, "_estimatedArrival", "EstimatedArrival", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { DestinationPortDetailsType target = (DestinationPortDetailsType) object; return target.getEstimatedArrival(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { DestinationPortDetailsType target = (DestinationPortDetailsType) object; target.setEstimatedArrival((com.ups.tracking.trackReply.EstimatedArrival) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return new com.ups.tracking.trackReply.EstimatedArrival(); } }; desc.setSchemaType("com.ups.tracking.trackReply.EstimatedArrival"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _estimatedArrival fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope } desc.setValidator(fieldValidator); }
public SeriesDescriptor() { super(); xmlName = "series"; elementDefinition = true; // -- set grouping compositor setCompositorAsSequence(); org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- _seriesColor desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_seriesColor", "series-color", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Series target = (Series) object; return target.getSeriesColor(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Series target = (Series) object; target.setSeriesColor((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _seriesColor fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator = new org.exolab.castor.xml.validators.StringValidator(); typeValidator.setWhiteSpace("preserve"); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- initialize element descriptors // -- _seriesName desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_seriesName", "series-name", org.exolab.castor.xml.NodeType.Element); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Series target = (Series) object; return target.getSeriesName(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Series target = (Series) object; target.setSeriesName((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _seriesName fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator = new org.exolab.castor.xml.validators.StringValidator(); typeValidator.setWhiteSpace("preserve"); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); } // -- org.pentaho.jfreereport.castormodel.reportspec.SeriesDescriptor()
/*
public CacheTypeMappingDescriptor() { super(); nsURI = "http://castor.exolab.org/"; xmlName = "cache-type"; elementDefinition = true; // -- set grouping compositor setCompositorAsSequence(); org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- _type desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_type", "type", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { CacheTypeMapping target = (CacheTypeMapping) object; return target.getType(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { CacheTypeMapping target = (CacheTypeMapping) object; target.setType((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _type fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator = new org.exolab.castor.xml.validators.StringValidator(); typeValidator.setWhiteSpace("preserve"); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _debug desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Boolean.TYPE, "_debug", "debug", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { CacheTypeMapping target = (CacheTypeMapping) object; if (!target.hasDebug()) return null; return (target.getDebug() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { CacheTypeMapping target = (CacheTypeMapping) object; // if null, use delete method for optional primitives if (value == null) { target.deleteDebug(); return; } target.setDebug(((java.lang.Boolean) value).booleanValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _debug fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.BooleanValidator typeValidator = new org.exolab.castor.xml.validators.BooleanValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- _capacity desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.Long.TYPE, "_capacity", "capacity", org.exolab.castor.xml.NodeType.Attribute); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { CacheTypeMapping target = (CacheTypeMapping) object; if (!target.hasCapacity()) return null; return new java.lang.Long(target.getCapacity()); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { CacheTypeMapping target = (CacheTypeMapping) object; // if null, use delete method for optional primitives if (value == null) { target.deleteCapacity(); return; } target.setCapacity(((java.lang.Long) value).longValue()); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _capacity fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.IntegerValidator typeValidator = new org.exolab.castor.xml.validators.IntegerValidator(); fieldValidator.setValidator(typeValidator); } desc.setValidator(fieldValidator); // -- initialize element descriptors // -- _paramList desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( org.exolab.castor.mapping.xml.Param.class, "_paramList", "param", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { CacheTypeMapping target = (CacheTypeMapping) object; return target.getParam(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { CacheTypeMapping target = (CacheTypeMapping) object; target.addParam((org.exolab.castor.mapping.xml.Param) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return new org.exolab.castor.mapping.xml.Param(); } }; desc.setHandler(handler); desc.setNameSpaceURI("http://castor.exolab.org/"); desc.setMultivalued(true); addFieldDescriptor(desc); // -- validation code for: _paramList fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(0); { // -- local scope } desc.setValidator(fieldValidator); } // -- org.exolab.castor.mapping.xml.CacheTypeMappingDescriptor()
public ParameterDescriptor() { super(); _nsURI = "http://xmlns.opennms.org/xsd/config/datacollection"; _xmlName = "parameter"; _elementDefinition = true; org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- _key desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_key", "key", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Parameter target = (Parameter) object; return target.getKey(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Parameter target = (Parameter) object; target.setKey((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _key fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- _value desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_value", "value", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Parameter target = (Parameter) object; return target.getValue(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Parameter target = (Parameter) object; target.setValue((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _value fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- initialize element descriptors }
public ViewInfoDescriptor() { super(); _nsURI = "http://xmlns.opennms.org/xsd/report/availability"; _xmlName = "viewInfo"; _elementDefinition = true; // -- set grouping compositor setCompositorAsSequence(); org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- initialize element descriptors // -- _viewName desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_viewName", "viewName", org.exolab.castor.xml.NodeType.Element); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { ViewInfo target = (ViewInfo) object; return target.getViewName(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { ViewInfo target = (ViewInfo) object; target.setViewName((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/report/availability"); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _viewName fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- _viewTitle desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_viewTitle", "viewTitle", org.exolab.castor.xml.NodeType.Element); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { ViewInfo target = (ViewInfo) object; return target.getViewTitle(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { ViewInfo target = (ViewInfo) object; target.setViewTitle((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/report/availability"); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _viewTitle fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- _viewComments desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_viewComments", "viewComments", org.exolab.castor.xml.NodeType.Element); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { ViewInfo target = (ViewInfo) object; return target.getViewComments(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { ViewInfo target = (ViewInfo) object; target.setViewComments((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/report/availability"); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _viewComments fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); }
public AutoacknowledgeDescriptor() { super(); _nsURI = "http://xmlns.opennms.org/xsd/eventconf"; _xmlName = "autoacknowledge"; _elementDefinition = true; org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- _content desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Autoacknowledge target = (Autoacknowledge) object; return target.getContent(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Autoacknowledge target = (Autoacknowledge) object; target.setContent((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); addFieldDescriptor(desc); // -- validation code for: _content fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- initialize attribute descriptors // -- _state desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_state", "state", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { Autoacknowledge target = (Autoacknowledge) object; return target.getState(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { Autoacknowledge target = (Autoacknowledge) object; target.setState((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _state fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.addPattern("(on|off)"); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- initialize element descriptors }
public RuleSetDescriptor() { super(); _nsURI = "http://xmlns.opennms.org/xsd/drools-engine"; _xmlName = "rule-set"; _elementDefinition = true; // -- set grouping compositor setCompositorAsSequence(); org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- _name desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { RuleSet target = (RuleSet) object; return target.getName(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { RuleSet target = (RuleSet) object; target.setName((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); // -- validation code for: _name fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- initialize element descriptors // -- _ruleFileList desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_ruleFileList", "rule-file", org.exolab.castor.xml.NodeType.Element); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { RuleSet target = (RuleSet) object; return target.getRuleFile(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { RuleSet target = (RuleSet) object; target.addRuleFile((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public void resetValue(Object object) throws IllegalStateException, IllegalArgumentException { try { RuleSet target = (RuleSet) object; target.removeAllRuleFile(); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/drools-engine"); desc.setRequired(true); desc.setMultivalued(true); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _ruleFileList fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- _eventList desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_eventList", "event", org.exolab.castor.xml.NodeType.Element); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { RuleSet target = (RuleSet) object; return target.getEvent(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { RuleSet target = (RuleSet) object; target.addEvent((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public void resetValue(Object object) throws IllegalStateException, IllegalArgumentException { try { RuleSet target = (RuleSet) object; target.removeAllEvent(); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/drools-engine"); desc.setRequired(true); desc.setMultivalued(true); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _eventList fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- _appContext desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( java.lang.String.class, "_appContext", "app-context", org.exolab.castor.xml.NodeType.Element); desc.setImmutable(true); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { RuleSet target = (RuleSet) object; return target.getAppContext(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { RuleSet target = (RuleSet) object; target.setAppContext((java.lang.String) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("string"); desc.setHandler(handler); desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/drools-engine"); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _appContext fieldValidator = new org.exolab.castor.xml.FieldValidator(); { // -- local scope org.exolab.castor.xml.validators.StringValidator typeValidator; typeValidator = new org.exolab.castor.xml.validators.StringValidator(); fieldValidator.setValidator(typeValidator); typeValidator.setWhiteSpace("preserve"); } desc.setValidator(fieldValidator); // -- _globalList desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( org.opennms.netmgt.correlation.drools.config.Global.class, "_globalList", "global", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { RuleSet target = (RuleSet) object; return target.getGlobal(); } @Override public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { RuleSet target = (RuleSet) object; target.addGlobal((org.opennms.netmgt.correlation.drools.config.Global) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public void resetValue(Object object) throws IllegalStateException, IllegalArgumentException { try { RuleSet target = (RuleSet) object; target.removeAllGlobal(); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return new org.opennms.netmgt.correlation.drools.config.Global(); } }; desc.setSchemaType("org.opennms.netmgt.correlation.drools.config.Global"); desc.setHandler(handler); desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/drools-engine"); desc.setMultivalued(true); addFieldDescriptor(desc); addSequenceElement(desc); // -- validation code for: _globalList fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(0); { // -- local scope } desc.setValidator(fieldValidator); }