-public class AlcodonFrame implements java.io.Serializable\r
-{\r
-\r
- // --------------------------/\r
- // - Class/Member Variables -/\r
- // --------------------------/\r
-\r
- /**\r
- * Field _alcodonList.\r
- */\r
- private java.util.Vector _alcodonList;\r
-\r
- /**\r
- * Field _alcodMapList.\r
- */\r
- private java.util.Vector _alcodMapList;\r
-\r
- // ----------------/\r
- // - Constructors -/\r
- // ----------------/\r
-\r
- public AlcodonFrame()\r
- {\r
- super();\r
- this._alcodonList = new java.util.Vector();\r
- this._alcodMapList = new java.util.Vector();\r
- }\r
-\r
- // -----------/\r
- // - Methods -/\r
- // -----------/\r
-\r
- /**\r
- * \r
- * \r
- * @param vAlcodMap\r
- * @throws java.lang.IndexOutOfBoundsException\r
- * if the index given is outside the bounds of the collection\r
- */\r
- public void addAlcodMap(\r
- final jalview.schemabinding.version2.AlcodMap vAlcodMap)\r
- throws java.lang.IndexOutOfBoundsException\r
- {\r
- this._alcodMapList.addElement(vAlcodMap);\r
- }\r
-\r
- /**\r
- * \r
- * \r
- * @param index\r
- * @param vAlcodMap\r
- * @throws java.lang.IndexOutOfBoundsException\r
- * if the index given is outside the bounds of the collection\r
- */\r
- public void addAlcodMap(final int index,\r
- final jalview.schemabinding.version2.AlcodMap vAlcodMap)\r
- throws java.lang.IndexOutOfBoundsException\r
- {\r
- this._alcodMapList.add(index, vAlcodMap);\r
- }\r
-\r
- /**\r
- * \r
- * \r
- * @param vAlcodon\r
- * @throws java.lang.IndexOutOfBoundsException\r
- * if the index given is outside the bounds of the collection\r
- */\r
- public void addAlcodon(\r
- final jalview.schemabinding.version2.Alcodon vAlcodon)\r
- throws java.lang.IndexOutOfBoundsException\r
- {\r
- this._alcodonList.addElement(vAlcodon);\r
- }\r
-\r
- /**\r
- * \r
- * \r
- * @param index\r
- * @param vAlcodon\r
- * @throws java.lang.IndexOutOfBoundsException\r
- * if the index given is outside the bounds of the collection\r
- */\r
- public void addAlcodon(final int index,\r
- final jalview.schemabinding.version2.Alcodon vAlcodon)\r
- throws java.lang.IndexOutOfBoundsException\r
- {\r
- this._alcodonList.add(index, vAlcodon);\r
- }\r
-\r
- /**\r
- * Method enumerateAlcodMap.\r
- * \r
- * @return an Enumeration over all jalview.schemabinding.version2.AlcodMap\r
- * elements\r
- */\r
- public java.util.Enumeration enumerateAlcodMap()\r
- {\r
- return this._alcodMapList.elements();\r
- }\r
-\r
- /**\r
- * Method enumerateAlcodon.\r
- * \r
- * @return an Enumeration over all jalview.schemabinding.version2.Alcodon\r
- * elements\r
- */\r
- public java.util.Enumeration enumerateAlcodon()\r
- {\r
- return this._alcodonList.elements();\r
- }\r
-\r
- /**\r
- * Method getAlcodMap.\r
- * \r
- * @param index\r
- * @throws java.lang.IndexOutOfBoundsException\r
- * if the index given is outside the bounds of the collection\r
- * @return the value of the jalview.schemabinding.version2.AlcodMap at the\r
- * given index\r
- */\r
- public jalview.schemabinding.version2.AlcodMap getAlcodMap(final int index)\r
- throws java.lang.IndexOutOfBoundsException\r
- {\r
- // check bounds for index\r
- if (index < 0 || index >= this._alcodMapList.size())\r
- {\r
- throw new IndexOutOfBoundsException("getAlcodMap: Index value '"\r
- + index + "' not in range [0.."\r
- + (this._alcodMapList.size() - 1) + "]");\r
+public class AlcodonFrame implements java.io.Serializable {\r
+\r
+\r
+ //--------------------------/\r
+ //- Class/Member Variables -/\r
+ //--------------------------/\r
+\r
+ /**\r
+ * Field _alcodonList.\r
+ */\r
+ private java.util.Vector _alcodonList;\r
+\r
+ /**\r
+ * Field _alcodMapList.\r
+ */\r
+ private java.util.Vector _alcodMapList;\r
+\r
+\r
+ //----------------/\r
+ //- Constructors -/\r
+ //----------------/\r
+\r
+ public AlcodonFrame() {\r
+ super();\r
+ this._alcodonList = new java.util.Vector();\r
+ this._alcodMapList = new java.util.Vector();\r
+ }\r
+\r
+\r
+ //-----------/\r
+ //- Methods -/\r
+ //-----------/\r
+\r
+ /**\r
+ * \r
+ * \r
+ * @param vAlcodMap\r
+ * @throws java.lang.IndexOutOfBoundsException if the index\r
+ * given is outside the bounds of the collection\r
+ */\r
+ public void addAlcodMap(\r
+ final jalview.schemabinding.version2.AlcodMap vAlcodMap)\r
+ throws java.lang.IndexOutOfBoundsException {\r
+ this._alcodMapList.addElement(vAlcodMap);\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 addAlcodMap(\r
+ final int index,\r
+ final jalview.schemabinding.version2.AlcodMap vAlcodMap)\r
+ throws java.lang.IndexOutOfBoundsException {\r
+ this._alcodMapList.add(index, vAlcodMap);\r
+ }\r
+\r
+ /**\r
+ * \r
+ * \r
+ * @param vAlcodon\r
+ * @throws java.lang.IndexOutOfBoundsException if the index\r
+ * given is outside the bounds of the collection\r
+ */\r
+ public void addAlcodon(\r
+ final jalview.schemabinding.version2.Alcodon vAlcodon)\r
+ throws java.lang.IndexOutOfBoundsException {\r
+ this._alcodonList.addElement(vAlcodon);\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 addAlcodon(\r
+ final int index,\r
+ final jalview.schemabinding.version2.Alcodon vAlcodon)\r
+ throws java.lang.IndexOutOfBoundsException {\r
+ this._alcodonList.add(index, vAlcodon);\r
+ }\r
+\r
+ /**\r
+ * Method enumerateAlcodMap.\r
+ * \r
+ * @return an Enumeration over all\r
+ * jalview.schemabinding.version2.AlcodMap elements\r
+ */\r
+ public java.util.Enumeration enumerateAlcodMap(\r
+ ) {\r
+ return this._alcodMapList.elements();\r
+ }\r
+\r
+ /**\r
+ * Method enumerateAlcodon.\r
+ * \r
+ * @return an Enumeration over all\r
+ * jalview.schemabinding.version2.Alcodon elements\r
+ */\r
+ public java.util.Enumeration enumerateAlcodon(\r
+ ) {\r
+ return this._alcodonList.elements();\r
+ }\r
+\r
+ /**\r
+ * Method getAlcodMap.\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.AlcodMap at the given index\r
+ */\r
+ public jalview.schemabinding.version2.AlcodMap getAlcodMap(\r
+ final int index)\r
+ throws java.lang.IndexOutOfBoundsException {\r
+ // check bounds for index\r
+ if (index < 0 || index >= this._alcodMapList.size()) {\r
+ throw new IndexOutOfBoundsException("getAlcodMap: Index value '" + index + "' not in range [0.." + (this._alcodMapList.size() - 1) + "]");\r
+ }\r
+ \r
+ return (jalview.schemabinding.version2.AlcodMap) _alcodMapList.get(index);\r
+ }\r
+\r
+ /**\r
+ * Method getAlcodMap.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.AlcodMap[] getAlcodMap(\r
+ ) {\r
+ jalview.schemabinding.version2.AlcodMap[] array = new jalview.schemabinding.version2.AlcodMap[0];\r
+ return (jalview.schemabinding.version2.AlcodMap[]) this._alcodMapList.toArray(array);\r