- _settingList.removeAllElements();\r
- for (int i = 0; i < settingArray.length; i++) {\r
- _settingList.addElement(settingArray[i]);\r
+ _groupList.clear();\r
+ \r
+ for (int i = 0; i < vGroupArray.length; i++) {\r
+ this._groupList.add(vGroupArray[i]);\r
+ }\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 setSetting(\r
+ final int index,\r
+ final jalview.schemabinding.version2.Setting vSetting)\r
+ throws java.lang.IndexOutOfBoundsException {\r
+ // check bounds for index\r
+ if (index < 0 || index >= this._settingList.size()) {\r
+ throw new IndexOutOfBoundsException("setSetting: Index value '" + index + "' not in range [0.." + (this._settingList.size() - 1) + "]");\r