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