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;
18 * Class JalviewModelSequence.
20 * @version $Revision$ $Date$
22 public class JalviewModelSequence implements java.io.Serializable
25 // --------------------------/
26 // - Class/Member Variables -/
27 // --------------------------/
32 private java.util.Vector _JSeqList;
37 private java.util.Vector _JGroupList;
40 * Field _viewportList.
42 private java.util.Vector _viewportList;
45 * Field _userColoursList.
47 private java.util.Vector _userColoursList;
52 private java.util.Vector _treeList;
55 * Field _pcaViewerList.
57 private java.util.Vector _pcaViewerList;
60 * Field _featureSettings.
62 private jalview.schemabinding.version2.FeatureSettings _featureSettings;
68 public JalviewModelSequence()
71 this._JSeqList = new java.util.Vector();
72 this._JGroupList = new java.util.Vector();
73 this._viewportList = new java.util.Vector();
74 this._userColoursList = new java.util.Vector();
75 this._treeList = new java.util.Vector();
76 this._pcaViewerList = new java.util.Vector();
87 * @throws java.lang.IndexOutOfBoundsException
88 * if the index given is outside the bounds of the collection
90 public void addJGroup(final jalview.schemabinding.version2.JGroup vJGroup)
91 throws java.lang.IndexOutOfBoundsException
93 this._JGroupList.addElement(vJGroup);
101 * @throws java.lang.IndexOutOfBoundsException
102 * if the index given is outside the bounds of the collection
104 public void addJGroup(final int index,
105 final jalview.schemabinding.version2.JGroup vJGroup)
106 throws java.lang.IndexOutOfBoundsException
108 this._JGroupList.add(index, vJGroup);
115 * @throws java.lang.IndexOutOfBoundsException
116 * if the index given is outside the bounds of the collection
118 public void addJSeq(final jalview.schemabinding.version2.JSeq vJSeq)
119 throws java.lang.IndexOutOfBoundsException
121 this._JSeqList.addElement(vJSeq);
129 * @throws java.lang.IndexOutOfBoundsException
130 * if the index given is outside the bounds of the collection
132 public void addJSeq(final int index,
133 final jalview.schemabinding.version2.JSeq vJSeq)
134 throws java.lang.IndexOutOfBoundsException
136 this._JSeqList.add(index, vJSeq);
143 * @throws java.lang.IndexOutOfBoundsException
144 * if the index given is outside the bounds of the collection
146 public void addPcaViewer(
147 final jalview.schemabinding.version2.PcaViewer vPcaViewer)
148 throws java.lang.IndexOutOfBoundsException
150 this._pcaViewerList.addElement(vPcaViewer);
158 * @throws java.lang.IndexOutOfBoundsException
159 * if the index given is outside the bounds of the collection
161 public void addPcaViewer(final int index,
162 final jalview.schemabinding.version2.PcaViewer vPcaViewer)
163 throws java.lang.IndexOutOfBoundsException
165 this._pcaViewerList.add(index, vPcaViewer);
172 * @throws java.lang.IndexOutOfBoundsException
173 * if the index given is outside the bounds of the collection
175 public void addTree(final jalview.schemabinding.version2.Tree vTree)
176 throws java.lang.IndexOutOfBoundsException
178 this._treeList.addElement(vTree);
186 * @throws java.lang.IndexOutOfBoundsException
187 * if the index given is outside the bounds of the collection
189 public void addTree(final int index,
190 final jalview.schemabinding.version2.Tree vTree)
191 throws java.lang.IndexOutOfBoundsException
193 this._treeList.add(index, vTree);
199 * @param vUserColours
200 * @throws java.lang.IndexOutOfBoundsException
201 * if the index given is outside the bounds of the collection
203 public void addUserColours(
204 final jalview.schemabinding.version2.UserColours vUserColours)
205 throws java.lang.IndexOutOfBoundsException
207 this._userColoursList.addElement(vUserColours);
214 * @param vUserColours
215 * @throws java.lang.IndexOutOfBoundsException
216 * if the index given is outside the bounds of the collection
218 public void addUserColours(final int index,
219 final jalview.schemabinding.version2.UserColours vUserColours)
220 throws java.lang.IndexOutOfBoundsException
222 this._userColoursList.add(index, vUserColours);
229 * @throws java.lang.IndexOutOfBoundsException
230 * if the index given is outside the bounds of the collection
232 public void addViewport(
233 final jalview.schemabinding.version2.Viewport vViewport)
234 throws java.lang.IndexOutOfBoundsException
236 this._viewportList.addElement(vViewport);
244 * @throws java.lang.IndexOutOfBoundsException
245 * if the index given is outside the bounds of the collection
247 public void addViewport(final int index,
248 final jalview.schemabinding.version2.Viewport vViewport)
249 throws java.lang.IndexOutOfBoundsException
251 this._viewportList.add(index, vViewport);
255 * Method enumerateJGroup.
257 * @return an Enumeration over all jalview.schemabinding.version2.JGroup
260 public java.util.Enumeration enumerateJGroup()
262 return this._JGroupList.elements();
266 * Method enumerateJSeq.
268 * @return an Enumeration over all jalview.schemabinding.version2.JSeq
271 public java.util.Enumeration enumerateJSeq()
273 return this._JSeqList.elements();
277 * Method enumeratePcaViewer.
279 * @return an Enumeration over all jalview.schemabinding.version2.PcaViewer
282 public java.util.Enumeration enumeratePcaViewer()
284 return this._pcaViewerList.elements();
288 * Method enumerateTree.
290 * @return an Enumeration over all jalview.schemabinding.version2.Tree
293 public java.util.Enumeration enumerateTree()
295 return this._treeList.elements();
299 * Method enumerateUserColours.
301 * @return an Enumeration over all jalview.schemabinding.version2.UserColours
304 public java.util.Enumeration enumerateUserColours()
306 return this._userColoursList.elements();
310 * Method enumerateViewport.
312 * @return an Enumeration over all jalview.schemabinding.version2.Viewport
315 public java.util.Enumeration enumerateViewport()
317 return this._viewportList.elements();
321 * Returns the value of field 'featureSettings'.
323 * @return the value of field 'FeatureSettings'.
325 public jalview.schemabinding.version2.FeatureSettings getFeatureSettings()
327 return this._featureSettings;
334 * @throws java.lang.IndexOutOfBoundsException
335 * if the index given is outside the bounds of the collection
336 * @return the value of the jalview.schemabinding.version2.JGroup at the given
339 public jalview.schemabinding.version2.JGroup getJGroup(final int index)
340 throws java.lang.IndexOutOfBoundsException
342 // check bounds for index
343 if (index < 0 || index >= this._JGroupList.size())
345 throw new IndexOutOfBoundsException(
346 "getJGroup: Index value '" + index + "' not in range [0.."
347 + (this._JGroupList.size() - 1) + "]");
350 return (jalview.schemabinding.version2.JGroup) _JGroupList.get(index);
354 * Method getJGroup.Returns the contents of the collection in an Array.
356 * Note: Just in case the collection contents are changing in another thread,
357 * we pass a 0-length Array of the correct type into the API call. This way we
358 * <i>know</i> that the Array returned is of exactly the correct length.
360 * @return this collection as an Array
362 public jalview.schemabinding.version2.JGroup[] getJGroup()
364 jalview.schemabinding.version2.JGroup[] array = new jalview.schemabinding.version2.JGroup[0];
365 return (jalview.schemabinding.version2.JGroup[]) this._JGroupList
370 * Method getJGroupCount.
372 * @return the size of this collection
374 public int getJGroupCount()
376 return this._JGroupList.size();
383 * @throws java.lang.IndexOutOfBoundsException
384 * if the index given is outside the bounds of the collection
385 * @return the value of the jalview.schemabinding.version2.JSeq at the given
388 public jalview.schemabinding.version2.JSeq getJSeq(final int index)
389 throws java.lang.IndexOutOfBoundsException
391 // check bounds for index
392 if (index < 0 || index >= this._JSeqList.size())
394 throw new IndexOutOfBoundsException("getJSeq: Index value '" + index
395 + "' not in range [0.." + (this._JSeqList.size() - 1) + "]");
398 return (jalview.schemabinding.version2.JSeq) _JSeqList.get(index);
402 * Method getJSeq.Returns the contents of the collection in an Array.
404 * Note: Just in case the collection contents are changing in another thread,
405 * we pass a 0-length Array of the correct type into the API call. This way we
406 * <i>know</i> that the Array returned is of exactly the correct length.
408 * @return this collection as an Array
410 public jalview.schemabinding.version2.JSeq[] getJSeq()
412 jalview.schemabinding.version2.JSeq[] array = new jalview.schemabinding.version2.JSeq[0];
413 return (jalview.schemabinding.version2.JSeq[]) this._JSeqList
418 * Method getJSeqCount.
420 * @return the size of this collection
422 public int getJSeqCount()
424 return this._JSeqList.size();
428 * Method getPcaViewer.
431 * @throws java.lang.IndexOutOfBoundsException
432 * if the index given is outside the bounds of the collection
433 * @return the value of the jalview.schemabinding.version2.PcaViewer at the
436 public jalview.schemabinding.version2.PcaViewer getPcaViewer(
437 final int index) throws java.lang.IndexOutOfBoundsException
439 // check bounds for index
440 if (index < 0 || index >= this._pcaViewerList.size())
442 throw new IndexOutOfBoundsException(
443 "getPcaViewer: Index value '" + index + "' not in range [0.."
444 + (this._pcaViewerList.size() - 1) + "]");
447 return (jalview.schemabinding.version2.PcaViewer) _pcaViewerList
452 * Method getPcaViewer.Returns the contents of the collection in an Array.
454 * Note: Just in case the collection contents are changing in another thread,
455 * we pass a 0-length Array of the correct type into the API call. This way we
456 * <i>know</i> that the Array returned is of exactly the correct length.
458 * @return this collection as an Array
460 public jalview.schemabinding.version2.PcaViewer[] getPcaViewer()
462 jalview.schemabinding.version2.PcaViewer[] array = new jalview.schemabinding.version2.PcaViewer[0];
463 return (jalview.schemabinding.version2.PcaViewer[]) this._pcaViewerList
468 * Method getPcaViewerCount.
470 * @return the size of this collection
472 public int getPcaViewerCount()
474 return this._pcaViewerList.size();
481 * @throws java.lang.IndexOutOfBoundsException
482 * if the index given is outside the bounds of the collection
483 * @return the value of the jalview.schemabinding.version2.Tree at the given
486 public jalview.schemabinding.version2.Tree getTree(final int index)
487 throws java.lang.IndexOutOfBoundsException
489 // check bounds for index
490 if (index < 0 || index >= this._treeList.size())
492 throw new IndexOutOfBoundsException("getTree: Index value '" + index
493 + "' not in range [0.." + (this._treeList.size() - 1) + "]");
496 return (jalview.schemabinding.version2.Tree) _treeList.get(index);
500 * Method getTree.Returns the contents of the collection in an Array.
502 * Note: Just in case the collection contents are changing in another thread,
503 * we pass a 0-length Array of the correct type into the API call. This way we
504 * <i>know</i> that the Array returned is of exactly the correct length.
506 * @return this collection as an Array
508 public jalview.schemabinding.version2.Tree[] getTree()
510 jalview.schemabinding.version2.Tree[] array = new jalview.schemabinding.version2.Tree[0];
511 return (jalview.schemabinding.version2.Tree[]) this._treeList
516 * Method getTreeCount.
518 * @return the size of this collection
520 public int getTreeCount()
522 return this._treeList.size();
526 * Method getUserColours.
529 * @throws java.lang.IndexOutOfBoundsException
530 * if the index given is outside the bounds of the collection
531 * @return the value of the jalview.schemabinding.version2.UserColours at the
534 public jalview.schemabinding.version2.UserColours getUserColours(
535 final int index) throws java.lang.IndexOutOfBoundsException
537 // check bounds for index
538 if (index < 0 || index >= this._userColoursList.size())
540 throw new IndexOutOfBoundsException("getUserColours: Index value '"
541 + index + "' not in range [0.."
542 + (this._userColoursList.size() - 1) + "]");
545 return (jalview.schemabinding.version2.UserColours) _userColoursList
550 * Method getUserColours.Returns the contents of the collection in an Array.
552 * Note: Just in case the collection contents are changing in another thread,
553 * we pass a 0-length Array of the correct type into the API call. This way we
554 * <i>know</i> that the Array returned is of exactly the correct length.
556 * @return this collection as an Array
558 public jalview.schemabinding.version2.UserColours[] getUserColours()
560 jalview.schemabinding.version2.UserColours[] array = new jalview.schemabinding.version2.UserColours[0];
561 return (jalview.schemabinding.version2.UserColours[]) this._userColoursList
566 * Method getUserColoursCount.
568 * @return the size of this collection
570 public int getUserColoursCount()
572 return this._userColoursList.size();
576 * Method getViewport.
579 * @throws java.lang.IndexOutOfBoundsException
580 * if the index given is outside the bounds of the collection
581 * @return the value of the jalview.schemabinding.version2.Viewport at the
584 public jalview.schemabinding.version2.Viewport getViewport(
585 final int index) throws java.lang.IndexOutOfBoundsException
587 // check bounds for index
588 if (index < 0 || index >= this._viewportList.size())
590 throw new IndexOutOfBoundsException(
591 "getViewport: Index value '" + index + "' not in range [0.."
592 + (this._viewportList.size() - 1) + "]");
595 return (jalview.schemabinding.version2.Viewport) _viewportList
600 * Method getViewport.Returns the contents of the collection in an Array.
602 * Note: Just in case the collection contents are changing in another thread,
603 * we pass a 0-length Array of the correct type into the API call. This way we
604 * <i>know</i> that the Array returned is of exactly the correct length.
606 * @return this collection as an Array
608 public jalview.schemabinding.version2.Viewport[] getViewport()
610 jalview.schemabinding.version2.Viewport[] array = new jalview.schemabinding.version2.Viewport[0];
611 return (jalview.schemabinding.version2.Viewport[]) this._viewportList
616 * Method getViewportCount.
618 * @return the size of this collection
620 public int getViewportCount()
622 return this._viewportList.size();
628 * @return true if this object is valid according to the schema
630 public boolean isValid()
635 } catch (org.exolab.castor.xml.ValidationException vex)
646 * @throws org.exolab.castor.xml.MarshalException
647 * if object is null or if any SAXException is thrown during
649 * @throws org.exolab.castor.xml.ValidationException
650 * if this object is an invalid instance according to the schema
652 public void marshal(final java.io.Writer out)
653 throws org.exolab.castor.xml.MarshalException,
654 org.exolab.castor.xml.ValidationException
656 Marshaller.marshal(this, out);
663 * @throws java.io.IOException
664 * if an IOException occurs during marshaling
665 * @throws org.exolab.castor.xml.ValidationException
666 * if this object is an invalid instance according to the schema
667 * @throws org.exolab.castor.xml.MarshalException
668 * if object is null or if any SAXException is thrown during
671 public void marshal(final org.xml.sax.ContentHandler handler)
672 throws java.io.IOException,
673 org.exolab.castor.xml.MarshalException,
674 org.exolab.castor.xml.ValidationException
676 Marshaller.marshal(this, handler);
681 public void removeAllJGroup()
683 this._JGroupList.clear();
688 public void removeAllJSeq()
690 this._JSeqList.clear();
695 public void removeAllPcaViewer()
697 this._pcaViewerList.clear();
702 public void removeAllTree()
704 this._treeList.clear();
709 public void removeAllUserColours()
711 this._userColoursList.clear();
716 public void removeAllViewport()
718 this._viewportList.clear();
722 * Method removeJGroup.
725 * @return true if the object was removed from the collection.
727 public boolean removeJGroup(
728 final jalview.schemabinding.version2.JGroup vJGroup)
730 boolean removed = _JGroupList.remove(vJGroup);
735 * Method removeJGroupAt.
738 * @return the element removed from the collection
740 public jalview.schemabinding.version2.JGroup removeJGroupAt(
743 java.lang.Object obj = this._JGroupList.remove(index);
744 return (jalview.schemabinding.version2.JGroup) obj;
751 * @return true if the object was removed from the collection.
753 public boolean removeJSeq(final jalview.schemabinding.version2.JSeq vJSeq)
755 boolean removed = _JSeqList.remove(vJSeq);
760 * Method removeJSeqAt.
763 * @return the element removed from the collection
765 public jalview.schemabinding.version2.JSeq removeJSeqAt(final int index)
767 java.lang.Object obj = this._JSeqList.remove(index);
768 return (jalview.schemabinding.version2.JSeq) obj;
772 * Method removePcaViewer.
775 * @return true if the object was removed from the collection.
777 public boolean removePcaViewer(
778 final jalview.schemabinding.version2.PcaViewer vPcaViewer)
780 boolean removed = _pcaViewerList.remove(vPcaViewer);
785 * Method removePcaViewerAt.
788 * @return the element removed from the collection
790 public jalview.schemabinding.version2.PcaViewer removePcaViewerAt(
793 java.lang.Object obj = this._pcaViewerList.remove(index);
794 return (jalview.schemabinding.version2.PcaViewer) obj;
801 * @return true if the object was removed from the collection.
803 public boolean removeTree(final jalview.schemabinding.version2.Tree vTree)
805 boolean removed = _treeList.remove(vTree);
810 * Method removeTreeAt.
813 * @return the element removed from the collection
815 public jalview.schemabinding.version2.Tree removeTreeAt(final int index)
817 java.lang.Object obj = this._treeList.remove(index);
818 return (jalview.schemabinding.version2.Tree) obj;
822 * Method removeUserColours.
824 * @param vUserColours
825 * @return true if the object was removed from the collection.
827 public boolean removeUserColours(
828 final jalview.schemabinding.version2.UserColours vUserColours)
830 boolean removed = _userColoursList.remove(vUserColours);
835 * Method removeUserColoursAt.
838 * @return the element removed from the collection
840 public jalview.schemabinding.version2.UserColours removeUserColoursAt(
843 java.lang.Object obj = this._userColoursList.remove(index);
844 return (jalview.schemabinding.version2.UserColours) obj;
848 * Method removeViewport.
851 * @return true if the object was removed from the collection.
853 public boolean removeViewport(
854 final jalview.schemabinding.version2.Viewport vViewport)
856 boolean removed = _viewportList.remove(vViewport);
861 * Method removeViewportAt.
864 * @return the element removed from the collection
866 public jalview.schemabinding.version2.Viewport removeViewportAt(
869 java.lang.Object obj = this._viewportList.remove(index);
870 return (jalview.schemabinding.version2.Viewport) obj;
874 * Sets the value of field 'featureSettings'.
876 * @param featureSettings
877 * the value of field 'featureSettings'.
879 public void setFeatureSettings(
880 final jalview.schemabinding.version2.FeatureSettings featureSettings)
882 this._featureSettings = featureSettings;
890 * @throws java.lang.IndexOutOfBoundsException
891 * if the index given is outside the bounds of the collection
893 public void setJGroup(final int index,
894 final jalview.schemabinding.version2.JGroup vJGroup)
895 throws java.lang.IndexOutOfBoundsException
897 // check bounds for index
898 if (index < 0 || index >= this._JGroupList.size())
900 throw new IndexOutOfBoundsException(
901 "setJGroup: Index value '" + index + "' not in range [0.."
902 + (this._JGroupList.size() - 1) + "]");
905 this._JGroupList.set(index, vJGroup);
911 * @param vJGroupArray
913 public void setJGroup(
914 final jalview.schemabinding.version2.JGroup[] vJGroupArray)
919 for (int i = 0; i < vJGroupArray.length; i++)
921 this._JGroupList.add(vJGroupArray[i]);
930 * @throws java.lang.IndexOutOfBoundsException
931 * if the index given is outside the bounds of the collection
933 public void setJSeq(final int index,
934 final jalview.schemabinding.version2.JSeq vJSeq)
935 throws java.lang.IndexOutOfBoundsException
937 // check bounds for index
938 if (index < 0 || index >= this._JSeqList.size())
940 throw new IndexOutOfBoundsException("setJSeq: Index value '" + index
941 + "' not in range [0.." + (this._JSeqList.size() - 1) + "]");
944 this._JSeqList.set(index, vJSeq);
953 final jalview.schemabinding.version2.JSeq[] vJSeqArray)
958 for (int i = 0; i < vJSeqArray.length; i++)
960 this._JSeqList.add(vJSeqArray[i]);
969 * @throws java.lang.IndexOutOfBoundsException
970 * if the index given is outside the bounds of the collection
972 public void setPcaViewer(final int index,
973 final jalview.schemabinding.version2.PcaViewer vPcaViewer)
974 throws java.lang.IndexOutOfBoundsException
976 // check bounds for index
977 if (index < 0 || index >= this._pcaViewerList.size())
979 throw new IndexOutOfBoundsException(
980 "setPcaViewer: Index value '" + index + "' not in range [0.."
981 + (this._pcaViewerList.size() - 1) + "]");
984 this._pcaViewerList.set(index, vPcaViewer);
990 * @param vPcaViewerArray
992 public void setPcaViewer(
993 final jalview.schemabinding.version2.PcaViewer[] vPcaViewerArray)
996 _pcaViewerList.clear();
998 for (int i = 0; i < vPcaViewerArray.length; i++)
1000 this._pcaViewerList.add(vPcaViewerArray[i]);
1009 * @throws java.lang.IndexOutOfBoundsException
1010 * if the index given is outside the bounds of the collection
1012 public void setTree(final int index,
1013 final jalview.schemabinding.version2.Tree vTree)
1014 throws java.lang.IndexOutOfBoundsException
1016 // check bounds for index
1017 if (index < 0 || index >= this._treeList.size())
1019 throw new IndexOutOfBoundsException("setTree: Index value '" + index
1020 + "' not in range [0.." + (this._treeList.size() - 1) + "]");
1023 this._treeList.set(index, vTree);
1031 public void setTree(
1032 final jalview.schemabinding.version2.Tree[] vTreeArray)
1037 for (int i = 0; i < vTreeArray.length; i++)
1039 this._treeList.add(vTreeArray[i]);
1047 * @param vUserColours
1048 * @throws java.lang.IndexOutOfBoundsException
1049 * if the index given is outside the bounds of the collection
1051 public void setUserColours(final int index,
1052 final jalview.schemabinding.version2.UserColours vUserColours)
1053 throws java.lang.IndexOutOfBoundsException
1055 // check bounds for index
1056 if (index < 0 || index >= this._userColoursList.size())
1058 throw new IndexOutOfBoundsException("setUserColours: Index value '"
1059 + index + "' not in range [0.."
1060 + (this._userColoursList.size() - 1) + "]");
1063 this._userColoursList.set(index, vUserColours);
1069 * @param vUserColoursArray
1071 public void setUserColours(
1072 final jalview.schemabinding.version2.UserColours[] vUserColoursArray)
1075 _userColoursList.clear();
1077 for (int i = 0; i < vUserColoursArray.length; i++)
1079 this._userColoursList.add(vUserColoursArray[i]);
1088 * @throws java.lang.IndexOutOfBoundsException
1089 * if the index given is outside the bounds of the collection
1091 public void setViewport(final int index,
1092 final jalview.schemabinding.version2.Viewport vViewport)
1093 throws java.lang.IndexOutOfBoundsException
1095 // check bounds for index
1096 if (index < 0 || index >= this._viewportList.size())
1098 throw new IndexOutOfBoundsException(
1099 "setViewport: Index value '" + index + "' not in range [0.."
1100 + (this._viewportList.size() - 1) + "]");
1103 this._viewportList.set(index, vViewport);
1109 * @param vViewportArray
1111 public void setViewport(
1112 final jalview.schemabinding.version2.Viewport[] vViewportArray)
1115 _viewportList.clear();
1117 for (int i = 0; i < vViewportArray.length; i++)
1119 this._viewportList.add(vViewportArray[i]);
1127 * @throws org.exolab.castor.xml.MarshalException
1128 * if object is null or if any SAXException is thrown during
1130 * @throws org.exolab.castor.xml.ValidationException
1131 * if this object is an invalid instance according to the schema
1132 * @return the unmarshaled jalview.schemabinding.version2.JalviewModelSequence
1134 public static jalview.schemabinding.version2.JalviewModelSequence unmarshal(
1135 final java.io.Reader reader)
1136 throws org.exolab.castor.xml.MarshalException,
1137 org.exolab.castor.xml.ValidationException
1139 return (jalview.schemabinding.version2.JalviewModelSequence) Unmarshaller
1141 jalview.schemabinding.version2.JalviewModelSequence.class,
1148 * @throws org.exolab.castor.xml.ValidationException
1149 * if this object is an invalid instance according to the schema
1151 public void validate() throws org.exolab.castor.xml.ValidationException
1153 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
1154 validator.validate(this);