- }
-
- /**
- * Method getApplicationData.
- *
- * @param index
- * @throws java.lang.IndexOutOfBoundsException if the index
- * given is outside the bounds of the collection
- * @return the value of the
- * uk.ac.vamsas.objects.core.ApplicationData at the given index
- */
- public uk.ac.vamsas.objects.core.ApplicationData getApplicationData(
- final int index)
- throws java.lang.IndexOutOfBoundsException {
- // check bounds for index
- if (index < 0 || index >= this._applicationDataList.size()) {
- throw new IndexOutOfBoundsException("getApplicationData: Index value '" + index + "' not in range [0.." + (this._applicationDataList.size() - 1) + "]");
- }
-
- return (uk.ac.vamsas.objects.core.ApplicationData) _applicationDataList.get(index);
- }
-
- /**
- * Method getApplicationData.Returns the contents of the
- * collection in an Array. <p>Note: Just in case the
- * collection contents are changing in another thread, we pass
- * a 0-length Array of the correct type into the API call.
- * This way we <i>know</i> that the Array returned is of
- * exactly the correct length.
- *
- * @return this collection as an Array
- */
- public uk.ac.vamsas.objects.core.ApplicationData[] getApplicationData(
- ) {
- uk.ac.vamsas.objects.core.ApplicationData[] array = new uk.ac.vamsas.objects.core.ApplicationData[0];
- return (uk.ac.vamsas.objects.core.ApplicationData[]) this._applicationDataList.toArray(array);
- }
-
- /**
- * Method getApplicationDataAsReference.Returns a reference to
- * '_applicationDataList'. No type checking is performed on any
- * modifications to the Vector.
- *
- * @return a reference to the Vector backing this class
- */
- public java.util.Vector getApplicationDataAsReference(
- ) {
- return this._applicationDataList;
- }
-
- /**
- * Method getApplicationDataCount.
- *
- * @return the size of this collection
- */
- public int getApplicationDataCount(
- ) {
- return this._applicationDataList.size();
- }
-
- /**
- * Method getAttachment.
- *
- * @param index
- * @throws java.lang.IndexOutOfBoundsException if the index
- * given is outside the bounds of the collection
- * @return the value of the
- * uk.ac.vamsas.objects.core.Attachment at the given index
- */
- public uk.ac.vamsas.objects.core.Attachment getAttachment(
- final int index)
- throws java.lang.IndexOutOfBoundsException {
- // check bounds for index
- if (index < 0 || index >= this._attachmentList.size()) {
- throw new IndexOutOfBoundsException("getAttachment: Index value '" + index + "' not in range [0.." + (this._attachmentList.size() - 1) + "]");
- }
-
- return (uk.ac.vamsas.objects.core.Attachment) _attachmentList.get(index);
- }
-
- /**
- * Method getAttachment.Returns the contents of the collection
- * in an Array. <p>Note: Just in case the collection contents
- * are changing in another thread, we pass a 0-length Array of
- * the correct type into the API call. This way we <i>know</i>
- * that the Array returned is of exactly the correct length.
- *
- * @return this collection as an Array
- */
- public uk.ac.vamsas.objects.core.Attachment[] getAttachment(
- ) {
- uk.ac.vamsas.objects.core.Attachment[] array = new uk.ac.vamsas.objects.core.Attachment[0];
- return (uk.ac.vamsas.objects.core.Attachment[]) this._attachmentList.toArray(array);
- }
-
- /**
- * Method getAttachmentAsReference.Returns a reference to
- * '_attachmentList'. No type checking is performed on any
- * modifications to the Vector.
- *
- * @return a reference to the Vector backing this class
- */
- public java.util.Vector getAttachmentAsReference(
- ) {
- return this._attachmentList;
- }
-
- /**
- * Method getAttachmentCount.
- *
- * @return the size of this collection
- */
- public int getAttachmentCount(
- ) {
- return this._attachmentList.size();
- }
-
- /**
- * Returns the value of field 'lockFile'.
- *
- * @return the value of field 'LockFile'.
- */
- public uk.ac.vamsas.objects.core.LockFile getLockFile(
- ) {
- return this._lockFile;
- }
-
- /**
- * Returns the value of field 'provenance'.
- *
- * @return the value of field 'Provenance'.
- */
- public uk.ac.vamsas.objects.core.Provenance getProvenance(
- ) {
- return this._provenance;
- }
-
- /**
- * Method getVAMSAS.
- *
- * @param index
- * @throws java.lang.IndexOutOfBoundsException if the index
- * given is outside the bounds of the collection
- * @return the value of the uk.ac.vamsas.objects.core.VAMSAS at
- * the given index
- */
- public uk.ac.vamsas.objects.core.VAMSAS getVAMSAS(
- final int index)
- throws java.lang.IndexOutOfBoundsException {
- // check bounds for index
- if (index < 0 || index >= this._VAMSASList.size()) {
- throw new IndexOutOfBoundsException("getVAMSAS: Index value '" + index + "' not in range [0.." + (this._VAMSASList.size() - 1) + "]");
- }
-
- return (uk.ac.vamsas.objects.core.VAMSAS) _VAMSASList.get(index);
- }
-
- /**
- * Method getVAMSAS.Returns the contents of the collection in
- * an Array. <p>Note: Just in case the collection contents
- * are changing in another thread, we pass a 0-length Array of
- * the correct type into the API call. This way we <i>know</i>
- * that the Array returned is of exactly the correct length.
- *
- * @return this collection as an Array
- */
- public uk.ac.vamsas.objects.core.VAMSAS[] getVAMSAS(
- ) {
- uk.ac.vamsas.objects.core.VAMSAS[] array = new uk.ac.vamsas.objects.core.VAMSAS[0];
- return (uk.ac.vamsas.objects.core.VAMSAS[]) this._VAMSASList.toArray(array);
- }
-
- /**
- * Method getVAMSASAsReference.Returns a reference to
- * '_VAMSASList'. No type checking is performed on any
- * modifications to the Vector.
- *
- * @return a reference to the Vector backing this class
- */
- public java.util.Vector getVAMSASAsReference(
- ) {
- return this._VAMSASList;
- }
-
- /**
- * Method getVAMSASCount.
- *
- * @return the size of this collection
- */
- public int getVAMSASCount(
- ) {
- return this._VAMSASList.size();
- }
-
- /**
- * Returns the value of field 'version'. The field 'version'
- * has the following description: Vamsas Document Version
- * Number
- *
- * @return the value of field 'Version'.
- */
- public java.lang.String getVersion(
- ) {
- return this._version;
- }
-
- /**
- * Overrides the java.lang.Object.hashCode method.
- * <p>
- * The following steps came from <b>Effective Java Programming
- * Language Guide</b> by Joshua Bloch, Chapter 3
- *
- * @return a hash code value for the object.
- */
- public int hashCode(
- ) {
- int result = super.hashCode();
-
- long tmp;
- if (_version != null) {
- result = 37 * result + _version.hashCode();
- }
- if (_lockFile != null) {
- result = 37 * result + _lockFile.hashCode();
- }
- if (_provenance != null) {
- result = 37 * result + _provenance.hashCode();
- }
- if (_VAMSASList != null) {
- result = 37 * result + _VAMSASList.hashCode();