-public class PdbidsDescriptor extends jalview.schemabinding.version2.descriptors.PdbentryDescriptor {\r
-\r
-\r
- //--------------------------/\r
- //- Class/Member Variables -/\r
- //--------------------------/\r
-\r
- /**\r
- * Field _elementDefinition.\r
- */\r
- private boolean _elementDefinition;\r
-\r
- /**\r
- * Field _nsPrefix.\r
- */\r
- private java.lang.String _nsPrefix;\r
-\r
- /**\r
- * Field _nsURI.\r
- */\r
- private java.lang.String _nsURI;\r
-\r
- /**\r
- * Field _xmlName.\r
- */\r
- private java.lang.String _xmlName;\r
-\r
-\r
- //----------------/\r
- //- Constructors -/\r
- //----------------/\r
-\r
- public PdbidsDescriptor() {\r
- super();\r
- setExtendsWithoutFlatten(new jalview.schemabinding.version2.descriptors.PdbentryDescriptor());\r
- _nsURI = "www.jalview.org";\r
- _xmlName = "pdbids";\r
- _elementDefinition = true;\r
- \r
- //-- set grouping compositor\r
- setCompositorAsSequence();\r
- org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;\r
- org.exolab.castor.mapping.FieldHandler handler = null;\r
- org.exolab.castor.xml.FieldValidator fieldValidator = null;\r
- //-- initialize attribute descriptors\r
- \r
- //-- initialize element descriptors\r
- \r
- //-- _structureStateList\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(jalview.schemabinding.version2.StructureState.class, "_structureStateList", "structureState", 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
- Pdbids target = (Pdbids) object;\r
- return target.getStructureState();\r
- }\r
- public void setValue( java.lang.Object object, java.lang.Object value) \r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try {\r
- Pdbids target = (Pdbids) object;\r
- target.addStructureState( (jalview.schemabinding.version2.StructureState) 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
- Pdbids target = (Pdbids) object;\r
- target.removeAllStructureState();\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 jalview.schemabinding.version2.StructureState();\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setNameSpaceURI("www.jalview.org");\r
- desc.setMultivalued(true);\r
- addFieldDescriptor(desc);\r
- \r
- //-- validation code for: _structureStateList\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- fieldValidator.setMinOccurs(0);\r
- { //-- local scope\r
+public class PdbidsDescriptor extends\r
+ jalview.schemabinding.version2.descriptors.PdbentryDescriptor\r
+{\r
+\r
+ // --------------------------/\r
+ // - Class/Member Variables -/\r
+ // --------------------------/\r
+\r
+ /**\r
+ * Field _elementDefinition.\r
+ */\r
+ private boolean _elementDefinition;\r
+\r
+ /**\r
+ * Field _nsPrefix.\r
+ */\r
+ private java.lang.String _nsPrefix;\r
+\r
+ /**\r
+ * Field _nsURI.\r
+ */\r
+ private java.lang.String _nsURI;\r
+\r
+ /**\r
+ * Field _xmlName.\r
+ */\r
+ private java.lang.String _xmlName;\r
+\r
+ // ----------------/\r
+ // - Constructors -/\r
+ // ----------------/\r
+\r
+ public PdbidsDescriptor()\r
+ {\r
+ super();\r
+ setExtendsWithoutFlatten(new jalview.schemabinding.version2.descriptors.PdbentryDescriptor());\r
+ _nsURI = "www.jalview.org";\r
+ _xmlName = "pdbids";\r
+ _elementDefinition = true;\r
+\r
+ // -- set grouping compositor\r
+ setCompositorAsSequence();\r
+ org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;\r
+ org.exolab.castor.mapping.FieldHandler handler = null;\r
+ org.exolab.castor.xml.FieldValidator fieldValidator = null;\r
+ // -- initialize attribute descriptors\r
+\r
+ // -- initialize element descriptors\r
+\r
+ // -- _structureStateList\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
+ jalview.schemabinding.version2.StructureState.class,\r
+ "_structureStateList", "structureState",\r
+ org.exolab.castor.xml.NodeType.Element);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler()\r
+ {\r
+ public java.lang.Object getValue(java.lang.Object object)\r
+ throws IllegalStateException\r
+ {\r
+ Pdbids target = (Pdbids) object;\r
+ return target.getStructureState();\r
+ }\r
+\r
+ public void setValue(java.lang.Object object, java.lang.Object value)\r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try\r
+ {\r
+ Pdbids target = (Pdbids) object;\r
+ target\r
+ .addStructureState((jalview.schemabinding.version2.StructureState) value);\r
+ } catch (java.lang.Exception ex)\r
+ {\r
+ throw new IllegalStateException(ex.toString());\r