- return mArray;\r
- } //-- jalview.schemabinding.version2.Colour[] getColour()\r
-\r
- /**\r
- * Method getColourCount\r
- *\r
- *\r
- *\r
- * @return int\r
- */\r
- public int getColourCount()\r
- {\r
- return _colourList.size();\r
- } //-- int getColourCount()\r
-\r
- /**\r
- * Returns the value of field 'schemeName'.\r
- *\r
- * @return String\r
- * @return the value of field 'schemeName'.\r
- */\r
- public java.lang.String getSchemeName()\r
- {\r
- return this._schemeName;\r
- } //-- java.lang.String getSchemeName()\r
-\r
- /**\r
- * Method isValid\r
- *\r
- *\r
- *\r
- * @return boolean\r
- */\r
- public boolean isValid()\r
- {\r
- try\r
- {\r
- validate();\r
+\r
+ /**\r
+ * Returns the value of field 'schemeName'.\r
+ * \r
+ * @return the value of field 'SchemeName'.\r
+ */\r
+ public java.lang.String getSchemeName(\r
+ ) {\r
+ return this._schemeName;\r
+ }\r
+\r
+ /**\r
+ * Method isValid.\r
+ * \r
+ * @return true if this object is valid according to the schema\r
+ */\r
+ public boolean isValid(\r
+ ) {\r
+ try {\r
+ validate();\r
+ } catch (org.exolab.castor.xml.ValidationException vex) {\r
+ return false;\r
+ }\r
+ return true;\r
+ }\r
+\r
+ /**\r
+ * \r
+ * \r
+ * @param out\r
+ * @throws org.exolab.castor.xml.MarshalException if object is\r
+ * null or if any SAXException is thrown during marshaling\r
+ * @throws org.exolab.castor.xml.ValidationException if this\r
+ * object is an invalid instance according to the schema\r
+ */\r
+ public void marshal(\r
+ final java.io.Writer out)\r
+ throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {\r
+ Marshaller.marshal(this, out);\r
+ }\r
+\r
+ /**\r
+ * \r
+ * \r
+ * @param handler\r
+ * @throws java.io.IOException if an IOException occurs during\r
+ * marshaling\r
+ * @throws org.exolab.castor.xml.ValidationException if this\r
+ * object is an invalid instance according to the schema\r
+ * @throws org.exolab.castor.xml.MarshalException if object is\r
+ * null or if any SAXException is thrown during marshaling\r
+ */\r
+ public void marshal(\r
+ final org.xml.sax.ContentHandler handler)\r
+ throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {\r
+ Marshaller.marshal(this, handler);\r
+ }\r
+\r
+ /**\r
+ */\r
+ public void removeAllColour(\r
+ ) {\r
+ this._colourList.clear();\r
+ }\r
+\r
+ /**\r
+ * Method removeColour.\r
+ * \r
+ * @param vColour\r
+ * @return true if the object was removed from the collection.\r
+ */\r
+ public boolean removeColour(\r
+ final Colour vColour) {\r
+ boolean removed = _colourList.remove(vColour);\r
+ return removed;\r
+ }\r
+\r
+ /**\r
+ * Method removeColourAt.\r
+ * \r
+ * @param index\r
+ * @return the element removed from the collection\r
+ */\r
+ public Colour removeColourAt(\r
+ final int index) {\r
+ java.lang.Object obj = this._colourList.remove(index);\r
+ return (Colour) obj;\r
+ }\r
+\r
+ /**\r
+ * \r
+ * \r
+ * @param index\r
+ * @param vColour\r
+ * @throws java.lang.IndexOutOfBoundsException if the index\r
+ * given is outside the bounds of the collection\r
+ */\r
+ public void setColour(\r
+ final int index,\r
+ final Colour vColour)\r
+ throws java.lang.IndexOutOfBoundsException {\r
+ // check bounds for index\r
+ if (index < 0 || index >= this._colourList.size()) {\r
+ throw new IndexOutOfBoundsException("setColour: Index value '" + index + "' not in range [0.." + (this._colourList.size() - 1) + "]");\r
+ }\r
+ \r
+ this._colourList.set(index, vColour);\r