245bd3d3921c1fc27d7d5db77960ba30c36da055
[jalview.git] / src / jalview / schemabinding / version2 / VamsasModel.java
1 /*
2  * This class was automatically generated with 
3  * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
4  * Schema.
5  * $Id$
6  */
7
8 package jalview.schemabinding.version2;
9
10   //---------------------------------/
11  //- Imported classes and packages -/
12 //---------------------------------/
13
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
16
17 /**
18  * Class VamsasModel.
19  * 
20  * @version $Revision$ $Date$
21  */
22 public class VamsasModel extends VAMSAS 
23 implements java.io.Serializable
24 {
25
26
27       //----------------/
28      //- Constructors -/
29     //----------------/
30
31     public VamsasModel() {
32         super();
33     }
34
35
36       //-----------/
37      //- Methods -/
38     //-----------/
39
40     /**
41      * Method isValid.
42      * 
43      * @return true if this object is valid according to the schema
44      */
45     public boolean isValid(
46     ) {
47         try {
48             validate();
49         } catch (org.exolab.castor.xml.ValidationException vex) {
50             return false;
51         }
52         return true;
53     }
54
55     /**
56      * 
57      * 
58      * @param out
59      * @throws org.exolab.castor.xml.MarshalException if object is
60      * null or if any SAXException is thrown during marshaling
61      * @throws org.exolab.castor.xml.ValidationException if this
62      * object is an invalid instance according to the schema
63      */
64     public void marshal(
65             final java.io.Writer out)
66     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
67         Marshaller.marshal(this, out);
68     }
69
70     /**
71      * 
72      * 
73      * @param handler
74      * @throws java.io.IOException if an IOException occurs during
75      * marshaling
76      * @throws org.exolab.castor.xml.ValidationException if this
77      * object is an invalid instance according to the schema
78      * @throws org.exolab.castor.xml.MarshalException if object is
79      * null or if any SAXException is thrown during marshaling
80      */
81     public void marshal(
82             final org.xml.sax.ContentHandler handler)
83     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
84         Marshaller.marshal(this, handler);
85     }
86
87     /**
88      * Method unmarshal.
89      * 
90      * @param reader
91      * @throws org.exolab.castor.xml.MarshalException if object is
92      * null or if any SAXException is thrown during marshaling
93      * @throws org.exolab.castor.xml.ValidationException if this
94      * object is an invalid instance according to the schema
95      * @return the unmarshaled jalview.schemabinding.version2.VAMSAS
96      */
97     public static jalview.schemabinding.version2.VAMSAS unmarshal(
98             final java.io.Reader reader)
99     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
100         return (jalview.schemabinding.version2.VAMSAS) Unmarshaller.unmarshal(jalview.schemabinding.version2.VamsasModel.class, reader);
101     }
102
103     /**
104      * 
105      * 
106      * @throws org.exolab.castor.xml.ValidationException if this
107      * object is an invalid instance according to the schema
108      */
109     public void validate(
110     )
111     throws org.exolab.castor.xml.ValidationException {
112         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
113         validator.validate(this);
114     }
115
116 }