- /**\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
- * Method removeAlcodMap.\r
- * \r
- * @param vAlcodMap\r
- * @return true if the object was removed from the collection.\r
- */\r
- public boolean removeAlcodMap(\r
- final jalview.schemabinding.version2.AlcodMap vAlcodMap) {\r
- boolean removed = _alcodMapList.remove(vAlcodMap);\r
- return removed;\r
- }\r
-\r
- /**\r
- * Method removeAlcodMapAt.\r
- * \r
- * @param index\r
- * @return the element removed from the collection\r
- */\r
- public jalview.schemabinding.version2.AlcodMap removeAlcodMapAt(\r
- final int index) {\r
- java.lang.Object obj = this._alcodMapList.remove(index);\r
- return (jalview.schemabinding.version2.AlcodMap) obj;\r
- }\r
-\r
- /**\r
- * Method removeAlcodon.\r
- * \r
- * @param vAlcodon\r
- * @return true if the object was removed from the collection.\r
- */\r
- public boolean removeAlcodon(\r
- final jalview.schemabinding.version2.Alcodon vAlcodon) {\r
- boolean removed = _alcodonList.remove(vAlcodon);\r
- return removed;\r
- }\r
-\r
- /**\r
- * Method removeAlcodonAt.\r
- * \r
- * @param index\r
- * @return the element removed from the collection\r
- */\r
- public jalview.schemabinding.version2.Alcodon removeAlcodonAt(\r
- final int index) {\r
- java.lang.Object obj = this._alcodonList.remove(index);\r
- return (jalview.schemabinding.version2.Alcodon) obj;\r
- }\r
-\r
- /**\r
- */\r
- public void removeAllAlcodMap(\r
- ) {\r
- this._alcodMapList.clear();\r
- }\r
-\r
- /**\r
- */\r
- public void removeAllAlcodon(\r
- ) {\r
- this._alcodonList.clear();\r
- }\r
-\r
- /**\r
- * \r
- * \r
- * @param index\r
- * @param vAlcodMap\r
- * @throws java.lang.IndexOutOfBoundsException if the index\r
- * given is outside the bounds of the collection\r
- */\r
- public void setAlcodMap(\r
- final int index,\r
- final jalview.schemabinding.version2.AlcodMap vAlcodMap)\r
- throws java.lang.IndexOutOfBoundsException {\r
- // check bounds for index\r
- if (index < 0 || index >= this._alcodMapList.size()) {\r
- throw new IndexOutOfBoundsException("setAlcodMap: Index value '" + index + "' not in range [0.." + (this._alcodMapList.size() - 1) + "]");\r
- }\r
- \r
- this._alcodMapList.set(index, vAlcodMap);\r
- }\r
-\r
- /**\r
- * \r
- * \r
- * @param vAlcodMapArray\r
- */\r
- public void setAlcodMap(\r
- final jalview.schemabinding.version2.AlcodMap[] vAlcodMapArray) {\r
- //-- copy array\r
- _alcodMapList.clear();\r
- \r
- for (int i = 0; i < vAlcodMapArray.length; i++) {\r
- this._alcodMapList.add(vAlcodMapArray[i]);\r
- }\r
- }\r
-\r
- /**\r
- * \r
- * \r
- * @param index\r
- * @param vAlcodon\r
- * @throws java.lang.IndexOutOfBoundsException if the index\r
- * given is outside the bounds of the collection\r
- */\r
- public void setAlcodon(\r
- final int index,\r
- final jalview.schemabinding.version2.Alcodon vAlcodon)\r
- throws java.lang.IndexOutOfBoundsException {\r
- // check bounds for index\r
- if (index < 0 || index >= this._alcodonList.size()) {\r
- throw new IndexOutOfBoundsException("setAlcodon: Index value '" + index + "' not in range [0.." + (this._alcodonList.size() - 1) + "]");\r
- }\r
- \r
- this._alcodonList.set(index, vAlcodon);\r
- }\r
-\r
- /**\r
- * \r
- * \r
- * @param vAlcodonArray\r
- */\r
- public void setAlcodon(\r
- final jalview.schemabinding.version2.Alcodon[] vAlcodonArray) {\r
- //-- copy array\r
- _alcodonList.clear();\r
- \r
- for (int i = 0; i < vAlcodonArray.length; i++) {\r
- this._alcodonList.add(vAlcodonArray[i]);\r
- }\r
- }\r
-\r
- /**\r
- * Method unmarshal.\r
- * \r
- * @param reader\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
- * @return the unmarshaled\r
- * jalview.schemabinding.version2.AlcodonFrame\r
- */\r
- public static jalview.schemabinding.version2.AlcodonFrame unmarshal(\r
- final java.io.Reader reader)\r
- throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {\r
- return (jalview.schemabinding.version2.AlcodonFrame) Unmarshaller.unmarshal(jalview.schemabinding.version2.AlcodonFrame.class, reader);\r
- }\r
-\r
- /**\r
- * \r
- * \r
- * @throws org.exolab.castor.xml.ValidationException if this\r
- * object is an invalid instance according to the schema\r
- */\r
- public void validate(\r
- )\r
- throws org.exolab.castor.xml.ValidationException {\r
- org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
- validator.validate(this);\r