- public jalview.schemabinding.version2.Annotation[] getAnnotation()\r
- {\r
- int size = _annotationList.size();\r
- jalview.schemabinding.version2.Annotation[] mArray = new jalview.schemabinding.version2.Annotation[size];\r
- for (int index = 0; index < size; index++) {\r
- mArray[index] = (jalview.schemabinding.version2.Annotation) _annotationList.elementAt(index);\r
+ public int getAlcodonFrameCount(\r
+ ) {\r
+ return this._alcodonFrameList.size();\r
+ }\r
+\r
+ /**\r
+ * Method getAnnotation.\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.Annotation at the given index\r
+ */\r
+ public jalview.schemabinding.version2.Annotation getAnnotation(\r
+ final int index)\r
+ throws java.lang.IndexOutOfBoundsException {\r
+ // check bounds for index\r
+ if (index < 0 || index >= this._annotationList.size()) {\r
+ throw new IndexOutOfBoundsException("getAnnotation: Index value '" + index + "' not in range [0.." + (this._annotationList.size() - 1) + "]");\r