+ java.lang.Object obj = _newickList.elementAt(index);
+ _newickList.removeElementAt(index);
+ return (org.vamsas.objects.core.Newick) obj;
+ } //-- org.vamsas.objects.core.Newick removeNewick(int)
+
+ /**
+ * Sets the value of field 'id'.
+ *
+ * @param id the value of field 'id'.
+ */
+ public void setId(java.lang.String id)
+ {
+ this._id = id;
+ } //-- void setId(java.lang.String)
+
+ /**
+ * Method setNewick
+ *
+ *
+ *
+ * @param index
+ * @param vNewick
+ */
+ public void setNewick(int index, org.vamsas.objects.core.Newick vNewick)
+ throws java.lang.IndexOutOfBoundsException
+ {
+ //-- check bounds for index
+ if ((index < 0) || (index > _newickList.size())) {
+ throw new IndexOutOfBoundsException("setNewick: Index value '"+index+"' not in range [0.."+_newickList.size()+ "]");
+ }
+ _newickList.setElementAt(vNewick, index);
+ } //-- void setNewick(int, org.vamsas.objects.core.Newick)
+
+ /**
+ * Method setNewick
+ *
+ *
+ *
+ * @param newickArray
+ */
+ public void setNewick(org.vamsas.objects.core.Newick[] newickArray)
+ {
+ //-- copy array
+ _newickList.removeAllElements();
+ for (int i = 0; i < newickArray.length; i++) {
+ _newickList.addElement(newickArray[i]);
+ }
+ } //-- void setNewick(org.vamsas.objects.core.Newick)