2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.schemabinding.version2;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
20 * @version $Revision$ $Date$
22 public class Annotation implements java.io.Serializable
25 // --------------------------/
26 // - Class/Member Variables -/
27 // --------------------------/
32 private boolean _graph;
35 * keeps track of state for field: _graph
37 private boolean _has_graph;
42 private int _graphType;
45 * keeps track of state for field: _graphType
47 private boolean _has_graphType;
52 private java.lang.String _sequenceRef;
57 private java.lang.String _groupRef;
62 private int _graphColour;
65 * keeps track of state for field: _graphColour
67 private boolean _has_graphColour;
72 private int _graphGroup;
75 * keeps track of state for field: _graphGroup
77 private boolean _has_graphGroup;
80 * height in pixels for the graph if this is a graph-type annotation.
82 private int _graphHeight;
85 * keeps track of state for field: _graphHeight
87 private boolean _has_graphHeight;
92 private java.lang.String _id;
97 private boolean _scoreOnly = false;
100 * keeps track of state for field: _scoreOnly
102 private boolean _has_scoreOnly;
107 private double _score;
110 * keeps track of state for field: _score
112 private boolean _has_score;
117 private boolean _visible;
120 * keeps track of state for field: _visible
122 private boolean _has_visible;
125 * Field _centreColLabels.
127 private boolean _centreColLabels;
130 * keeps track of state for field: _centreColLabels
132 private boolean _has_centreColLabels;
135 * Field _scaleColLabels.
137 private boolean _scaleColLabels;
140 * keeps track of state for field: _scaleColLabels
142 private boolean _has_scaleColLabels;
145 * Field _showAllColLabels.
147 private boolean _showAllColLabels;
150 * keeps track of state for field: _showAllColLabels
152 private boolean _has_showAllColLabels;
155 * is an autocalculated annotation row
157 private boolean _autoCalculated = false;
160 * keeps track of state for field: _autoCalculated
162 private boolean _has_autoCalculated;
165 * is to be shown below the alignment - introduced in Jalview 2.8 for
166 * visualizing T-COFFEE alignment scores
168 private boolean _belowAlignment = true;
171 * keeps track of state for field: _belowAlignment
173 private boolean _has_belowAlignment;
176 * Optional string identifier used to group sets of annotation produced by a
177 * particular calculation. Values are opaque strings but have semantic meaning
178 * to Jalview's renderer, data importer and calculation system.
180 private java.lang.String _calcId;
183 * Field _annotationElementList.
185 private java.util.Vector _annotationElementList;
190 private java.lang.String _label;
193 * Field _description.
195 private java.lang.String _description;
198 * Field _thresholdLine.
200 private jalview.schemabinding.version2.ThresholdLine _thresholdLine;
203 * Field _propertyList.
205 private java.util.Vector _propertyList;
214 this._annotationElementList = new java.util.Vector();
215 this._propertyList = new java.util.Vector();
225 * @param vAnnotationElement
226 * @throws java.lang.IndexOutOfBoundsException
227 * if the index given is outside the bounds of the collection
229 public void addAnnotationElement(
230 final jalview.schemabinding.version2.AnnotationElement vAnnotationElement)
231 throws java.lang.IndexOutOfBoundsException
233 this._annotationElementList.addElement(vAnnotationElement);
240 * @param vAnnotationElement
241 * @throws java.lang.IndexOutOfBoundsException
242 * if the index given is outside the bounds of the collection
244 public void addAnnotationElement(
246 final jalview.schemabinding.version2.AnnotationElement vAnnotationElement)
247 throws java.lang.IndexOutOfBoundsException
249 this._annotationElementList.add(index, vAnnotationElement);
256 * @throws java.lang.IndexOutOfBoundsException
257 * if the index given is outside the bounds of the collection
259 public void addProperty(
260 final jalview.schemabinding.version2.Property vProperty)
261 throws java.lang.IndexOutOfBoundsException
263 this._propertyList.addElement(vProperty);
271 * @throws java.lang.IndexOutOfBoundsException
272 * if the index given is outside the bounds of the collection
274 public void addProperty(final int index,
275 final jalview.schemabinding.version2.Property vProperty)
276 throws java.lang.IndexOutOfBoundsException
278 this._propertyList.add(index, vProperty);
283 public void deleteAutoCalculated()
285 this._has_autoCalculated = false;
290 public void deleteBelowAlignment()
292 this._has_belowAlignment = false;
297 public void deleteCentreColLabels()
299 this._has_centreColLabels = false;
304 public void deleteGraph()
306 this._has_graph = false;
311 public void deleteGraphColour()
313 this._has_graphColour = false;
318 public void deleteGraphGroup()
320 this._has_graphGroup = false;
325 public void deleteGraphHeight()
327 this._has_graphHeight = false;
332 public void deleteGraphType()
334 this._has_graphType = false;
339 public void deleteScaleColLabels()
341 this._has_scaleColLabels = false;
346 public void deleteScore()
348 this._has_score = false;
353 public void deleteScoreOnly()
355 this._has_scoreOnly = false;
360 public void deleteShowAllColLabels()
362 this._has_showAllColLabels = false;
367 public void deleteVisible()
369 this._has_visible = false;
373 * Method enumerateAnnotationElement.
375 * @return an Enumeration over all
376 * jalview.schemabinding.version2.AnnotationElement elements
378 public java.util.Enumeration enumerateAnnotationElement()
380 return this._annotationElementList.elements();
384 * Method enumerateProperty.
386 * @return an Enumeration over all jalview.schemabinding.version2.Property
389 public java.util.Enumeration enumerateProperty()
391 return this._propertyList.elements();
395 * Method getAnnotationElement.
398 * @throws java.lang.IndexOutOfBoundsException
399 * if the index given is outside the bounds of the collection
400 * @return the value of the jalview.schemabinding.version2.AnnotationElement
403 public jalview.schemabinding.version2.AnnotationElement getAnnotationElement(
404 final int index) throws java.lang.IndexOutOfBoundsException
406 // check bounds for index
407 if (index < 0 || index >= this._annotationElementList.size())
409 throw new IndexOutOfBoundsException(
410 "getAnnotationElement: Index value '" + index
411 + "' not in range [0.."
412 + (this._annotationElementList.size() - 1) + "]");
415 return (jalview.schemabinding.version2.AnnotationElement) _annotationElementList
420 * Method getAnnotationElement.Returns the contents of the collection in an
423 * Note: Just in case the collection contents are changing in another thread,
424 * we pass a 0-length Array of the correct type into the API call. This way we
425 * <i>know</i> that the Array returned is of exactly the correct length.
427 * @return this collection as an Array
429 public jalview.schemabinding.version2.AnnotationElement[] getAnnotationElement()
431 jalview.schemabinding.version2.AnnotationElement[] array = new jalview.schemabinding.version2.AnnotationElement[0];
432 return (jalview.schemabinding.version2.AnnotationElement[]) this._annotationElementList
437 * Method getAnnotationElementCount.
439 * @return the size of this collection
441 public int getAnnotationElementCount()
443 return this._annotationElementList.size();
447 * Returns the value of field 'autoCalculated'. The field 'autoCalculated' has
448 * the following description: is an autocalculated annotation row
450 * @return the value of field 'AutoCalculated'.
452 public boolean getAutoCalculated()
454 return this._autoCalculated;
458 * Returns the value of field 'belowAlignment'. The field 'belowAlignment' has
459 * the following description: is to be shown below the alignment - introduced
460 * in Jalview 2.8 for visualizing T-COFFEE alignment scores
462 * @return the value of field 'BelowAlignment'.
464 public boolean getBelowAlignment()
466 return this._belowAlignment;
470 * Returns the value of field 'calcId'. The field 'calcId' has the following
471 * description: Optional string identifier used to group sets of annotation
472 * produced by a particular calculation. Values are opaque strings but have
473 * semantic meaning to Jalview's renderer, data importer and calculation
476 * @return the value of field 'CalcId'.
478 public java.lang.String getCalcId()
484 * Returns the value of field 'centreColLabels'.
486 * @return the value of field 'CentreColLabels'.
488 public boolean getCentreColLabels()
490 return this._centreColLabels;
494 * Returns the value of field 'description'.
496 * @return the value of field 'Description'.
498 public java.lang.String getDescription()
500 return this._description;
504 * Returns the value of field 'graph'.
506 * @return the value of field 'Graph'.
508 public boolean getGraph()
514 * Returns the value of field 'graphColour'.
516 * @return the value of field 'GraphColour'.
518 public int getGraphColour()
520 return this._graphColour;
524 * Returns the value of field 'graphGroup'.
526 * @return the value of field 'GraphGroup'.
528 public int getGraphGroup()
530 return this._graphGroup;
534 * Returns the value of field 'graphHeight'. The field 'graphHeight' has the
535 * following description: height in pixels for the graph if this is a
536 * graph-type annotation.
538 * @return the value of field 'GraphHeight'.
540 public int getGraphHeight()
542 return this._graphHeight;
546 * Returns the value of field 'graphType'.
548 * @return the value of field 'GraphType'.
550 public int getGraphType()
552 return this._graphType;
556 * Returns the value of field 'groupRef'.
558 * @return the value of field 'GroupRef'.
560 public java.lang.String getGroupRef()
562 return this._groupRef;
566 * Returns the value of field 'id'.
568 * @return the value of field 'Id'.
570 public java.lang.String getId()
576 * Returns the value of field 'label'.
578 * @return the value of field 'Label'.
580 public java.lang.String getLabel()
586 * Method getProperty.
589 * @throws java.lang.IndexOutOfBoundsException
590 * if the index given is outside the bounds of the collection
591 * @return the value of the jalview.schemabinding.version2.Property at the
594 public jalview.schemabinding.version2.Property getProperty(final int index)
595 throws java.lang.IndexOutOfBoundsException
597 // check bounds for index
598 if (index < 0 || index >= this._propertyList.size())
600 throw new IndexOutOfBoundsException("getProperty: Index value '"
601 + index + "' not in range [0.."
602 + (this._propertyList.size() - 1) + "]");
605 return (jalview.schemabinding.version2.Property) _propertyList
610 * Method getProperty.Returns the contents of the collection in an Array.
612 * Note: Just in case the collection contents are changing in another thread,
613 * we pass a 0-length Array of the correct type into the API call. This way we
614 * <i>know</i> that the Array returned is of exactly the correct length.
616 * @return this collection as an Array
618 public jalview.schemabinding.version2.Property[] getProperty()
620 jalview.schemabinding.version2.Property[] array = new jalview.schemabinding.version2.Property[0];
621 return (jalview.schemabinding.version2.Property[]) this._propertyList
626 * Method getPropertyCount.
628 * @return the size of this collection
630 public int getPropertyCount()
632 return this._propertyList.size();
636 * Returns the value of field 'scaleColLabels'.
638 * @return the value of field 'ScaleColLabels'.
640 public boolean getScaleColLabels()
642 return this._scaleColLabels;
646 * Returns the value of field 'score'.
648 * @return the value of field 'Score'.
650 public double getScore()
656 * Returns the value of field 'scoreOnly'.
658 * @return the value of field 'ScoreOnly'.
660 public boolean getScoreOnly()
662 return this._scoreOnly;
666 * Returns the value of field 'sequenceRef'.
668 * @return the value of field 'SequenceRef'.
670 public java.lang.String getSequenceRef()
672 return this._sequenceRef;
676 * Returns the value of field 'showAllColLabels'.
678 * @return the value of field 'ShowAllColLabels'.
680 public boolean getShowAllColLabels()
682 return this._showAllColLabels;
686 * Returns the value of field 'thresholdLine'.
688 * @return the value of field 'ThresholdLine'.
690 public jalview.schemabinding.version2.ThresholdLine getThresholdLine()
692 return this._thresholdLine;
696 * Returns the value of field 'visible'.
698 * @return the value of field 'Visible'.
700 public boolean getVisible()
702 return this._visible;
706 * Method hasAutoCalculated.
708 * @return true if at least one AutoCalculated has been added
710 public boolean hasAutoCalculated()
712 return this._has_autoCalculated;
716 * Method hasBelowAlignment.
718 * @return true if at least one BelowAlignment has been added
720 public boolean hasBelowAlignment()
722 return this._has_belowAlignment;
726 * Method hasCentreColLabels.
728 * @return true if at least one CentreColLabels has been added
730 public boolean hasCentreColLabels()
732 return this._has_centreColLabels;
738 * @return true if at least one Graph has been added
740 public boolean hasGraph()
742 return this._has_graph;
746 * Method hasGraphColour.
748 * @return true if at least one GraphColour has been added
750 public boolean hasGraphColour()
752 return this._has_graphColour;
756 * Method hasGraphGroup.
758 * @return true if at least one GraphGroup has been added
760 public boolean hasGraphGroup()
762 return this._has_graphGroup;
766 * Method hasGraphHeight.
768 * @return true if at least one GraphHeight has been added
770 public boolean hasGraphHeight()
772 return this._has_graphHeight;
776 * Method hasGraphType.
778 * @return true if at least one GraphType has been added
780 public boolean hasGraphType()
782 return this._has_graphType;
786 * Method hasScaleColLabels.
788 * @return true if at least one ScaleColLabels has been added
790 public boolean hasScaleColLabels()
792 return this._has_scaleColLabels;
798 * @return true if at least one Score has been added
800 public boolean hasScore()
802 return this._has_score;
806 * Method hasScoreOnly.
808 * @return true if at least one ScoreOnly has been added
810 public boolean hasScoreOnly()
812 return this._has_scoreOnly;
816 * Method hasShowAllColLabels.
818 * @return true if at least one ShowAllColLabels has been added
820 public boolean hasShowAllColLabels()
822 return this._has_showAllColLabels;
828 * @return true if at least one Visible has been added
830 public boolean hasVisible()
832 return this._has_visible;
836 * Returns the value of field 'autoCalculated'. The field 'autoCalculated' has
837 * the following description: is an autocalculated annotation row
839 * @return the value of field 'AutoCalculated'.
841 public boolean isAutoCalculated()
843 return this._autoCalculated;
847 * Returns the value of field 'belowAlignment'. The field 'belowAlignment' has
848 * the following description: is to be shown below the alignment - introduced
849 * in Jalview 2.8 for visualizing T-COFFEE alignment scores
851 * @return the value of field 'BelowAlignment'.
853 public boolean isBelowAlignment()
855 return this._belowAlignment;
859 * Returns the value of field 'centreColLabels'.
861 * @return the value of field 'CentreColLabels'.
863 public boolean isCentreColLabels()
865 return this._centreColLabels;
869 * Returns the value of field 'graph'.
871 * @return the value of field 'Graph'.
873 public boolean isGraph()
879 * Returns the value of field 'scaleColLabels'.
881 * @return the value of field 'ScaleColLabels'.
883 public boolean isScaleColLabels()
885 return this._scaleColLabels;
889 * Returns the value of field 'scoreOnly'.
891 * @return the value of field 'ScoreOnly'.
893 public boolean isScoreOnly()
895 return this._scoreOnly;
899 * Returns the value of field 'showAllColLabels'.
901 * @return the value of field 'ShowAllColLabels'.
903 public boolean isShowAllColLabels()
905 return this._showAllColLabels;
911 * @return true if this object is valid according to the schema
913 public boolean isValid()
918 } catch (org.exolab.castor.xml.ValidationException vex)
926 * Returns the value of field 'visible'.
928 * @return the value of field 'Visible'.
930 public boolean isVisible()
932 return this._visible;
939 * @throws org.exolab.castor.xml.MarshalException
940 * if object is null or if any SAXException is thrown during
942 * @throws org.exolab.castor.xml.ValidationException
943 * if this object is an invalid instance according to the schema
945 public void marshal(final java.io.Writer out)
946 throws org.exolab.castor.xml.MarshalException,
947 org.exolab.castor.xml.ValidationException
949 Marshaller.marshal(this, out);
956 * @throws java.io.IOException
957 * if an IOException occurs during marshaling
958 * @throws org.exolab.castor.xml.ValidationException
959 * if this object is an invalid instance according to the schema
960 * @throws org.exolab.castor.xml.MarshalException
961 * if object is null or if any SAXException is thrown during
964 public void marshal(final org.xml.sax.ContentHandler handler)
965 throws java.io.IOException,
966 org.exolab.castor.xml.MarshalException,
967 org.exolab.castor.xml.ValidationException
969 Marshaller.marshal(this, handler);
974 public void removeAllAnnotationElement()
976 this._annotationElementList.clear();
981 public void removeAllProperty()
983 this._propertyList.clear();
987 * Method removeAnnotationElement.
989 * @param vAnnotationElement
990 * @return true if the object was removed from the collection.
992 public boolean removeAnnotationElement(
993 final jalview.schemabinding.version2.AnnotationElement vAnnotationElement)
995 boolean removed = _annotationElementList.remove(vAnnotationElement);
1000 * Method removeAnnotationElementAt.
1003 * @return the element removed from the collection
1005 public jalview.schemabinding.version2.AnnotationElement removeAnnotationElementAt(
1008 java.lang.Object obj = this._annotationElementList.remove(index);
1009 return (jalview.schemabinding.version2.AnnotationElement) obj;
1013 * Method removeProperty.
1016 * @return true if the object was removed from the collection.
1018 public boolean removeProperty(
1019 final jalview.schemabinding.version2.Property vProperty)
1021 boolean removed = _propertyList.remove(vProperty);
1026 * Method removePropertyAt.
1029 * @return the element removed from the collection
1031 public jalview.schemabinding.version2.Property removePropertyAt(
1034 java.lang.Object obj = this._propertyList.remove(index);
1035 return (jalview.schemabinding.version2.Property) obj;
1042 * @param vAnnotationElement
1043 * @throws java.lang.IndexOutOfBoundsException
1044 * if the index given is outside the bounds of the collection
1046 public void setAnnotationElement(
1048 final jalview.schemabinding.version2.AnnotationElement vAnnotationElement)
1049 throws java.lang.IndexOutOfBoundsException
1051 // check bounds for index
1052 if (index < 0 || index >= this._annotationElementList.size())
1054 throw new IndexOutOfBoundsException(
1055 "setAnnotationElement: Index value '" + index
1056 + "' not in range [0.."
1057 + (this._annotationElementList.size() - 1) + "]");
1060 this._annotationElementList.set(index, vAnnotationElement);
1066 * @param vAnnotationElementArray
1068 public void setAnnotationElement(
1069 final jalview.schemabinding.version2.AnnotationElement[] vAnnotationElementArray)
1072 _annotationElementList.clear();
1074 for (int i = 0; i < vAnnotationElementArray.length; i++)
1076 this._annotationElementList.add(vAnnotationElementArray[i]);
1081 * Sets the value of field 'autoCalculated'. The field 'autoCalculated' has
1082 * the following description: is an autocalculated annotation row
1084 * @param autoCalculated
1085 * the value of field 'autoCalculated'.
1087 public void setAutoCalculated(final boolean autoCalculated)
1089 this._autoCalculated = autoCalculated;
1090 this._has_autoCalculated = true;
1094 * Sets the value of field 'belowAlignment'. The field 'belowAlignment' has
1095 * the following description: is to be shown below the alignment - introduced
1096 * in Jalview 2.8 for visualizing T-COFFEE alignment scores
1098 * @param belowAlignment
1099 * the value of field 'belowAlignment'.
1101 public void setBelowAlignment(final boolean belowAlignment)
1103 this._belowAlignment = belowAlignment;
1104 this._has_belowAlignment = true;
1108 * Sets the value of field 'calcId'. The field 'calcId' has the following
1109 * description: Optional string identifier used to group sets of annotation
1110 * produced by a particular calculation. Values are opaque strings but have
1111 * semantic meaning to Jalview's renderer, data importer and calculation
1115 * the value of field 'calcId'.
1117 public void setCalcId(final java.lang.String calcId)
1119 this._calcId = calcId;
1123 * Sets the value of field 'centreColLabels'.
1125 * @param centreColLabels
1126 * the value of field 'centreColLabels'.
1128 public void setCentreColLabels(final boolean centreColLabels)
1130 this._centreColLabels = centreColLabels;
1131 this._has_centreColLabels = true;
1135 * Sets the value of field 'description'.
1137 * @param description
1138 * the value of field 'description'.
1140 public void setDescription(final java.lang.String description)
1142 this._description = description;
1146 * Sets the value of field 'graph'.
1149 * the value of field 'graph'.
1151 public void setGraph(final boolean graph)
1153 this._graph = graph;
1154 this._has_graph = true;
1158 * Sets the value of field 'graphColour'.
1160 * @param graphColour
1161 * the value of field 'graphColour'.
1163 public void setGraphColour(final int graphColour)
1165 this._graphColour = graphColour;
1166 this._has_graphColour = true;
1170 * Sets the value of field 'graphGroup'.
1173 * the value of field 'graphGroup'.
1175 public void setGraphGroup(final int graphGroup)
1177 this._graphGroup = graphGroup;
1178 this._has_graphGroup = true;
1182 * Sets the value of field 'graphHeight'. The field 'graphHeight' has the
1183 * following description: height in pixels for the graph if this is a
1184 * graph-type annotation.
1186 * @param graphHeight
1187 * the value of field 'graphHeight'.
1189 public void setGraphHeight(final int graphHeight)
1191 this._graphHeight = graphHeight;
1192 this._has_graphHeight = true;
1196 * Sets the value of field 'graphType'.
1199 * the value of field 'graphType'.
1201 public void setGraphType(final int graphType)
1203 this._graphType = graphType;
1204 this._has_graphType = true;
1208 * Sets the value of field 'groupRef'.
1211 * the value of field 'groupRef'.
1213 public void setGroupRef(final java.lang.String groupRef)
1215 this._groupRef = groupRef;
1219 * Sets the value of field 'id'.
1222 * the value of field 'id'.
1224 public void setId(final java.lang.String id)
1230 * Sets the value of field 'label'.
1233 * the value of field 'label'.
1235 public void setLabel(final java.lang.String label)
1237 this._label = label;
1245 * @throws java.lang.IndexOutOfBoundsException
1246 * if the index given is outside the bounds of the collection
1248 public void setProperty(final int index,
1249 final jalview.schemabinding.version2.Property vProperty)
1250 throws java.lang.IndexOutOfBoundsException
1252 // check bounds for index
1253 if (index < 0 || index >= this._propertyList.size())
1255 throw new IndexOutOfBoundsException("setProperty: Index value '"
1256 + index + "' not in range [0.."
1257 + (this._propertyList.size() - 1) + "]");
1260 this._propertyList.set(index, vProperty);
1266 * @param vPropertyArray
1268 public void setProperty(
1269 final jalview.schemabinding.version2.Property[] vPropertyArray)
1272 _propertyList.clear();
1274 for (int i = 0; i < vPropertyArray.length; i++)
1276 this._propertyList.add(vPropertyArray[i]);
1281 * Sets the value of field 'scaleColLabels'.
1283 * @param scaleColLabels
1284 * the value of field 'scaleColLabels'.
1286 public void setScaleColLabels(final boolean scaleColLabels)
1288 this._scaleColLabels = scaleColLabels;
1289 this._has_scaleColLabels = true;
1293 * Sets the value of field 'score'.
1296 * the value of field 'score'.
1298 public void setScore(final double score)
1300 this._score = score;
1301 this._has_score = true;
1305 * Sets the value of field 'scoreOnly'.
1308 * the value of field 'scoreOnly'.
1310 public void setScoreOnly(final boolean scoreOnly)
1312 this._scoreOnly = scoreOnly;
1313 this._has_scoreOnly = true;
1317 * Sets the value of field 'sequenceRef'.
1319 * @param sequenceRef
1320 * the value of field 'sequenceRef'.
1322 public void setSequenceRef(final java.lang.String sequenceRef)
1324 this._sequenceRef = sequenceRef;
1328 * Sets the value of field 'showAllColLabels'.
1330 * @param showAllColLabels
1331 * the value of field 'showAllColLabels'
1333 public void setShowAllColLabels(final boolean showAllColLabels)
1335 this._showAllColLabels = showAllColLabels;
1336 this._has_showAllColLabels = true;
1340 * Sets the value of field 'thresholdLine'.
1342 * @param thresholdLine
1343 * the value of field 'thresholdLine'.
1345 public void setThresholdLine(
1346 final jalview.schemabinding.version2.ThresholdLine thresholdLine)
1348 this._thresholdLine = thresholdLine;
1352 * Sets the value of field 'visible'.
1355 * the value of field 'visible'.
1357 public void setVisible(final boolean visible)
1359 this._visible = visible;
1360 this._has_visible = true;
1367 * @throws org.exolab.castor.xml.MarshalException
1368 * if object is null or if any SAXException is thrown during
1370 * @throws org.exolab.castor.xml.ValidationException
1371 * if this object is an invalid instance according to the schema
1372 * @return the unmarshaled jalview.schemabinding.version2.Annotation
1374 public static jalview.schemabinding.version2.Annotation unmarshal(
1375 final java.io.Reader reader)
1376 throws org.exolab.castor.xml.MarshalException,
1377 org.exolab.castor.xml.ValidationException
1379 return (jalview.schemabinding.version2.Annotation) Unmarshaller
1380 .unmarshal(jalview.schemabinding.version2.Annotation.class,
1387 * @throws org.exolab.castor.xml.ValidationException
1388 * if this object is an invalid instance according to the schema
1390 public void validate() throws org.exolab.castor.xml.ValidationException
1392 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
1393 validator.validate(this);