/*\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 java.io.Serializable;\r
-import java.util.Enumeration;\r
-import java.util.Vector;\r
-import org.exolab.castor.xml.Marshaller;\r
-import org.exolab.castor.xml.Unmarshaller;\r
+import java.util.*;\r
\r
/**\r
* Class PdbentryItem.\r
- * \r
+ *\r
* @version $Revision$ $Date$\r
*/\r
-public class PdbentryItem implements java.io.Serializable {\r
-\r
-\r
- //--------------------------/\r
- //- Class/Member Variables -/\r
- //--------------------------/\r
-\r
- /**\r
- * Field _propertyList\r
- */\r
- private java.util.Vector _propertyList;\r
-\r
-\r
- //----------------/\r
- //- Constructors -/\r
- //----------------/\r
-\r
- public PdbentryItem() {\r
- super();\r
- _propertyList = new Vector();\r
- } //-- jalview.schemabinding.version2.PdbentryItem()\r
-\r
-\r
- //-----------/\r
- //- Methods -/\r
- //-----------/\r
-\r
- /**\r
- * Method addProperty\r
- * \r
- * \r
- * \r
- * @param vProperty\r
- */\r
- public void addProperty(jalview.schemabinding.version2.Property vProperty)\r
- throws java.lang.IndexOutOfBoundsException\r
- {\r
- _propertyList.addElement(vProperty);\r
- } //-- void addProperty(jalview.schemabinding.version2.Property) \r
-\r
- /**\r
- * Method addProperty\r
- * \r
- * \r
- * \r
- * @param index\r
- * @param vProperty\r
- */\r
- public void addProperty(int index, jalview.schemabinding.version2.Property vProperty)\r
- throws java.lang.IndexOutOfBoundsException\r
- {\r
- _propertyList.insertElementAt(vProperty, index);\r
- } //-- void addProperty(int, jalview.schemabinding.version2.Property) \r
-\r
- /**\r
- * Method enumerateProperty\r
- * \r
- * \r
- * \r
- * @return Enumeration\r
- */\r
- public java.util.Enumeration enumerateProperty()\r
- {\r
- return _propertyList.elements();\r
- } //-- java.util.Enumeration enumerateProperty() \r
-\r
- /**\r
- * Method getProperty\r
- * \r
- * \r
- * \r
- * @param index\r
- * @return Property\r
- */\r
- public jalview.schemabinding.version2.Property getProperty(int index)\r
- throws java.lang.IndexOutOfBoundsException\r
- {\r
- //-- check bounds for index\r
- if ((index < 0) || (index > _propertyList.size())) {\r
- throw new IndexOutOfBoundsException();\r
- }\r
- \r
- return (jalview.schemabinding.version2.Property) _propertyList.elementAt(index);\r
- } //-- jalview.schemabinding.version2.Property getProperty(int) \r
-\r
- /**\r
- * Method getProperty\r
- * \r
- * \r
- * \r
- * @return Property\r
- */\r
- public jalview.schemabinding.version2.Property[] getProperty()\r
- {\r
- int size = _propertyList.size();\r
- jalview.schemabinding.version2.Property[] mArray = new jalview.schemabinding.version2.Property[size];\r
- for (int index = 0; index < size; index++) {\r
- mArray[index] = (jalview.schemabinding.version2.Property) _propertyList.elementAt(index);\r
- }\r
- return mArray;\r
- } //-- jalview.schemabinding.version2.Property[] getProperty() \r
-\r
- /**\r
- * Method getPropertyCount\r
- * \r
- * \r
- * \r
- * @return int\r
- */\r
- public int getPropertyCount()\r
- {\r
- return _propertyList.size();\r
- } //-- int getPropertyCount() \r
-\r
- /**\r
- * Method removeAllProperty\r
- * \r
- */\r
- public void removeAllProperty()\r
+public class PdbentryItem\r
+ implements java.io.Serializable\r
+{\r
+\r
+ //--------------------------/\r
+ //- Class/Member Variables -/\r
+ //--------------------------/\r
+\r
+ /**\r
+ * Field _propertyList\r
+ */\r
+ private java.util.Vector _propertyList;\r
+\r
+ //----------------/\r
+ //- Constructors -/\r
+ //----------------/\r
+\r
+ public PdbentryItem()\r
+ {\r
+ super();\r
+ _propertyList = new Vector();\r
+ } //-- jalview.schemabinding.version2.PdbentryItem()\r
+\r
+ //-----------/\r
+ //- Methods -/\r
+ //-----------/\r
+\r
+ /**\r
+ * Method addProperty\r
+ *\r
+ *\r
+ *\r
+ * @param vProperty\r
+ */\r
+ public void addProperty(jalview.schemabinding.version2.Property vProperty)\r
+ throws java.lang.IndexOutOfBoundsException\r
+ {\r
+ _propertyList.addElement(vProperty);\r
+ } //-- void addProperty(jalview.schemabinding.version2.Property)\r
+\r
+ /**\r
+ * Method addProperty\r
+ *\r
+ *\r
+ *\r
+ * @param index\r
+ * @param vProperty\r
+ */\r
+ public void addProperty(int index,\r
+ jalview.schemabinding.version2.Property vProperty)\r
+ throws java.lang.IndexOutOfBoundsException\r
+ {\r
+ _propertyList.insertElementAt(vProperty, index);\r
+ } //-- void addProperty(int, jalview.schemabinding.version2.Property)\r
+\r
+ /**\r
+ * Method enumerateProperty\r
+ *\r
+ *\r
+ *\r
+ * @return Enumeration\r
+ */\r
+ public java.util.Enumeration enumerateProperty()\r
+ {\r
+ return _propertyList.elements();\r
+ } //-- java.util.Enumeration enumerateProperty()\r
+\r
+ /**\r
+ * Method getProperty\r
+ *\r
+ *\r
+ *\r
+ * @param index\r
+ * @return Property\r
+ */\r
+ public jalview.schemabinding.version2.Property getProperty(int index)\r
+ throws java.lang.IndexOutOfBoundsException\r
+ {\r
+ //-- check bounds for index\r
+ if ( (index < 0) || (index > _propertyList.size()))\r
{\r
- _propertyList.removeAllElements();\r
- } //-- void removeAllProperty() \r
-\r
- /**\r
- * Method removeProperty\r
- * \r
- * \r
- * \r
- * @param index\r
- * @return Property\r
- */\r
- public jalview.schemabinding.version2.Property removeProperty(int index)\r
+ throw new IndexOutOfBoundsException();\r
+ }\r
+\r
+ return (jalview.schemabinding.version2.Property) _propertyList.elementAt(\r
+ index);\r
+ } //-- jalview.schemabinding.version2.Property getProperty(int)\r
+\r
+ /**\r
+ * Method getProperty\r
+ *\r
+ *\r
+ *\r
+ * @return Property\r
+ */\r
+ public jalview.schemabinding.version2.Property[] getProperty()\r
+ {\r
+ int size = _propertyList.size();\r
+ jalview.schemabinding.version2.Property[] mArray = new jalview.\r
+ schemabinding.version2.Property[size];\r
+ for (int index = 0; index < size; index++)\r
{\r
- java.lang.Object obj = _propertyList.elementAt(index);\r
- _propertyList.removeElementAt(index);\r
- return (jalview.schemabinding.version2.Property) obj;\r
- } //-- jalview.schemabinding.version2.Property removeProperty(int) \r
-\r
- /**\r
- * Method setProperty\r
- * \r
- * \r
- * \r
- * @param index\r
- * @param vProperty\r
- */\r
- public void setProperty(int index, jalview.schemabinding.version2.Property vProperty)\r
- throws java.lang.IndexOutOfBoundsException\r
+ mArray[index] = (jalview.schemabinding.version2.Property) _propertyList.\r
+ elementAt(index);\r
+ }\r
+ return mArray;\r
+ } //-- jalview.schemabinding.version2.Property[] getProperty()\r
+\r
+ /**\r
+ * Method getPropertyCount\r
+ *\r
+ *\r
+ *\r
+ * @return int\r
+ */\r
+ public int getPropertyCount()\r
+ {\r
+ return _propertyList.size();\r
+ } //-- int getPropertyCount()\r
+\r
+ /**\r
+ * Method removeAllProperty\r
+ *\r
+ */\r
+ public void removeAllProperty()\r
+ {\r
+ _propertyList.removeAllElements();\r
+ } //-- void removeAllProperty()\r
+\r
+ /**\r
+ * Method removeProperty\r
+ *\r
+ *\r
+ *\r
+ * @param index\r
+ * @return Property\r
+ */\r
+ public jalview.schemabinding.version2.Property removeProperty(int index)\r
+ {\r
+ java.lang.Object obj = _propertyList.elementAt(index);\r
+ _propertyList.removeElementAt(index);\r
+ return (jalview.schemabinding.version2.Property) obj;\r
+ } //-- jalview.schemabinding.version2.Property removeProperty(int)\r
+\r
+ /**\r
+ * Method setProperty\r
+ *\r
+ *\r
+ *\r
+ * @param index\r
+ * @param vProperty\r
+ */\r
+ public void setProperty(int index,\r
+ jalview.schemabinding.version2.Property vProperty)\r
+ throws java.lang.IndexOutOfBoundsException\r
+ {\r
+ //-- check bounds for index\r
+ if ( (index < 0) || (index > _propertyList.size()))\r
{\r
- //-- check bounds for index\r
- if ((index < 0) || (index > _propertyList.size())) {\r
- throw new IndexOutOfBoundsException();\r
- }\r
- _propertyList.setElementAt(vProperty, index);\r
- } //-- void setProperty(int, jalview.schemabinding.version2.Property) \r
-\r
- /**\r
- * Method setProperty\r
- * \r
- * \r
- * \r
- * @param propertyArray\r
- */\r
- public void setProperty(jalview.schemabinding.version2.Property[] propertyArray)\r
+ throw new IndexOutOfBoundsException();\r
+ }\r
+ _propertyList.setElementAt(vProperty, index);\r
+ } //-- void setProperty(int, jalview.schemabinding.version2.Property)\r
+\r
+ /**\r
+ * Method setProperty\r
+ *\r
+ *\r
+ *\r
+ * @param propertyArray\r
+ */\r
+ public void setProperty(jalview.schemabinding.version2.Property[]\r
+ propertyArray)\r
+ {\r
+ //-- copy array\r
+ _propertyList.removeAllElements();\r
+ for (int i = 0; i < propertyArray.length; i++)\r
{\r
- //-- copy array\r
- _propertyList.removeAllElements();\r
- for (int i = 0; i < propertyArray.length; i++) {\r
- _propertyList.addElement(propertyArray[i]);\r
- }\r
- } //-- void setProperty(jalview.schemabinding.version2.Property) \r
+ _propertyList.addElement(propertyArray[i]);\r
+ }\r
+ } //-- void setProperty(jalview.schemabinding.version2.Property)\r
\r
}\r