-public class FeatureSettings implements java.io.Serializable\r
-{\r
-\r
- // --------------------------/\r
- // - Class/Member Variables -/\r
- // --------------------------/\r
-\r
- /**\r
- * Field _settingList.\r
- */\r
- private java.util.Vector _settingList;\r
-\r
- /**\r
- * Field _groupList.\r
- */\r
- private java.util.Vector _groupList;\r
-\r
- // ----------------/\r
- // - Constructors -/\r
- // ----------------/\r
-\r
- public FeatureSettings()\r
- {\r
- super();\r
- this._settingList = new java.util.Vector();\r
- this._groupList = new java.util.Vector();\r
- }\r
-\r
- // -----------/\r
- // - Methods -/\r
- // -----------/\r
-\r
- /**\r
- * \r
- * \r
- * @param vGroup\r
- * @throws java.lang.IndexOutOfBoundsException\r
- * if the index given is outside the bounds of the collection\r
- */\r
- public void addGroup(final jalview.schemabinding.version2.Group vGroup)\r
- throws java.lang.IndexOutOfBoundsException\r
- {\r
- this._groupList.addElement(vGroup);\r
- }\r
-\r
- /**\r
- * \r
- * \r
- * @param index\r
- * @param vGroup\r
- * @throws java.lang.IndexOutOfBoundsException\r
- * if the index given is outside the bounds of the collection\r
- */\r
- public void addGroup(final int index,\r
- final jalview.schemabinding.version2.Group vGroup)\r
- throws java.lang.IndexOutOfBoundsException\r
- {\r
- this._groupList.add(index, vGroup);\r
- }\r
-\r
- /**\r
- * \r
- * \r
- * @param vSetting\r
- * @throws java.lang.IndexOutOfBoundsException\r
- * if the index given is outside the bounds of the collection\r
- */\r
- public void addSetting(\r
- final jalview.schemabinding.version2.Setting vSetting)\r
- throws java.lang.IndexOutOfBoundsException\r
- {\r
- this._settingList.addElement(vSetting);\r
- }\r
-\r
- /**\r
- * \r
- * \r
- * @param index\r
- * @param vSetting\r
- * @throws java.lang.IndexOutOfBoundsException\r
- * if the index given is outside the bounds of the collection\r
- */\r
- public void addSetting(final int index,\r
- final jalview.schemabinding.version2.Setting vSetting)\r
- throws java.lang.IndexOutOfBoundsException\r
- {\r
- this._settingList.add(index, vSetting);\r
- }\r
-\r
- /**\r
- * Method enumerateGroup.\r
- * \r
- * @return an Enumeration over all jalview.schemabinding.version2.Group\r
- * elements\r
- */\r
- public java.util.Enumeration enumerateGroup()\r
- {\r
- return this._groupList.elements();\r
- }\r
-\r
- /**\r
- * Method enumerateSetting.\r
- * \r
- * @return an Enumeration over all jalview.schemabinding.version2.Setting\r
- * elements\r
- */\r
- public java.util.Enumeration enumerateSetting()\r
- {\r
- return this._settingList.elements();\r
- }\r
-\r
- /**\r
- * Method getGroup.\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.Group at the given\r
- * index\r
- */\r
- public jalview.schemabinding.version2.Group getGroup(final int index)\r
- throws java.lang.IndexOutOfBoundsException\r
- {\r
- // check bounds for index\r
- if (index < 0 || index >= this._groupList.size())\r
- {\r
- throw new IndexOutOfBoundsException("getGroup: Index value '" + index\r
- + "' not in range [0.." + (this._groupList.size() - 1) + "]");\r
+public class FeatureSettings implements java.io.Serializable {\r
+\r
+\r
+ //--------------------------/\r
+ //- Class/Member Variables -/\r
+ //--------------------------/\r
+\r
+ /**\r
+ * Field _settingList.\r
+ */\r
+ private java.util.Vector _settingList;\r
+\r
+ /**\r
+ * Field _groupList.\r
+ */\r
+ private java.util.Vector _groupList;\r
+\r
+\r
+ //----------------/\r
+ //- Constructors -/\r
+ //----------------/\r
+\r
+ public FeatureSettings() {\r
+ super();\r
+ this._settingList = new java.util.Vector();\r
+ this._groupList = new java.util.Vector();\r
+ }\r
+\r
+\r
+ //-----------/\r
+ //- Methods -/\r
+ //-----------/\r
+\r
+ /**\r
+ * \r
+ * \r
+ * @param vGroup\r
+ * @throws java.lang.IndexOutOfBoundsException if the index\r
+ * given is outside the bounds of the collection\r
+ */\r
+ public void addGroup(\r
+ final jalview.schemabinding.version2.Group vGroup)\r
+ throws java.lang.IndexOutOfBoundsException {\r
+ this._groupList.addElement(vGroup);\r
+ }\r
+\r
+ /**\r
+ * \r
+ * \r
+ * @param index\r
+ * @param vGroup\r
+ * @throws java.lang.IndexOutOfBoundsException if the index\r
+ * given is outside the bounds of the collection\r
+ */\r
+ public void addGroup(\r
+ final int index,\r
+ final jalview.schemabinding.version2.Group vGroup)\r
+ throws java.lang.IndexOutOfBoundsException {\r
+ this._groupList.add(index, vGroup);\r
+ }\r
+\r
+ /**\r
+ * \r
+ * \r
+ * @param vSetting\r
+ * @throws java.lang.IndexOutOfBoundsException if the index\r
+ * given is outside the bounds of the collection\r
+ */\r
+ public void addSetting(\r
+ final jalview.schemabinding.version2.Setting vSetting)\r
+ throws java.lang.IndexOutOfBoundsException {\r
+ this._settingList.addElement(vSetting);\r
+ }\r
+\r
+ /**\r
+ * \r
+ * \r
+ * @param index\r
+ * @param vSetting\r
+ * @throws java.lang.IndexOutOfBoundsException if the index\r
+ * given is outside the bounds of the collection\r
+ */\r
+ public void addSetting(\r
+ final int index,\r
+ final jalview.schemabinding.version2.Setting vSetting)\r
+ throws java.lang.IndexOutOfBoundsException {\r
+ this._settingList.add(index, vSetting);\r
+ }\r
+\r
+ /**\r
+ * Method enumerateGroup.\r
+ * \r
+ * @return an Enumeration over all\r
+ * jalview.schemabinding.version2.Group elements\r
+ */\r
+ public java.util.Enumeration enumerateGroup(\r
+ ) {\r
+ return this._groupList.elements();\r
+ }\r
+\r
+ /**\r
+ * Method enumerateSetting.\r
+ * \r
+ * @return an Enumeration over all\r
+ * jalview.schemabinding.version2.Setting elements\r
+ */\r
+ public java.util.Enumeration enumerateSetting(\r
+ ) {\r
+ return this._settingList.elements();\r
+ }\r
+\r
+ /**\r
+ * Method getGroup.\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.Group at the given index\r
+ */\r
+ public jalview.schemabinding.version2.Group getGroup(\r
+ final int index)\r
+ throws java.lang.IndexOutOfBoundsException {\r
+ // check bounds for index\r
+ if (index < 0 || index >= this._groupList.size()) {\r
+ throw new IndexOutOfBoundsException("getGroup: Index value '" + index + "' not in range [0.." + (this._groupList.size() - 1) + "]");\r
+ }\r
+ \r
+ return (jalview.schemabinding.version2.Group) _groupList.get(index);\r
+ }\r
+\r
+ /**\r
+ * Method getGroup.Returns the contents of the collection in an\r
+ * Array. <p>Note: Just in case the collection contents are\r
+ * changing in another thread, we pass a 0-length Array of the\r
+ * 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.Group[] getGroup(\r
+ ) {\r
+ jalview.schemabinding.version2.Group[] array = new jalview.schemabinding.version2.Group[0];\r
+ return (jalview.schemabinding.version2.Group[]) this._groupList.toArray(array);\r