- /**\r
- * Method addColour\r
- * \r
- * \r
- * \r
- * @param vColour\r
- */\r
- public void addColour(jalview.schemabinding.version2.Colour vColour)\r
- throws java.lang.IndexOutOfBoundsException\r
- {\r
- _colourList.addElement(vColour);\r
- } //-- void addColour(jalview.schemabinding.version2.Colour) \r
-\r
- /**\r
- * Method addColour\r
- * \r
- * \r
- * \r
- * @param index\r
- * @param vColour\r
- */\r
- public void addColour(int index, jalview.schemabinding.version2.Colour vColour)\r
- throws java.lang.IndexOutOfBoundsException\r
- {\r
- _colourList.insertElementAt(vColour, index);\r
- } //-- void addColour(int, jalview.schemabinding.version2.Colour) \r
-\r
- /**\r
- * Method enumerateColour\r
- * \r
- * \r
- * \r
- * @return Enumeration\r
- */\r
- public java.util.Enumeration enumerateColour()\r
- {\r
- return _colourList.elements();\r
- } //-- java.util.Enumeration enumerateColour() \r
-\r
- /**\r
- * Method getColour\r
- * \r
- * \r
- * \r
- * @param index\r
- * @return Colour\r
- */\r
- public jalview.schemabinding.version2.Colour getColour(int index)\r
- throws java.lang.IndexOutOfBoundsException\r
- {\r
- //-- check bounds for index\r
- if ((index < 0) || (index > _colourList.size())) {\r
- throw new IndexOutOfBoundsException();\r
- }\r
- \r
- return (jalview.schemabinding.version2.Colour) _colourList.elementAt(index);\r
- } //-- jalview.schemabinding.version2.Colour getColour(int) \r
-\r
- /**\r
- * Method getColour\r
- * \r
- * \r
- * \r
- * @return Colour\r
- */\r
- public jalview.schemabinding.version2.Colour[] getColour()\r
- {\r
- int size = _colourList.size();\r
- jalview.schemabinding.version2.Colour[] mArray = new jalview.schemabinding.version2.Colour[size];\r
- for (int index = 0; index < size; index++) {\r
- mArray[index] = (jalview.schemabinding.version2.Colour) _colourList.elementAt(index);\r
- }\r
- 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
- 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