2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package uk.ac.vamsas.objects.core;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
18 * Store a list of database references
19 * for this sequence record - with optional mapping
20 * from database sequence to the given sequence record
22 * @version $Revision$ $Date$
24 public class DbRef extends uk.ac.vamsas.client.Vobject
25 implements java.io.Serializable
29 //--------------------------/
30 //- Class/Member Variables -/
31 //--------------------------/
34 * TODO Database Naming
35 * Convention: either start using LSID (so
36 * change type to URI) or leave this as an
37 * uncontrolled/unspecified string ID
40 private java.lang.String _source;
43 * Version must be specified -
46 private java.lang.String _version;
49 * TODO: make some specification
50 * of the database field from which this
51 * accessionId is taken from - should that be a
52 * special property of the dbRef object ?
55 private java.lang.String _accessionId;
58 * Primary Key for vamsas object
61 private java.lang.String _id;
64 * the local mapType maps from the parent
65 * sequence coordinate frame to the reference
66 * frame defined by the dbRef element.
67 * The mapped mapType is the mapped range defined
68 * on the dbRef element's reference frame.
69 * Conventionally, the unit attribute defaults to 1, or
70 * will be inferred from the local sequence's
71 * dictionary type and any dictionary type associated
72 * with the database being mapped to.
73 * However, it may be used to avoid ambiguity.
76 private java.util.Vector _mapList;
81 private java.util.Vector _linkList;
84 * Field _propertyList.
86 private java.util.Vector _propertyList;
95 this._mapList = new java.util.Vector();
96 this._linkList = new java.util.Vector();
97 this._propertyList = new java.util.Vector();
109 * @throws java.lang.IndexOutOfBoundsException if the index
110 * given is outside the bounds of the collection
113 final uk.ac.vamsas.objects.core.Link vLink)
114 throws java.lang.IndexOutOfBoundsException {
115 this._linkList.addElement(vLink);
123 * @throws java.lang.IndexOutOfBoundsException if the index
124 * given is outside the bounds of the collection
128 final uk.ac.vamsas.objects.core.Link vLink)
129 throws java.lang.IndexOutOfBoundsException {
130 this._linkList.add(index, vLink);
137 * @throws java.lang.IndexOutOfBoundsException if the index
138 * given is outside the bounds of the collection
141 final uk.ac.vamsas.objects.core.Map vMap)
142 throws java.lang.IndexOutOfBoundsException {
143 this._mapList.addElement(vMap);
151 * @throws java.lang.IndexOutOfBoundsException if the index
152 * given is outside the bounds of the collection
156 final uk.ac.vamsas.objects.core.Map vMap)
157 throws java.lang.IndexOutOfBoundsException {
158 this._mapList.add(index, vMap);
165 * @throws java.lang.IndexOutOfBoundsException if the index
166 * given is outside the bounds of the collection
168 public void addProperty(
169 final uk.ac.vamsas.objects.core.Property vProperty)
170 throws java.lang.IndexOutOfBoundsException {
171 this._propertyList.addElement(vProperty);
179 * @throws java.lang.IndexOutOfBoundsException if the index
180 * given is outside the bounds of the collection
182 public void addProperty(
184 final uk.ac.vamsas.objects.core.Property vProperty)
185 throws java.lang.IndexOutOfBoundsException {
186 this._propertyList.add(index, vProperty);
190 * Method enumerateLink.
192 * @return an Enumeration over all
193 * uk.ac.vamsas.objects.core.Link elements
195 public java.util.Enumeration enumerateLink(
197 return this._linkList.elements();
201 * Method enumerateMap.
203 * @return an Enumeration over all
204 * uk.ac.vamsas.objects.core.Map elements
206 public java.util.Enumeration enumerateMap(
208 return this._mapList.elements();
212 * Method enumerateProperty.
214 * @return an Enumeration over all
215 * uk.ac.vamsas.objects.core.Property elements
217 public java.util.Enumeration enumerateProperty(
219 return this._propertyList.elements();
223 * Overrides the java.lang.Object.equals method.
226 * @return true if the objects are equal.
228 public boolean equals(
229 final java.lang.Object obj) {
233 if (super.equals(obj)==false)
236 if (obj instanceof DbRef) {
238 DbRef temp = (DbRef)obj;
241 if (this._source != null) {
242 if (temp._source == null) return false;
243 if (this._source != temp._source) {
244 thcycle=org.castor.util.CycleBreaker.startingToCycle(this._source);
245 tmcycle=org.castor.util.CycleBreaker.startingToCycle(temp._source);
246 if (thcycle!=tmcycle) {
247 if (!thcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(this._source); };
248 if (!tmcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(temp._source); };
252 if (!this._source.equals(temp._source)) {
253 org.castor.util.CycleBreaker.releaseCycleHandle(this._source);
254 org.castor.util.CycleBreaker.releaseCycleHandle(temp._source);
257 org.castor.util.CycleBreaker.releaseCycleHandle(this._source);
258 org.castor.util.CycleBreaker.releaseCycleHandle(temp._source);
261 } else if (temp._source != null)
263 if (this._version != null) {
264 if (temp._version == null) return false;
265 if (this._version != temp._version) {
266 thcycle=org.castor.util.CycleBreaker.startingToCycle(this._version);
267 tmcycle=org.castor.util.CycleBreaker.startingToCycle(temp._version);
268 if (thcycle!=tmcycle) {
269 if (!thcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(this._version); };
270 if (!tmcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(temp._version); };
274 if (!this._version.equals(temp._version)) {
275 org.castor.util.CycleBreaker.releaseCycleHandle(this._version);
276 org.castor.util.CycleBreaker.releaseCycleHandle(temp._version);
279 org.castor.util.CycleBreaker.releaseCycleHandle(this._version);
280 org.castor.util.CycleBreaker.releaseCycleHandle(temp._version);
283 } else if (temp._version != null)
285 if (this._accessionId != null) {
286 if (temp._accessionId == null) return false;
287 if (this._accessionId != temp._accessionId) {
288 thcycle=org.castor.util.CycleBreaker.startingToCycle(this._accessionId);
289 tmcycle=org.castor.util.CycleBreaker.startingToCycle(temp._accessionId);
290 if (thcycle!=tmcycle) {
291 if (!thcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(this._accessionId); };
292 if (!tmcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(temp._accessionId); };
296 if (!this._accessionId.equals(temp._accessionId)) {
297 org.castor.util.CycleBreaker.releaseCycleHandle(this._accessionId);
298 org.castor.util.CycleBreaker.releaseCycleHandle(temp._accessionId);
301 org.castor.util.CycleBreaker.releaseCycleHandle(this._accessionId);
302 org.castor.util.CycleBreaker.releaseCycleHandle(temp._accessionId);
305 } else if (temp._accessionId != null)
307 if (this._id != null) {
308 if (temp._id == null) return false;
309 if (this._id != temp._id) {
310 thcycle=org.castor.util.CycleBreaker.startingToCycle(this._id);
311 tmcycle=org.castor.util.CycleBreaker.startingToCycle(temp._id);
312 if (thcycle!=tmcycle) {
313 if (!thcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(this._id); };
314 if (!tmcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(temp._id); };
318 if (!this._id.equals(temp._id)) {
319 org.castor.util.CycleBreaker.releaseCycleHandle(this._id);
320 org.castor.util.CycleBreaker.releaseCycleHandle(temp._id);
323 org.castor.util.CycleBreaker.releaseCycleHandle(this._id);
324 org.castor.util.CycleBreaker.releaseCycleHandle(temp._id);
327 } else if (temp._id != null)
329 if (this._mapList != null) {
330 if (temp._mapList == null) return false;
331 if (this._mapList != temp._mapList) {
332 thcycle=org.castor.util.CycleBreaker.startingToCycle(this._mapList);
333 tmcycle=org.castor.util.CycleBreaker.startingToCycle(temp._mapList);
334 if (thcycle!=tmcycle) {
335 if (!thcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(this._mapList); };
336 if (!tmcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(temp._mapList); };
340 if (!this._mapList.equals(temp._mapList)) {
341 org.castor.util.CycleBreaker.releaseCycleHandle(this._mapList);
342 org.castor.util.CycleBreaker.releaseCycleHandle(temp._mapList);
345 org.castor.util.CycleBreaker.releaseCycleHandle(this._mapList);
346 org.castor.util.CycleBreaker.releaseCycleHandle(temp._mapList);
349 } else if (temp._mapList != null)
351 if (this._linkList != null) {
352 if (temp._linkList == null) return false;
353 if (this._linkList != temp._linkList) {
354 thcycle=org.castor.util.CycleBreaker.startingToCycle(this._linkList);
355 tmcycle=org.castor.util.CycleBreaker.startingToCycle(temp._linkList);
356 if (thcycle!=tmcycle) {
357 if (!thcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(this._linkList); };
358 if (!tmcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(temp._linkList); };
362 if (!this._linkList.equals(temp._linkList)) {
363 org.castor.util.CycleBreaker.releaseCycleHandle(this._linkList);
364 org.castor.util.CycleBreaker.releaseCycleHandle(temp._linkList);
367 org.castor.util.CycleBreaker.releaseCycleHandle(this._linkList);
368 org.castor.util.CycleBreaker.releaseCycleHandle(temp._linkList);
371 } else if (temp._linkList != null)
373 if (this._propertyList != null) {
374 if (temp._propertyList == null) return false;
375 if (this._propertyList != temp._propertyList) {
376 thcycle=org.castor.util.CycleBreaker.startingToCycle(this._propertyList);
377 tmcycle=org.castor.util.CycleBreaker.startingToCycle(temp._propertyList);
378 if (thcycle!=tmcycle) {
379 if (!thcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(this._propertyList); };
380 if (!tmcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(temp._propertyList); };
384 if (!this._propertyList.equals(temp._propertyList)) {
385 org.castor.util.CycleBreaker.releaseCycleHandle(this._propertyList);
386 org.castor.util.CycleBreaker.releaseCycleHandle(temp._propertyList);
389 org.castor.util.CycleBreaker.releaseCycleHandle(this._propertyList);
390 org.castor.util.CycleBreaker.releaseCycleHandle(temp._propertyList);
393 } else if (temp._propertyList != null)
401 * Returns the value of field 'accessionId'. The field
402 * 'accessionId' has the following description: TODO: make some
404 * of the database field from which this
405 * accessionId is taken from - should that be a
406 * special property of the dbRef object ?
409 * @return the value of field 'AccessionId'.
411 public java.lang.String getAccessionId(
413 return this._accessionId;
417 * Returns the value of field 'id'. The field 'id' has the
418 * following description: Primary Key for vamsas object
421 * @return the value of field 'Id'.
423 public java.lang.String getId(
432 * @throws java.lang.IndexOutOfBoundsException if the index
433 * given is outside the bounds of the collection
434 * @return the value of the uk.ac.vamsas.objects.core.Link at
437 public uk.ac.vamsas.objects.core.Link getLink(
439 throws java.lang.IndexOutOfBoundsException {
440 // check bounds for index
441 if (index < 0 || index >= this._linkList.size()) {
442 throw new IndexOutOfBoundsException("getLink: Index value '" + index + "' not in range [0.." + (this._linkList.size() - 1) + "]");
445 return (uk.ac.vamsas.objects.core.Link) _linkList.get(index);
449 * Method getLink.Returns the contents of the collection in an
450 * Array. <p>Note: Just in case the collection contents are
451 * changing in another thread, we pass a 0-length Array of the
452 * correct type into the API call. This way we <i>know</i>
453 * that the Array returned is of exactly the correct length.
455 * @return this collection as an Array
457 public uk.ac.vamsas.objects.core.Link[] getLink(
459 uk.ac.vamsas.objects.core.Link[] array = new uk.ac.vamsas.objects.core.Link[0];
460 return (uk.ac.vamsas.objects.core.Link[]) this._linkList.toArray(array);
464 * Method getLinkAsReference.Returns a reference to
465 * '_linkList'. No type checking is performed on any
466 * modifications to the Vector.
468 * @return a reference to the Vector backing this class
470 public java.util.Vector getLinkAsReference(
472 return this._linkList;
476 * Method getLinkCount.
478 * @return the size of this collection
480 public int getLinkCount(
482 return this._linkList.size();
489 * @throws java.lang.IndexOutOfBoundsException if the index
490 * given is outside the bounds of the collection
491 * @return the value of the uk.ac.vamsas.objects.core.Map at
494 public uk.ac.vamsas.objects.core.Map getMap(
496 throws java.lang.IndexOutOfBoundsException {
497 // check bounds for index
498 if (index < 0 || index >= this._mapList.size()) {
499 throw new IndexOutOfBoundsException("getMap: Index value '" + index + "' not in range [0.." + (this._mapList.size() - 1) + "]");
502 return (uk.ac.vamsas.objects.core.Map) _mapList.get(index);
506 * Method getMap.Returns the contents of the collection in an
507 * Array. <p>Note: Just in case the collection contents are
508 * changing in another thread, we pass a 0-length Array of the
509 * correct type into the API call. This way we <i>know</i>
510 * that the Array returned is of exactly the correct length.
512 * @return this collection as an Array
514 public uk.ac.vamsas.objects.core.Map[] getMap(
516 uk.ac.vamsas.objects.core.Map[] array = new uk.ac.vamsas.objects.core.Map[0];
517 return (uk.ac.vamsas.objects.core.Map[]) this._mapList.toArray(array);
521 * Method getMapAsReference.Returns a reference to '_mapList'.
522 * No type checking is performed on any modifications to the
525 * @return a reference to the Vector backing this class
527 public java.util.Vector getMapAsReference(
529 return this._mapList;
533 * Method getMapCount.
535 * @return the size of this collection
537 public int getMapCount(
539 return this._mapList.size();
543 * Method getProperty.
546 * @throws java.lang.IndexOutOfBoundsException if the index
547 * given is outside the bounds of the collection
548 * @return the value of the uk.ac.vamsas.objects.core.Property
551 public uk.ac.vamsas.objects.core.Property getProperty(
553 throws java.lang.IndexOutOfBoundsException {
554 // check bounds for index
555 if (index < 0 || index >= this._propertyList.size()) {
556 throw new IndexOutOfBoundsException("getProperty: Index value '" + index + "' not in range [0.." + (this._propertyList.size() - 1) + "]");
559 return (uk.ac.vamsas.objects.core.Property) _propertyList.get(index);
563 * Method getProperty.Returns the contents of the collection in
564 * an Array. <p>Note: Just in case the collection contents
565 * are changing in another thread, we pass a 0-length Array of
566 * the correct type into the API call. This way we <i>know</i>
567 * that the Array returned is of exactly the correct length.
569 * @return this collection as an Array
571 public uk.ac.vamsas.objects.core.Property[] getProperty(
573 uk.ac.vamsas.objects.core.Property[] array = new uk.ac.vamsas.objects.core.Property[0];
574 return (uk.ac.vamsas.objects.core.Property[]) this._propertyList.toArray(array);
578 * Method getPropertyAsReference.Returns a reference to
579 * '_propertyList'. No type checking is performed on any
580 * modifications to the Vector.
582 * @return a reference to the Vector backing this class
584 public java.util.Vector getPropertyAsReference(
586 return this._propertyList;
590 * Method getPropertyCount.
592 * @return the size of this collection
594 public int getPropertyCount(
596 return this._propertyList.size();
600 * Returns the value of field 'source'. The field 'source' has
601 * the following description: TODO Database Naming
602 * Convention: either start using LSID (so
603 * change type to URI) or leave this as an
604 * uncontrolled/unspecified string ID
607 * @return the value of field 'Source'.
609 public java.lang.String getSource(
615 * Returns the value of field 'version'. The field 'version'
616 * has the following description: Version must be specified -
619 * @return the value of field 'Version'.
621 public java.lang.String getVersion(
623 return this._version;
627 * Overrides the java.lang.Object.hashCode method.
629 * The following steps came from <b>Effective Java Programming
630 * Language Guide</b> by Joshua Bloch, Chapter 3
632 * @return a hash code value for the object.
636 int result = super.hashCode();
640 && !org.castor.util.CycleBreaker.startingToCycle(_source)) {
641 result = 37 * result + _source.hashCode();
642 org.castor.util.CycleBreaker.releaseCycleHandle(_source);
645 && !org.castor.util.CycleBreaker.startingToCycle(_version)) {
646 result = 37 * result + _version.hashCode();
647 org.castor.util.CycleBreaker.releaseCycleHandle(_version);
649 if (_accessionId != null
650 && !org.castor.util.CycleBreaker.startingToCycle(_accessionId)) {
651 result = 37 * result + _accessionId.hashCode();
652 org.castor.util.CycleBreaker.releaseCycleHandle(_accessionId);
655 && !org.castor.util.CycleBreaker.startingToCycle(_id)) {
656 result = 37 * result + _id.hashCode();
657 org.castor.util.CycleBreaker.releaseCycleHandle(_id);
660 && !org.castor.util.CycleBreaker.startingToCycle(_mapList)) {
661 result = 37 * result + _mapList.hashCode();
662 org.castor.util.CycleBreaker.releaseCycleHandle(_mapList);
664 if (_linkList != null
665 && !org.castor.util.CycleBreaker.startingToCycle(_linkList)) {
666 result = 37 * result + _linkList.hashCode();
667 org.castor.util.CycleBreaker.releaseCycleHandle(_linkList);
669 if (_propertyList != null
670 && !org.castor.util.CycleBreaker.startingToCycle(_propertyList)) {
671 result = 37 * result + _propertyList.hashCode();
672 org.castor.util.CycleBreaker.releaseCycleHandle(_propertyList);
681 * @return true if this object is valid according to the schema
683 public boolean isValid(
687 } catch (org.exolab.castor.xml.ValidationException vex) {
697 * @throws org.exolab.castor.xml.MarshalException if object is
698 * null or if any SAXException is thrown during marshaling
699 * @throws org.exolab.castor.xml.ValidationException if this
700 * object is an invalid instance according to the schema
703 final java.io.Writer out)
704 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
705 Marshaller.marshal(this, out);
712 * @throws java.io.IOException if an IOException occurs during
714 * @throws org.exolab.castor.xml.ValidationException if this
715 * object is an invalid instance according to the schema
716 * @throws org.exolab.castor.xml.MarshalException if object is
717 * null or if any SAXException is thrown during marshaling
720 final org.xml.sax.ContentHandler handler)
721 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
722 Marshaller.marshal(this, handler);
727 public void removeAllLink(
729 this._linkList.clear();
734 public void removeAllMap(
736 this._mapList.clear();
741 public void removeAllProperty(
743 this._propertyList.clear();
750 * @return true if the object was removed from the collection.
752 public boolean removeLink(
753 final uk.ac.vamsas.objects.core.Link vLink) {
754 boolean removed = _linkList.remove(vLink);
759 * Method removeLinkAt.
762 * @return the element removed from the collection
764 public uk.ac.vamsas.objects.core.Link removeLinkAt(
766 java.lang.Object obj = this._linkList.remove(index);
767 return (uk.ac.vamsas.objects.core.Link) obj;
774 * @return true if the object was removed from the collection.
776 public boolean removeMap(
777 final uk.ac.vamsas.objects.core.Map vMap) {
778 boolean removed = _mapList.remove(vMap);
783 * Method removeMapAt.
786 * @return the element removed from the collection
788 public uk.ac.vamsas.objects.core.Map removeMapAt(
790 java.lang.Object obj = this._mapList.remove(index);
791 return (uk.ac.vamsas.objects.core.Map) obj;
795 * Method removeProperty.
798 * @return true if the object was removed from the collection.
800 public boolean removeProperty(
801 final uk.ac.vamsas.objects.core.Property vProperty) {
802 boolean removed = _propertyList.remove(vProperty);
807 * Method removePropertyAt.
810 * @return the element removed from the collection
812 public uk.ac.vamsas.objects.core.Property removePropertyAt(
814 java.lang.Object obj = this._propertyList.remove(index);
815 return (uk.ac.vamsas.objects.core.Property) obj;
819 * Sets the value of field 'accessionId'. The field
820 * 'accessionId' has the following description: TODO: make some
822 * of the database field from which this
823 * accessionId is taken from - should that be a
824 * special property of the dbRef object ?
827 * @param accessionId the value of field 'accessionId'.
829 public void setAccessionId(
830 final java.lang.String accessionId) {
831 this._accessionId = accessionId;
835 * Sets the value of field 'id'. The field 'id' has the
836 * following description: Primary Key for vamsas object
839 * @param id the value of field 'id'.
842 final java.lang.String id) {
851 * @throws java.lang.IndexOutOfBoundsException if the index
852 * given is outside the bounds of the collection
856 final uk.ac.vamsas.objects.core.Link vLink)
857 throws java.lang.IndexOutOfBoundsException {
858 // check bounds for index
859 if (index < 0 || index >= this._linkList.size()) {
860 throw new IndexOutOfBoundsException("setLink: Index value '" + index + "' not in range [0.." + (this._linkList.size() - 1) + "]");
863 this._linkList.set(index, vLink);
872 final uk.ac.vamsas.objects.core.Link[] vLinkArray) {
876 for (int i = 0; i < vLinkArray.length; i++) {
877 this._linkList.add(vLinkArray[i]);
882 * Sets the value of '_linkList' by copying the given Vector.
883 * All elements will be checked for type safety.
885 * @param vLinkList the Vector to copy.
888 final java.util.Vector vLinkList) {
890 this._linkList.clear();
892 this._linkList.addAll(vLinkList);
896 * Sets the value of '_linkList' by setting it to the given
897 * Vector. No type checking is performed.
900 * @param linkVector the Vector to set.
902 public void setLinkAsReference(
903 final java.util.Vector linkVector) {
904 this._linkList = linkVector;
912 * @throws java.lang.IndexOutOfBoundsException if the index
913 * given is outside the bounds of the collection
917 final uk.ac.vamsas.objects.core.Map vMap)
918 throws java.lang.IndexOutOfBoundsException {
919 // check bounds for index
920 if (index < 0 || index >= this._mapList.size()) {
921 throw new IndexOutOfBoundsException("setMap: Index value '" + index + "' not in range [0.." + (this._mapList.size() - 1) + "]");
924 this._mapList.set(index, vMap);
933 final uk.ac.vamsas.objects.core.Map[] vMapArray) {
937 for (int i = 0; i < vMapArray.length; i++) {
938 this._mapList.add(vMapArray[i]);
943 * Sets the value of '_mapList' by copying the given Vector.
944 * All elements will be checked for type safety.
946 * @param vMapList the Vector to copy.
949 final java.util.Vector vMapList) {
951 this._mapList.clear();
953 this._mapList.addAll(vMapList);
957 * Sets the value of '_mapList' by setting it to the given
958 * Vector. No type checking is performed.
961 * @param mapVector the Vector to set.
963 public void setMapAsReference(
964 final java.util.Vector mapVector) {
965 this._mapList = mapVector;
973 * @throws java.lang.IndexOutOfBoundsException if the index
974 * given is outside the bounds of the collection
976 public void setProperty(
978 final uk.ac.vamsas.objects.core.Property vProperty)
979 throws java.lang.IndexOutOfBoundsException {
980 // check bounds for index
981 if (index < 0 || index >= this._propertyList.size()) {
982 throw new IndexOutOfBoundsException("setProperty: Index value '" + index + "' not in range [0.." + (this._propertyList.size() - 1) + "]");
985 this._propertyList.set(index, vProperty);
991 * @param vPropertyArray
993 public void setProperty(
994 final uk.ac.vamsas.objects.core.Property[] vPropertyArray) {
996 _propertyList.clear();
998 for (int i = 0; i < vPropertyArray.length; i++) {
999 this._propertyList.add(vPropertyArray[i]);
1004 * Sets the value of '_propertyList' by copying the given
1005 * Vector. All elements will be checked for type safety.
1007 * @param vPropertyList the Vector to copy.
1009 public void setProperty(
1010 final java.util.Vector vPropertyList) {
1012 this._propertyList.clear();
1014 this._propertyList.addAll(vPropertyList);
1018 * Sets the value of '_propertyList' by setting it to the given
1019 * Vector. No type checking is performed.
1022 * @param propertyVector the Vector to set.
1024 public void setPropertyAsReference(
1025 final java.util.Vector propertyVector) {
1026 this._propertyList = propertyVector;
1030 * Sets the value of field 'source'. The field 'source' has the
1031 * following description: TODO Database Naming
1032 * Convention: either start using LSID (so
1033 * change type to URI) or leave this as an
1034 * uncontrolled/unspecified string ID
1037 * @param source the value of field 'source'.
1039 public void setSource(
1040 final java.lang.String source) {
1041 this._source = source;
1045 * Sets the value of field 'version'. The field 'version' has
1046 * the following description: Version must be specified -
1049 * @param version the value of field 'version'.
1051 public void setVersion(
1052 final java.lang.String version) {
1053 this._version = version;
1060 * @throws org.exolab.castor.xml.MarshalException if object is
1061 * null or if any SAXException is thrown during marshaling
1062 * @throws org.exolab.castor.xml.ValidationException if this
1063 * object is an invalid instance according to the schema
1064 * @return the unmarshaled uk.ac.vamsas.objects.core.DbRef
1066 public static uk.ac.vamsas.objects.core.DbRef unmarshal(
1067 final java.io.Reader reader)
1068 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1069 return (uk.ac.vamsas.objects.core.DbRef) Unmarshaller.unmarshal(uk.ac.vamsas.objects.core.DbRef.class, reader);
1075 * @throws org.exolab.castor.xml.ValidationException if this
1076 * object is an invalid instance according to the schema
1078 public void validate(
1080 throws org.exolab.castor.xml.ValidationException {
1081 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
1082 validator.validate(this);