- }\r
-\r
- /**\r
- * Returns the value of field 'graph'. The field 'graph' has\r
- * the following description: TODO: decide if this flag is\r
- * redundant - when true it would suggest that\r
- * the annotationElement values together form a\r
- * graph \r
- * \r
- * @return the value of field 'Graph'.\r
- */\r
- public boolean getGraph(\r
- ) {\r
- return this._graph;\r
- }\r
-\r
- /**\r
- * Returns the value of field 'provenance'.\r
- * \r
- * @return the value of field 'Provenance'.\r
- */\r
- public uk.ac.vamsas.objects.core.Provenance getProvenance(\r
- ) {\r
- return this._provenance;\r
- }\r
-\r
- /**\r
- * Method getSeqrefs.\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 java.lang.Object at the given index\r
- */\r
- public java.lang.Object getSeqrefs(\r
- final int index)\r
- throws java.lang.IndexOutOfBoundsException {\r
- // check bounds for index\r
- if (index < 0 || index >= this._seqrefs.size()) {\r
- throw new IndexOutOfBoundsException("getSeqrefs: Index value '" + index + "' not in range [0.." + (this._seqrefs.size() - 1) + "]");\r
- }\r
- \r
- return _seqrefs.get(index);\r
- }\r
-\r
- /**\r
- * Method getSeqrefs.Returns the contents of the collection in\r
- * an Array. <p>Note: Just in case the collection contents\r
- * are changing in another thread, we pass a 0-length Array of\r
- * the correct type into the API call. This way we <i>know</i>\r
- * that the Array returned is of exactly the correct length.\r
- * \r
- * @return this collection as an Array\r
- */\r
- public java.lang.Object[] getSeqrefs(\r
- ) {\r
- java.lang.Object[] array = new java.lang.Object[0];\r
- return (java.lang.Object[]) this._seqrefs.toArray(array);\r
- }\r
-\r
- /**\r
- * Method getSeqrefsAsReference.Returns a reference to\r
- * '_seqrefs'. No type checking is performed on any\r
- * modifications to the Vector.\r
- * \r
- * @return a reference to the Vector backing this class\r
- */\r
- public java.util.Vector getSeqrefsAsReference(\r
- ) {\r
- return this._seqrefs;\r
- }\r
-\r
- /**\r
- * Method getSeqrefsCount.\r
- * \r
- * @return the size of this collection\r
- */\r
- public int getSeqrefsCount(\r
- ) {\r
- return this._seqrefs.size();\r
- }\r
-\r
- /**\r
- * Method hasGraph.\r
- * \r
- * @return true if at least one Graph has been added\r
- */\r
- public boolean hasGraph(\r
- ) {\r
- return this._has_graph;\r
- }\r
-\r
- /**\r
- * Overrides the java.lang.Object.hashCode method.\r
- * <p>\r
- * The following steps came from <b>Effective Java Programming\r
- * Language Guide</b> by Joshua Bloch, Chapter 3\r
- * \r
- * @return a hash code value for the object.\r
- */\r
- public int hashCode(\r
- ) {\r
- int result = super.hashCode();\r
- \r
- long tmp;\r
- result = 37 * result + (_graph?0:1);\r
- if (_seqrefs != null\r
- && !org.castor.util.CycleBreaker.startingToCycle(_seqrefs)) {\r
- result = 37 * result + _seqrefs.hashCode();\r
- org.castor.util.CycleBreaker.releaseCycleHandle(_seqrefs);\r
- }\r
- if (_provenance != null\r
- && !org.castor.util.CycleBreaker.startingToCycle(_provenance)) {\r
- result = 37 * result + _provenance.hashCode();\r
- org.castor.util.CycleBreaker.releaseCycleHandle(_provenance);\r
- }\r
- \r
- return result;\r
- }\r
-\r
- /**\r
- * Returns the value of field 'graph'. The field 'graph' has\r
- * the following description: TODO: decide if this flag is\r
- * redundant - when true it would suggest that\r
- * the annotationElement values together form a\r
- * graph \r
- * \r
- * @return the value of field 'Graph'.\r
- */\r
- public boolean isGraph(\r
- ) {\r
- return this._graph;\r
- }\r
-\r
- /**\r
- * Method isValid.\r
- * \r
- * @return true if this object is valid according to the schema\r
- */\r
- public boolean isValid(\r
- ) {\r
- try {\r
- validate();\r
- } catch (org.exolab.castor.xml.ValidationException vex) {\r