/*\r
- * This class was automatically generated with\r
+ * This class was automatically generated with \r
* <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
\r
package jalview.schemabinding.version2;\r
\r
-//---------------------------------/\r
-//- Imported classes and packages -/\r
+ //---------------------------------/\r
+ //- Imported classes and packages -/\r
//---------------------------------/\r
\r
-import org.exolab.castor.xml.*;\r
+import java.io.IOException;\r
+import java.io.Reader;\r
+import java.io.Serializable;\r
+import java.io.Writer;\r
+import java.util.Enumeration;\r
+import java.util.Vector;\r
+import org.exolab.castor.xml.MarshalException;\r
+import org.exolab.castor.xml.Marshaller;\r
+import org.exolab.castor.xml.Unmarshaller;\r
+import org.exolab.castor.xml.ValidationException;\r
+import org.xml.sax.ContentHandler;\r
\r
/**\r
* Class Pdbids.\r
- *\r
+ * \r
* @version $Revision$ $Date$\r
*/\r
-public class Pdbids\r
- extends Pdbentry implements java.io.Serializable\r
+public class Pdbids extends jalview.schemabinding.version2.Pdbentry \r
+implements java.io.Serializable\r
{\r
\r
- //----------------/\r
- //- Constructors -/\r
- //----------------/\r
-\r
- public Pdbids()\r
- {\r
- super();\r
- } //-- jalview.schemabinding.version2.Pdbids()\r
-\r
- //-----------/\r
- //- Methods -/\r
- //-----------/\r
-\r
- /**\r
- * Method isValid\r
- *\r
- *\r
- *\r
- * @return boolean\r
- */\r
- public boolean isValid()\r
- {\r
- try\r
+\r
+ //--------------------------/\r
+ //- Class/Member Variables -/\r
+ //--------------------------/\r
+\r
+ /**\r
+ * Field _structureStateList\r
+ */\r
+ private java.util.Vector _structureStateList;\r
+\r
+\r
+ //----------------/\r
+ //- Constructors -/\r
+ //----------------/\r
+\r
+ public Pdbids() {\r
+ super();\r
+ _structureStateList = new Vector();\r
+ } //-- jalview.schemabinding.version2.Pdbids()\r
+\r
+\r
+ //-----------/\r
+ //- Methods -/\r
+ //-----------/\r
+\r
+ /**\r
+ * Method addStructureState\r
+ * \r
+ * \r
+ * \r
+ * @param vStructureState\r
+ */\r
+ public void addStructureState(jalview.schemabinding.version2.StructureState vStructureState)\r
+ throws java.lang.IndexOutOfBoundsException\r
+ {\r
+ _structureStateList.addElement(vStructureState);\r
+ } //-- void addStructureState(jalview.schemabinding.version2.StructureState) \r
+\r
+ /**\r
+ * Method addStructureState\r
+ * \r
+ * \r
+ * \r
+ * @param index\r
+ * @param vStructureState\r
+ */\r
+ public void addStructureState(int index, jalview.schemabinding.version2.StructureState vStructureState)\r
+ throws java.lang.IndexOutOfBoundsException\r
+ {\r
+ _structureStateList.insertElementAt(vStructureState, index);\r
+ } //-- void addStructureState(int, jalview.schemabinding.version2.StructureState) \r
+\r
+ /**\r
+ * Method enumerateStructureState\r
+ * \r
+ * \r
+ * \r
+ * @return Enumeration\r
+ */\r
+ public java.util.Enumeration enumerateStructureState()\r
+ {\r
+ return _structureStateList.elements();\r
+ } //-- java.util.Enumeration enumerateStructureState() \r
+\r
+ /**\r
+ * Method getStructureState\r
+ * \r
+ * \r
+ * \r
+ * @param index\r
+ * @return StructureState\r
+ */\r
+ public jalview.schemabinding.version2.StructureState getStructureState(int index)\r
+ throws java.lang.IndexOutOfBoundsException\r
+ {\r
+ //-- check bounds for index\r
+ if ((index < 0) || (index > _structureStateList.size())) {\r
+ throw new IndexOutOfBoundsException();\r
+ }\r
+ \r
+ return (jalview.schemabinding.version2.StructureState) _structureStateList.elementAt(index);\r
+ } //-- jalview.schemabinding.version2.StructureState getStructureState(int) \r
+\r
+ /**\r
+ * Method getStructureState\r
+ * \r
+ * \r
+ * \r
+ * @return StructureState\r
+ */\r
+ public jalview.schemabinding.version2.StructureState[] getStructureState()\r
+ {\r
+ int size = _structureStateList.size();\r
+ jalview.schemabinding.version2.StructureState[] mArray = new jalview.schemabinding.version2.StructureState[size];\r
+ for (int index = 0; index < size; index++) {\r
+ mArray[index] = (jalview.schemabinding.version2.StructureState) _structureStateList.elementAt(index);\r
+ }\r
+ return mArray;\r
+ } //-- jalview.schemabinding.version2.StructureState[] getStructureState() \r
+\r
+ /**\r
+ * Method getStructureStateCount\r
+ * \r
+ * \r
+ * \r
+ * @return int\r
+ */\r
+ public int getStructureStateCount()\r
+ {\r
+ return _structureStateList.size();\r
+ } //-- int getStructureStateCount() \r
+\r
+ /**\r
+ * Method isValid\r
+ * \r
+ * \r
+ * \r
+ * @return boolean\r
+ */\r
+ public boolean isValid()\r
+ {\r
+ try {\r
+ validate();\r
+ }\r
+ catch (org.exolab.castor.xml.ValidationException vex) {\r
+ return false;\r
+ }\r
+ return true;\r
+ } //-- boolean isValid() \r
+\r
+ /**\r
+ * Method marshal\r
+ * \r
+ * \r
+ * \r
+ * @param out\r
+ */\r
+ public void marshal(java.io.Writer out)\r
+ throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+ {\r
+ \r
+ Marshaller.marshal(this, out);\r
+ } //-- void marshal(java.io.Writer) \r
+\r
+ /**\r
+ * Method marshal\r
+ * \r
+ * \r
+ * \r
+ * @param handler\r
+ */\r
+ public void marshal(org.xml.sax.ContentHandler handler)\r
+ throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+ {\r
+ \r
+ Marshaller.marshal(this, handler);\r
+ } //-- void marshal(org.xml.sax.ContentHandler) \r
+\r
+ /**\r
+ * Method removeAllStructureState\r
+ * \r
+ */\r
+ public void removeAllStructureState()\r
{\r
- validate();\r
- }\r
- catch (org.exolab.castor.xml.ValidationException vex)\r
+ _structureStateList.removeAllElements();\r
+ } //-- void removeAllStructureState() \r
+\r
+ /**\r
+ * Method removeStructureState\r
+ * \r
+ * \r
+ * \r
+ * @param index\r
+ * @return StructureState\r
+ */\r
+ public jalview.schemabinding.version2.StructureState removeStructureState(int index)\r
+ {\r
+ java.lang.Object obj = _structureStateList.elementAt(index);\r
+ _structureStateList.removeElementAt(index);\r
+ return (jalview.schemabinding.version2.StructureState) obj;\r
+ } //-- jalview.schemabinding.version2.StructureState removeStructureState(int) \r
+\r
+ /**\r
+ * Method setStructureState\r
+ * \r
+ * \r
+ * \r
+ * @param index\r
+ * @param vStructureState\r
+ */\r
+ public void setStructureState(int index, jalview.schemabinding.version2.StructureState vStructureState)\r
+ throws java.lang.IndexOutOfBoundsException\r
+ {\r
+ //-- check bounds for index\r
+ if ((index < 0) || (index > _structureStateList.size())) {\r
+ throw new IndexOutOfBoundsException();\r
+ }\r
+ _structureStateList.setElementAt(vStructureState, index);\r
+ } //-- void setStructureState(int, jalview.schemabinding.version2.StructureState) \r
+\r
+ /**\r
+ * Method setStructureState\r
+ * \r
+ * \r
+ * \r
+ * @param structureStateArray\r
+ */\r
+ public void setStructureState(jalview.schemabinding.version2.StructureState[] structureStateArray)\r
+ {\r
+ //-- copy array\r
+ _structureStateList.removeAllElements();\r
+ for (int i = 0; i < structureStateArray.length; i++) {\r
+ _structureStateList.addElement(structureStateArray[i]);\r
+ }\r
+ } //-- void setStructureState(jalview.schemabinding.version2.StructureState) \r
+\r
+ /**\r
+ * Method unmarshal\r
+ * \r
+ * \r
+ * \r
+ * @param reader\r
+ * @return Object\r
+ */\r
+ public static java.lang.Object unmarshal(java.io.Reader reader)\r
+ throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+ {\r
+ return (jalview.schemabinding.version2.Pdbids) Unmarshaller.unmarshal(jalview.schemabinding.version2.Pdbids.class, reader);\r
+ } //-- java.lang.Object unmarshal(java.io.Reader) \r
+\r
+ /**\r
+ * Method validate\r
+ * \r
+ */\r
+ public void validate()\r
+ throws org.exolab.castor.xml.ValidationException\r
{\r
- return false;\r
- }\r
- return true;\r
- } //-- boolean isValid()\r
-\r
- /**\r
- * Method marshal\r
- *\r
- *\r
- *\r
- * @param out\r
- */\r
- public void marshal(java.io.Writer out)\r
- throws org.exolab.castor.xml.MarshalException,\r
- org.exolab.castor.xml.ValidationException\r
- {\r
-\r
- Marshaller.marshal(this, out);\r
- } //-- void marshal(java.io.Writer)\r
-\r
- /**\r
- * Method marshal\r
- *\r
- *\r
- *\r
- * @param handler\r
- */\r
- public void marshal(org.xml.sax.ContentHandler handler)\r
- throws java.io.IOException, org.exolab.castor.xml.MarshalException,\r
- org.exolab.castor.xml.ValidationException\r
- {\r
-\r
- Marshaller.marshal(this, handler);\r
- } //-- void marshal(org.xml.sax.ContentHandler)\r
-\r
- /**\r
- * Method unmarshal\r
- *\r
- *\r
- *\r
- * @param reader\r
- * @return Object\r
- */\r
- public static java.lang.Object unmarshal(java.io.Reader reader)\r
- throws org.exolab.castor.xml.MarshalException,\r
- org.exolab.castor.xml.ValidationException\r
- {\r
- return (jalview.schemabinding.version2.Pdbids) Unmarshaller.unmarshal(\r
- jalview.schemabinding.version2.Pdbids.class, reader);\r
- } //-- java.lang.Object unmarshal(java.io.Reader)\r
-\r
- /**\r
- * Method validate\r
- *\r
- */\r
- public void validate()\r
- throws org.exolab.castor.xml.ValidationException\r
- {\r
- org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.\r
- Validator();\r
- validator.validate(this);\r
- } //-- void validate()\r
+ org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+ validator.validate(this);\r
+ } //-- void validate() \r
\r
}\r