- //-- _mappingList\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(uk.ac.vamsas.objects.core.Mapping.class, "_mappingList", "mapping", org.exolab.castor.xml.NodeType.Element);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
- public java.lang.Object getValue( java.lang.Object object ) \r
- throws IllegalStateException\r
- {\r
- SequenceType target = (SequenceType) object;\r
- return target.getMapping();\r
- }\r
- public void setValue( java.lang.Object object, java.lang.Object value) \r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try {\r
- SequenceType target = (SequenceType) object;\r
- target.addMapping( (uk.ac.vamsas.objects.core.Mapping) value);\r
- } catch (java.lang.Exception ex) {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
- public void resetValue(Object object) throws IllegalStateException, IllegalArgumentException {\r
- try {\r
- SequenceType target = (SequenceType) object;\r
- target.removeAllMapping();\r
- } catch (java.lang.Exception ex) {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
- public java.lang.Object newInstance(java.lang.Object parent) {\r
- return new uk.ac.vamsas.objects.core.Mapping();\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setNameSpaceURI("http://www.vamsas.ac.uk/schemas/1.0/vamsasTypes");\r
- desc.setMultivalued(true);\r
- addFieldDescriptor(desc);\r
- \r
- //-- validation code for: _mappingList\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- fieldValidator.setMinOccurs(0);\r
- { //-- local scope\r
- }\r
- desc.setValidator(fieldValidator);\r