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;
20 * @version $Revision$ $Date$
22 public class Entry extends uk.ac.vamsas.client.Vobject
23 implements java.io.Serializable
27 //--------------------------/
28 //- Class/Member Variables -/
29 //--------------------------/
32 * Primary Key for vamsas object referencing
35 private java.lang.String _id;
40 private java.lang.String _user;
43 * With which application
45 private java.lang.String _app;
50 private java.lang.String _action;
55 private java.util.Date _date;
58 * additional information
60 private java.util.Vector _propertyList;
63 * parameter for the action
65 private java.util.Vector _paramList;
68 * bioinformatic objects input to action
71 private java.util.Vector _inputList;
80 this._propertyList = new java.util.Vector();
81 this._paramList = new java.util.Vector();
82 this._inputList = new java.util.Vector();
94 * @throws java.lang.IndexOutOfBoundsException if the index
95 * given is outside the bounds of the collection
98 final uk.ac.vamsas.objects.core.Input vInput)
99 throws java.lang.IndexOutOfBoundsException {
100 this._inputList.addElement(vInput);
108 * @throws java.lang.IndexOutOfBoundsException if the index
109 * given is outside the bounds of the collection
111 public void addInput(
113 final uk.ac.vamsas.objects.core.Input vInput)
114 throws java.lang.IndexOutOfBoundsException {
115 this._inputList.add(index, vInput);
122 * @throws java.lang.IndexOutOfBoundsException if the index
123 * given is outside the bounds of the collection
125 public void addParam(
126 final uk.ac.vamsas.objects.core.Param vParam)
127 throws java.lang.IndexOutOfBoundsException {
128 this._paramList.addElement(vParam);
136 * @throws java.lang.IndexOutOfBoundsException if the index
137 * given is outside the bounds of the collection
139 public void addParam(
141 final uk.ac.vamsas.objects.core.Param vParam)
142 throws java.lang.IndexOutOfBoundsException {
143 this._paramList.add(index, vParam);
150 * @throws java.lang.IndexOutOfBoundsException if the index
151 * given is outside the bounds of the collection
153 public void addProperty(
154 final uk.ac.vamsas.objects.core.Property vProperty)
155 throws java.lang.IndexOutOfBoundsException {
156 this._propertyList.addElement(vProperty);
164 * @throws java.lang.IndexOutOfBoundsException if the index
165 * given is outside the bounds of the collection
167 public void addProperty(
169 final uk.ac.vamsas.objects.core.Property vProperty)
170 throws java.lang.IndexOutOfBoundsException {
171 this._propertyList.add(index, vProperty);
175 * Method enumerateInput.
177 * @return an Enumeration over all
178 * uk.ac.vamsas.objects.core.Input elements
180 public java.util.Enumeration enumerateInput(
182 return this._inputList.elements();
186 * Method enumerateParam.
188 * @return an Enumeration over all
189 * uk.ac.vamsas.objects.core.Param elements
191 public java.util.Enumeration enumerateParam(
193 return this._paramList.elements();
197 * Method enumerateProperty.
199 * @return an Enumeration over all
200 * uk.ac.vamsas.objects.core.Property elements
202 public java.util.Enumeration enumerateProperty(
204 return this._propertyList.elements();
208 * Overrides the java.lang.Object.equals method.
211 * @return true if the objects are equal.
213 public boolean equals(
214 final java.lang.Object obj) {
218 if (super.equals(obj)==false)
221 if (obj instanceof Entry) {
223 Entry temp = (Entry)obj;
226 if (this._id != null) {
227 if (temp._id == null) return false;
228 if (this._id != temp._id) {
229 thcycle=org.castor.util.CycleBreaker.startingToCycle(this._id);
230 tmcycle=org.castor.util.CycleBreaker.startingToCycle(temp._id);
231 if (thcycle!=tmcycle) {
232 if (!thcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(this._id); };
233 if (!tmcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(temp._id); };
237 if (!this._id.equals(temp._id)) {
238 org.castor.util.CycleBreaker.releaseCycleHandle(this._id);
239 org.castor.util.CycleBreaker.releaseCycleHandle(temp._id);
242 org.castor.util.CycleBreaker.releaseCycleHandle(this._id);
243 org.castor.util.CycleBreaker.releaseCycleHandle(temp._id);
246 } else if (temp._id != null)
248 if (this._user != null) {
249 if (temp._user == null) return false;
250 if (this._user != temp._user) {
251 thcycle=org.castor.util.CycleBreaker.startingToCycle(this._user);
252 tmcycle=org.castor.util.CycleBreaker.startingToCycle(temp._user);
253 if (thcycle!=tmcycle) {
254 if (!thcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(this._user); };
255 if (!tmcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(temp._user); };
259 if (!this._user.equals(temp._user)) {
260 org.castor.util.CycleBreaker.releaseCycleHandle(this._user);
261 org.castor.util.CycleBreaker.releaseCycleHandle(temp._user);
264 org.castor.util.CycleBreaker.releaseCycleHandle(this._user);
265 org.castor.util.CycleBreaker.releaseCycleHandle(temp._user);
268 } else if (temp._user != null)
270 if (this._app != null) {
271 if (temp._app == null) return false;
272 if (this._app != temp._app) {
273 thcycle=org.castor.util.CycleBreaker.startingToCycle(this._app);
274 tmcycle=org.castor.util.CycleBreaker.startingToCycle(temp._app);
275 if (thcycle!=tmcycle) {
276 if (!thcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(this._app); };
277 if (!tmcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(temp._app); };
281 if (!this._app.equals(temp._app)) {
282 org.castor.util.CycleBreaker.releaseCycleHandle(this._app);
283 org.castor.util.CycleBreaker.releaseCycleHandle(temp._app);
286 org.castor.util.CycleBreaker.releaseCycleHandle(this._app);
287 org.castor.util.CycleBreaker.releaseCycleHandle(temp._app);
290 } else if (temp._app != null)
292 if (this._action != null) {
293 if (temp._action == null) return false;
294 if (this._action != temp._action) {
295 thcycle=org.castor.util.CycleBreaker.startingToCycle(this._action);
296 tmcycle=org.castor.util.CycleBreaker.startingToCycle(temp._action);
297 if (thcycle!=tmcycle) {
298 if (!thcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(this._action); };
299 if (!tmcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(temp._action); };
303 if (!this._action.equals(temp._action)) {
304 org.castor.util.CycleBreaker.releaseCycleHandle(this._action);
305 org.castor.util.CycleBreaker.releaseCycleHandle(temp._action);
308 org.castor.util.CycleBreaker.releaseCycleHandle(this._action);
309 org.castor.util.CycleBreaker.releaseCycleHandle(temp._action);
312 } else if (temp._action != null)
314 if (this._date != null) {
315 if (temp._date == null) return false;
316 if (this._date != temp._date) {
317 thcycle=org.castor.util.CycleBreaker.startingToCycle(this._date);
318 tmcycle=org.castor.util.CycleBreaker.startingToCycle(temp._date);
319 if (thcycle!=tmcycle) {
320 if (!thcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(this._date); };
321 if (!tmcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(temp._date); };
325 if (!this._date.equals(temp._date)) {
326 org.castor.util.CycleBreaker.releaseCycleHandle(this._date);
327 org.castor.util.CycleBreaker.releaseCycleHandle(temp._date);
330 org.castor.util.CycleBreaker.releaseCycleHandle(this._date);
331 org.castor.util.CycleBreaker.releaseCycleHandle(temp._date);
334 } else if (temp._date != null)
336 if (this._propertyList != null) {
337 if (temp._propertyList == null) return false;
338 if (this._propertyList != temp._propertyList) {
339 thcycle=org.castor.util.CycleBreaker.startingToCycle(this._propertyList);
340 tmcycle=org.castor.util.CycleBreaker.startingToCycle(temp._propertyList);
341 if (thcycle!=tmcycle) {
342 if (!thcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(this._propertyList); };
343 if (!tmcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(temp._propertyList); };
347 if (!this._propertyList.equals(temp._propertyList)) {
348 org.castor.util.CycleBreaker.releaseCycleHandle(this._propertyList);
349 org.castor.util.CycleBreaker.releaseCycleHandle(temp._propertyList);
352 org.castor.util.CycleBreaker.releaseCycleHandle(this._propertyList);
353 org.castor.util.CycleBreaker.releaseCycleHandle(temp._propertyList);
356 } else if (temp._propertyList != null)
358 if (this._paramList != null) {
359 if (temp._paramList == null) return false;
360 if (this._paramList != temp._paramList) {
361 thcycle=org.castor.util.CycleBreaker.startingToCycle(this._paramList);
362 tmcycle=org.castor.util.CycleBreaker.startingToCycle(temp._paramList);
363 if (thcycle!=tmcycle) {
364 if (!thcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(this._paramList); };
365 if (!tmcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(temp._paramList); };
369 if (!this._paramList.equals(temp._paramList)) {
370 org.castor.util.CycleBreaker.releaseCycleHandle(this._paramList);
371 org.castor.util.CycleBreaker.releaseCycleHandle(temp._paramList);
374 org.castor.util.CycleBreaker.releaseCycleHandle(this._paramList);
375 org.castor.util.CycleBreaker.releaseCycleHandle(temp._paramList);
378 } else if (temp._paramList != null)
380 if (this._inputList != null) {
381 if (temp._inputList == null) return false;
382 if (this._inputList != temp._inputList) {
383 thcycle=org.castor.util.CycleBreaker.startingToCycle(this._inputList);
384 tmcycle=org.castor.util.CycleBreaker.startingToCycle(temp._inputList);
385 if (thcycle!=tmcycle) {
386 if (!thcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(this._inputList); };
387 if (!tmcycle) { org.castor.util.CycleBreaker.releaseCycleHandle(temp._inputList); };
391 if (!this._inputList.equals(temp._inputList)) {
392 org.castor.util.CycleBreaker.releaseCycleHandle(this._inputList);
393 org.castor.util.CycleBreaker.releaseCycleHandle(temp._inputList);
396 org.castor.util.CycleBreaker.releaseCycleHandle(this._inputList);
397 org.castor.util.CycleBreaker.releaseCycleHandle(temp._inputList);
400 } else if (temp._inputList != null)
408 * Returns the value of field 'action'. The field 'action' has
409 * the following description: Did what
411 * @return the value of field 'Action'.
413 public java.lang.String getAction(
419 * Returns the value of field 'app'. The field 'app' has the
420 * following description: With which application
422 * @return the value of field 'App'.
424 public java.lang.String getApp(
430 * Returns the value of field 'date'. The field 'date' has the
431 * following description: When
433 * @return the value of field 'Date'.
435 public java.util.Date getDate(
441 * Returns the value of field 'id'. The field 'id' has the
442 * following description: Primary Key for vamsas object
446 * @return the value of field 'Id'.
448 public java.lang.String getId(
457 * @throws java.lang.IndexOutOfBoundsException if the index
458 * given is outside the bounds of the collection
459 * @return the value of the uk.ac.vamsas.objects.core.Input at
462 public uk.ac.vamsas.objects.core.Input getInput(
464 throws java.lang.IndexOutOfBoundsException {
465 // check bounds for index
466 if (index < 0 || index >= this._inputList.size()) {
467 throw new IndexOutOfBoundsException("getInput: Index value '" + index + "' not in range [0.." + (this._inputList.size() - 1) + "]");
470 return (uk.ac.vamsas.objects.core.Input) _inputList.get(index);
474 * Method getInput.Returns the contents of the collection in an
475 * Array. <p>Note: Just in case the collection contents are
476 * changing in another thread, we pass a 0-length Array of the
477 * correct type into the API call. This way we <i>know</i>
478 * that the Array returned is of exactly the correct length.
480 * @return this collection as an Array
482 public uk.ac.vamsas.objects.core.Input[] getInput(
484 uk.ac.vamsas.objects.core.Input[] array = new uk.ac.vamsas.objects.core.Input[0];
485 return (uk.ac.vamsas.objects.core.Input[]) this._inputList.toArray(array);
489 * Method getInputAsReference.Returns a reference to
490 * '_inputList'. No type checking is performed on any
491 * modifications to the Vector.
493 * @return a reference to the Vector backing this class
495 public java.util.Vector getInputAsReference(
497 return this._inputList;
501 * Method getInputCount.
503 * @return the size of this collection
505 public int getInputCount(
507 return this._inputList.size();
514 * @throws java.lang.IndexOutOfBoundsException if the index
515 * given is outside the bounds of the collection
516 * @return the value of the uk.ac.vamsas.objects.core.Param at
519 public uk.ac.vamsas.objects.core.Param getParam(
521 throws java.lang.IndexOutOfBoundsException {
522 // check bounds for index
523 if (index < 0 || index >= this._paramList.size()) {
524 throw new IndexOutOfBoundsException("getParam: Index value '" + index + "' not in range [0.." + (this._paramList.size() - 1) + "]");
527 return (uk.ac.vamsas.objects.core.Param) _paramList.get(index);
531 * Method getParam.Returns the contents of the collection in an
532 * Array. <p>Note: Just in case the collection contents are
533 * changing in another thread, we pass a 0-length Array of the
534 * correct type into the API call. This way we <i>know</i>
535 * that the Array returned is of exactly the correct length.
537 * @return this collection as an Array
539 public uk.ac.vamsas.objects.core.Param[] getParam(
541 uk.ac.vamsas.objects.core.Param[] array = new uk.ac.vamsas.objects.core.Param[0];
542 return (uk.ac.vamsas.objects.core.Param[]) this._paramList.toArray(array);
546 * Method getParamAsReference.Returns a reference to
547 * '_paramList'. No type checking is performed on any
548 * modifications to the Vector.
550 * @return a reference to the Vector backing this class
552 public java.util.Vector getParamAsReference(
554 return this._paramList;
558 * Method getParamCount.
560 * @return the size of this collection
562 public int getParamCount(
564 return this._paramList.size();
568 * Method getProperty.
571 * @throws java.lang.IndexOutOfBoundsException if the index
572 * given is outside the bounds of the collection
573 * @return the value of the uk.ac.vamsas.objects.core.Property
576 public uk.ac.vamsas.objects.core.Property getProperty(
578 throws java.lang.IndexOutOfBoundsException {
579 // check bounds for index
580 if (index < 0 || index >= this._propertyList.size()) {
581 throw new IndexOutOfBoundsException("getProperty: Index value '" + index + "' not in range [0.." + (this._propertyList.size() - 1) + "]");
584 return (uk.ac.vamsas.objects.core.Property) _propertyList.get(index);
588 * Method getProperty.Returns the contents of the collection in
589 * an Array. <p>Note: Just in case the collection contents
590 * are changing in another thread, we pass a 0-length Array of
591 * the correct type into the API call. This way we <i>know</i>
592 * that the Array returned is of exactly the correct length.
594 * @return this collection as an Array
596 public uk.ac.vamsas.objects.core.Property[] getProperty(
598 uk.ac.vamsas.objects.core.Property[] array = new uk.ac.vamsas.objects.core.Property[0];
599 return (uk.ac.vamsas.objects.core.Property[]) this._propertyList.toArray(array);
603 * Method getPropertyAsReference.Returns a reference to
604 * '_propertyList'. No type checking is performed on any
605 * modifications to the Vector.
607 * @return a reference to the Vector backing this class
609 public java.util.Vector getPropertyAsReference(
611 return this._propertyList;
615 * Method getPropertyCount.
617 * @return the size of this collection
619 public int getPropertyCount(
621 return this._propertyList.size();
625 * Returns the value of field 'user'. The field 'user' has the
626 * following description: Who
628 * @return the value of field 'User'.
630 public java.lang.String getUser(
636 * Overrides the java.lang.Object.hashCode method.
638 * The following steps came from <b>Effective Java Programming
639 * Language Guide</b> by Joshua Bloch, Chapter 3
641 * @return a hash code value for the object.
645 int result = super.hashCode();
649 && !org.castor.util.CycleBreaker.startingToCycle(_id)) {
650 result = 37 * result + _id.hashCode();
651 org.castor.util.CycleBreaker.releaseCycleHandle(_id);
654 && !org.castor.util.CycleBreaker.startingToCycle(_user)) {
655 result = 37 * result + _user.hashCode();
656 org.castor.util.CycleBreaker.releaseCycleHandle(_user);
659 && !org.castor.util.CycleBreaker.startingToCycle(_app)) {
660 result = 37 * result + _app.hashCode();
661 org.castor.util.CycleBreaker.releaseCycleHandle(_app);
664 && !org.castor.util.CycleBreaker.startingToCycle(_action)) {
665 result = 37 * result + _action.hashCode();
666 org.castor.util.CycleBreaker.releaseCycleHandle(_action);
669 && !org.castor.util.CycleBreaker.startingToCycle(_date)) {
670 result = 37 * result + _date.hashCode();
671 org.castor.util.CycleBreaker.releaseCycleHandle(_date);
673 if (_propertyList != null
674 && !org.castor.util.CycleBreaker.startingToCycle(_propertyList)) {
675 result = 37 * result + _propertyList.hashCode();
676 org.castor.util.CycleBreaker.releaseCycleHandle(_propertyList);
678 if (_paramList != null
679 && !org.castor.util.CycleBreaker.startingToCycle(_paramList)) {
680 result = 37 * result + _paramList.hashCode();
681 org.castor.util.CycleBreaker.releaseCycleHandle(_paramList);
683 if (_inputList != null
684 && !org.castor.util.CycleBreaker.startingToCycle(_inputList)) {
685 result = 37 * result + _inputList.hashCode();
686 org.castor.util.CycleBreaker.releaseCycleHandle(_inputList);
695 * @return true if this object is valid according to the schema
697 public boolean isValid(
701 } catch (org.exolab.castor.xml.ValidationException vex) {
711 * @throws org.exolab.castor.xml.MarshalException if object is
712 * null or if any SAXException is thrown during marshaling
713 * @throws org.exolab.castor.xml.ValidationException if this
714 * object is an invalid instance according to the schema
717 final java.io.Writer out)
718 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
719 Marshaller.marshal(this, out);
726 * @throws java.io.IOException if an IOException occurs during
728 * @throws org.exolab.castor.xml.ValidationException if this
729 * object is an invalid instance according to the schema
730 * @throws org.exolab.castor.xml.MarshalException if object is
731 * null or if any SAXException is thrown during marshaling
734 final org.xml.sax.ContentHandler handler)
735 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
736 Marshaller.marshal(this, handler);
741 public void removeAllInput(
743 this._inputList.clear();
748 public void removeAllParam(
750 this._paramList.clear();
755 public void removeAllProperty(
757 this._propertyList.clear();
761 * Method removeInput.
764 * @return true if the object was removed from the collection.
766 public boolean removeInput(
767 final uk.ac.vamsas.objects.core.Input vInput) {
768 boolean removed = _inputList.remove(vInput);
773 * Method removeInputAt.
776 * @return the element removed from the collection
778 public uk.ac.vamsas.objects.core.Input removeInputAt(
780 java.lang.Object obj = this._inputList.remove(index);
781 return (uk.ac.vamsas.objects.core.Input) obj;
785 * Method removeParam.
788 * @return true if the object was removed from the collection.
790 public boolean removeParam(
791 final uk.ac.vamsas.objects.core.Param vParam) {
792 boolean removed = _paramList.remove(vParam);
797 * Method removeParamAt.
800 * @return the element removed from the collection
802 public uk.ac.vamsas.objects.core.Param removeParamAt(
804 java.lang.Object obj = this._paramList.remove(index);
805 return (uk.ac.vamsas.objects.core.Param) obj;
809 * Method removeProperty.
812 * @return true if the object was removed from the collection.
814 public boolean removeProperty(
815 final uk.ac.vamsas.objects.core.Property vProperty) {
816 boolean removed = _propertyList.remove(vProperty);
821 * Method removePropertyAt.
824 * @return the element removed from the collection
826 public uk.ac.vamsas.objects.core.Property removePropertyAt(
828 java.lang.Object obj = this._propertyList.remove(index);
829 return (uk.ac.vamsas.objects.core.Property) obj;
833 * Sets the value of field 'action'. The field 'action' has the
834 * following description: Did what
836 * @param action the value of field 'action'.
838 public void setAction(
839 final java.lang.String action) {
840 this._action = action;
844 * Sets the value of field 'app'. The field 'app' has the
845 * following description: With which application
847 * @param app the value of field 'app'.
850 final java.lang.String app) {
855 * Sets the value of field 'date'. The field 'date' has the
856 * following description: When
858 * @param date the value of field 'date'.
861 final java.util.Date date) {
866 * Sets the value of field 'id'. The field 'id' has the
867 * following description: Primary Key for vamsas object
871 * @param id the value of field 'id'.
874 final java.lang.String id) {
883 * @throws java.lang.IndexOutOfBoundsException if the index
884 * given is outside the bounds of the collection
886 public void setInput(
888 final uk.ac.vamsas.objects.core.Input vInput)
889 throws java.lang.IndexOutOfBoundsException {
890 // check bounds for index
891 if (index < 0 || index >= this._inputList.size()) {
892 throw new IndexOutOfBoundsException("setInput: Index value '" + index + "' not in range [0.." + (this._inputList.size() - 1) + "]");
895 this._inputList.set(index, vInput);
903 public void setInput(
904 final uk.ac.vamsas.objects.core.Input[] vInputArray) {
908 for (int i = 0; i < vInputArray.length; i++) {
909 this._inputList.add(vInputArray[i]);
914 * Sets the value of '_inputList' by copying the given Vector.
915 * All elements will be checked for type safety.
917 * @param vInputList the Vector to copy.
919 public void setInput(
920 final java.util.Vector vInputList) {
922 this._inputList.clear();
924 this._inputList.addAll(vInputList);
928 * Sets the value of '_inputList' by setting it to the given
929 * Vector. No type checking is performed.
932 * @param inputVector the Vector to set.
934 public void setInputAsReference(
935 final java.util.Vector inputVector) {
936 this._inputList = inputVector;
944 * @throws java.lang.IndexOutOfBoundsException if the index
945 * given is outside the bounds of the collection
947 public void setParam(
949 final uk.ac.vamsas.objects.core.Param vParam)
950 throws java.lang.IndexOutOfBoundsException {
951 // check bounds for index
952 if (index < 0 || index >= this._paramList.size()) {
953 throw new IndexOutOfBoundsException("setParam: Index value '" + index + "' not in range [0.." + (this._paramList.size() - 1) + "]");
956 this._paramList.set(index, vParam);
964 public void setParam(
965 final uk.ac.vamsas.objects.core.Param[] vParamArray) {
969 for (int i = 0; i < vParamArray.length; i++) {
970 this._paramList.add(vParamArray[i]);
975 * Sets the value of '_paramList' by copying the given Vector.
976 * All elements will be checked for type safety.
978 * @param vParamList the Vector to copy.
980 public void setParam(
981 final java.util.Vector vParamList) {
983 this._paramList.clear();
985 this._paramList.addAll(vParamList);
989 * Sets the value of '_paramList' by setting it to the given
990 * Vector. No type checking is performed.
993 * @param paramVector the Vector to set.
995 public void setParamAsReference(
996 final java.util.Vector paramVector) {
997 this._paramList = paramVector;
1005 * @throws java.lang.IndexOutOfBoundsException if the index
1006 * given is outside the bounds of the collection
1008 public void setProperty(
1010 final uk.ac.vamsas.objects.core.Property vProperty)
1011 throws java.lang.IndexOutOfBoundsException {
1012 // check bounds for index
1013 if (index < 0 || index >= this._propertyList.size()) {
1014 throw new IndexOutOfBoundsException("setProperty: Index value '" + index + "' not in range [0.." + (this._propertyList.size() - 1) + "]");
1017 this._propertyList.set(index, vProperty);
1023 * @param vPropertyArray
1025 public void setProperty(
1026 final uk.ac.vamsas.objects.core.Property[] vPropertyArray) {
1028 _propertyList.clear();
1030 for (int i = 0; i < vPropertyArray.length; i++) {
1031 this._propertyList.add(vPropertyArray[i]);
1036 * Sets the value of '_propertyList' by copying the given
1037 * Vector. All elements will be checked for type safety.
1039 * @param vPropertyList the Vector to copy.
1041 public void setProperty(
1042 final java.util.Vector vPropertyList) {
1044 this._propertyList.clear();
1046 this._propertyList.addAll(vPropertyList);
1050 * Sets the value of '_propertyList' by setting it to the given
1051 * Vector. No type checking is performed.
1054 * @param propertyVector the Vector to set.
1056 public void setPropertyAsReference(
1057 final java.util.Vector propertyVector) {
1058 this._propertyList = propertyVector;
1062 * Sets the value of field 'user'. The field 'user' has the
1063 * following description: Who
1065 * @param user the value of field 'user'.
1067 public void setUser(
1068 final java.lang.String user) {
1076 * @throws org.exolab.castor.xml.MarshalException if object is
1077 * null or if any SAXException is thrown during marshaling
1078 * @throws org.exolab.castor.xml.ValidationException if this
1079 * object is an invalid instance according to the schema
1080 * @return the unmarshaled uk.ac.vamsas.objects.core.Entry
1082 public static uk.ac.vamsas.objects.core.Entry unmarshal(
1083 final java.io.Reader reader)
1084 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1085 return (uk.ac.vamsas.objects.core.Entry) Unmarshaller.unmarshal(uk.ac.vamsas.objects.core.Entry.class, reader);
1091 * @throws org.exolab.castor.xml.ValidationException if this
1092 * object is an invalid instance according to the schema
1094 public void validate(
1096 throws org.exolab.castor.xml.ValidationException {
1097 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
1098 validator.validate(this);