added graphHeight attribute to schema (JAL-784)
[jalview.git] / src / jalview / schemabinding / version2 / PdbentryItem.java
index 3dbc99c..129bcc7 100755 (executable)
-/*\r
- * This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 1.1</a>, using an XML\r
- * Schema.\r
- * $Id$\r
- */\r
-\r
-package jalview.schemabinding.version2;\r
-\r
-/**\r
- * Class PdbentryItem.\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
-        this._propertyList = new java.util.Vector();\r
-    }\r
-\r
-\r
-      //-----------/\r
-     //- Methods -/\r
-    //-----------/\r
-\r
-    /**\r
-     * \r
-     * \r
-     * @param vProperty\r
-     * @throws java.lang.IndexOutOfBoundsException if the index\r
-     * given is outside the bounds of the collection\r
-     */\r
-    public void addProperty(\r
-            final jalview.schemabinding.version2.Property vProperty)\r
-    throws java.lang.IndexOutOfBoundsException {\r
-        this._propertyList.addElement(vProperty);\r
-    }\r
-\r
-    /**\r
-     * \r
-     * \r
-     * @param index\r
-     * @param vProperty\r
-     * @throws java.lang.IndexOutOfBoundsException if the index\r
-     * given is outside the bounds of the collection\r
-     */\r
-    public void addProperty(\r
-            final int index,\r
-            final jalview.schemabinding.version2.Property vProperty)\r
-    throws java.lang.IndexOutOfBoundsException {\r
-        this._propertyList.add(index, vProperty);\r
-    }\r
-\r
-    /**\r
-     * Method enumerateProperty.\r
-     * \r
-     * @return an Enumeration over all\r
-     * jalview.schemabinding.version2.Property elements\r
-     */\r
-    public java.util.Enumeration enumerateProperty(\r
-    ) {\r
-        return this._propertyList.elements();\r
-    }\r
-\r
-    /**\r
-     * Method getProperty.\r
-     * \r
-     * @param index\r
-     * @throws java.lang.IndexOutOfBoundsException if the index\r
-     * given is outside the bounds of the collection\r
-     * @return the value of the\r
-     * jalview.schemabinding.version2.Property at the given index\r
-     */\r
-    public jalview.schemabinding.version2.Property getProperty(\r
-            final int index)\r
-    throws java.lang.IndexOutOfBoundsException {\r
-        // check bounds for index\r
-        if (index < 0 || index >= this._propertyList.size()) {\r
-            throw new IndexOutOfBoundsException("getProperty: Index value '" + index + "' not in range [0.." + (this._propertyList.size() - 1) + "]");\r
-        }\r
-        \r
-        return (jalview.schemabinding.version2.Property) _propertyList.get(index);\r
-    }\r
-\r
-    /**\r
-     * Method getProperty.Returns the contents of the collection in\r
-     * an Array.  <p>Note:  Just in case the collection contents\r
-     * are changing in another thread, we pass a 0-length Array of\r
-     * the correct type into the API call.  This way we <i>know</i>\r
-     * that the Array returned is of exactly the correct length.\r
-     * \r
-     * @return this collection as an Array\r
-     */\r
-    public jalview.schemabinding.version2.Property[] getProperty(\r
-    ) {\r
-        jalview.schemabinding.version2.Property[] array = new jalview.schemabinding.version2.Property[0];\r
-        return (jalview.schemabinding.version2.Property[]) this._propertyList.toArray(array);\r
-    }\r
-\r
-    /**\r
-     * Method getPropertyCount.\r
-     * \r
-     * @return the size of this collection\r
-     */\r
-    public int getPropertyCount(\r
-    ) {\r
-        return this._propertyList.size();\r
-    }\r
-\r
-    /**\r
-     */\r
-    public void removeAllProperty(\r
-    ) {\r
-        this._propertyList.clear();\r
-    }\r
-\r
-    /**\r
-     * Method removeProperty.\r
-     * \r
-     * @param vProperty\r
-     * @return true if the object was removed from the collection.\r
-     */\r
-    public boolean removeProperty(\r
-            final jalview.schemabinding.version2.Property vProperty) {\r
-        boolean removed = _propertyList.remove(vProperty);\r
-        return removed;\r
-    }\r
-\r
-    /**\r
-     * Method removePropertyAt.\r
-     * \r
-     * @param index\r
-     * @return the element removed from the collection\r
-     */\r
-    public jalview.schemabinding.version2.Property removePropertyAt(\r
-            final int index) {\r
-        java.lang.Object obj = this._propertyList.remove(index);\r
-        return (jalview.schemabinding.version2.Property) obj;\r
-    }\r
-\r
-    /**\r
-     * \r
-     * \r
-     * @param index\r
-     * @param vProperty\r
-     * @throws java.lang.IndexOutOfBoundsException if the index\r
-     * given is outside the bounds of the collection\r
-     */\r
-    public void setProperty(\r
-            final int index,\r
-            final jalview.schemabinding.version2.Property vProperty)\r
-    throws java.lang.IndexOutOfBoundsException {\r
-        // check bounds for index\r
-        if (index < 0 || index >= this._propertyList.size()) {\r
-            throw new IndexOutOfBoundsException("setProperty: Index value '" + index + "' not in range [0.." + (this._propertyList.size() - 1) + "]");\r
-        }\r
-        \r
-        this._propertyList.set(index, vProperty);\r
-    }\r
-\r
-    /**\r
-     * \r
-     * \r
-     * @param vPropertyArray\r
-     */\r
-    public void setProperty(\r
-            final jalview.schemabinding.version2.Property[] vPropertyArray) {\r
-        //-- copy array\r
-        _propertyList.clear();\r
-        \r
-        for (int i = 0; i < vPropertyArray.length; i++) {\r
-                this._propertyList.add(vPropertyArray[i]);\r
-        }\r
-    }\r
-\r
-}\r
+/*
+ * This class was automatically generated with 
+ * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
+ * Schema.
+ * $Id$
+ */
+
+package jalview.schemabinding.version2;
+
+/**
+ * Class PdbentryItem.
+ * 
+ * @version $Revision$ $Date$
+ */
+public class PdbentryItem implements java.io.Serializable {
+
+
+      //--------------------------/
+     //- Class/Member Variables -/
+    //--------------------------/
+
+    /**
+     * Field _propertyList.
+     */
+    private java.util.Vector _propertyList;
+
+
+      //----------------/
+     //- Constructors -/
+    //----------------/
+
+    public PdbentryItem() {
+        super();
+        this._propertyList = new java.util.Vector();
+    }
+
+
+      //-----------/
+     //- Methods -/
+    //-----------/
+
+    /**
+     * 
+     * 
+     * @param vProperty
+     * @throws java.lang.IndexOutOfBoundsException if the index
+     * given is outside the bounds of the collection
+     */
+    public void addProperty(
+            final jalview.schemabinding.version2.Property vProperty)
+    throws java.lang.IndexOutOfBoundsException {
+        this._propertyList.addElement(vProperty);
+    }
+
+    /**
+     * 
+     * 
+     * @param index
+     * @param vProperty
+     * @throws java.lang.IndexOutOfBoundsException if the index
+     * given is outside the bounds of the collection
+     */
+    public void addProperty(
+            final int index,
+            final jalview.schemabinding.version2.Property vProperty)
+    throws java.lang.IndexOutOfBoundsException {
+        this._propertyList.add(index, vProperty);
+    }
+
+    /**
+     * Method enumerateProperty.
+     * 
+     * @return an Enumeration over all
+     * jalview.schemabinding.version2.Property elements
+     */
+    public java.util.Enumeration enumerateProperty(
+    ) {
+        return this._propertyList.elements();
+    }
+
+    /**
+     * Method getProperty.
+     * 
+     * @param index
+     * @throws java.lang.IndexOutOfBoundsException if the index
+     * given is outside the bounds of the collection
+     * @return the value of the
+     * jalview.schemabinding.version2.Property at the given index
+     */
+    public jalview.schemabinding.version2.Property getProperty(
+            final int index)
+    throws java.lang.IndexOutOfBoundsException {
+        // check bounds for index
+        if (index < 0 || index >= this._propertyList.size()) {
+            throw new IndexOutOfBoundsException("getProperty: Index value '" + index + "' not in range [0.." + (this._propertyList.size() - 1) + "]");
+        }
+        
+        return (jalview.schemabinding.version2.Property) _propertyList.get(index);
+    }
+
+    /**
+     * Method getProperty.Returns the contents of the collection in
+     * an Array.  <p>Note:  Just in case the collection contents
+     * are changing in another thread, we pass a 0-length Array of
+     * the correct type into the API call.  This way we <i>know</i>
+     * that the Array returned is of exactly the correct length.
+     * 
+     * @return this collection as an Array
+     */
+    public jalview.schemabinding.version2.Property[] getProperty(
+    ) {
+        jalview.schemabinding.version2.Property[] array = new jalview.schemabinding.version2.Property[0];
+        return (jalview.schemabinding.version2.Property[]) this._propertyList.toArray(array);
+    }
+
+    /**
+     * Method getPropertyCount.
+     * 
+     * @return the size of this collection
+     */
+    public int getPropertyCount(
+    ) {
+        return this._propertyList.size();
+    }
+
+    /**
+     */
+    public void removeAllProperty(
+    ) {
+        this._propertyList.clear();
+    }
+
+    /**
+     * Method removeProperty.
+     * 
+     * @param vProperty
+     * @return true if the object was removed from the collection.
+     */
+    public boolean removeProperty(
+            final jalview.schemabinding.version2.Property vProperty) {
+        boolean removed = _propertyList.remove(vProperty);
+        return removed;
+    }
+
+    /**
+     * Method removePropertyAt.
+     * 
+     * @param index
+     * @return the element removed from the collection
+     */
+    public jalview.schemabinding.version2.Property removePropertyAt(
+            final int index) {
+        java.lang.Object obj = this._propertyList.remove(index);
+        return (jalview.schemabinding.version2.Property) obj;
+    }
+
+    /**
+     * 
+     * 
+     * @param index
+     * @param vProperty
+     * @throws java.lang.IndexOutOfBoundsException if the index
+     * given is outside the bounds of the collection
+     */
+    public void setProperty(
+            final int index,
+            final jalview.schemabinding.version2.Property vProperty)
+    throws java.lang.IndexOutOfBoundsException {
+        // check bounds for index
+        if (index < 0 || index >= this._propertyList.size()) {
+            throw new IndexOutOfBoundsException("setProperty: Index value '" + index + "' not in range [0.." + (this._propertyList.size() - 1) + "]");
+        }
+        
+        this._propertyList.set(index, vProperty);
+    }
+
+    /**
+     * 
+     * 
+     * @param vPropertyArray
+     */
+    public void setProperty(
+            final jalview.schemabinding.version2.Property[] vPropertyArray) {
+        //-- copy array
+        _propertyList.clear();
+        
+        for (int i = 0; i < vPropertyArray.length; i++) {
+                this._propertyList.add(vPropertyArray[i]);
+        }
+    }
+
+}