eec356cd03a811312b834f29c7b59513286e4b91
[jalview.git] / src / jalview / schemabinding / version2 / JalviewModel.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 JalviewModel.
19  * 
20  * @version $Revision$ $Date$
21  */
22 public class JalviewModel implements java.io.Serializable {
23
24
25       //--------------------------/
26      //- Class/Member Variables -/
27     //--------------------------/
28
29     /**
30      * Field _creationDate.
31      */
32     private java.util.Date _creationDate;
33
34     /**
35      * Field _version.
36      */
37     private java.lang.String _version;
38
39     /**
40      * Field _vamsasModel.
41      */
42     private jalview.schemabinding.version2.VamsasModel _vamsasModel;
43
44     /**
45      * Field _jalviewModelSequence.
46      */
47     private jalview.schemabinding.version2.JalviewModelSequence _jalviewModelSequence;
48
49
50       //----------------/
51      //- Constructors -/
52     //----------------/
53
54     public JalviewModel() {
55         super();
56     }
57
58
59       //-----------/
60      //- Methods -/
61     //-----------/
62
63     /**
64      * Returns the value of field 'creationDate'.
65      * 
66      * @return the value of field 'CreationDate'.
67      */
68     public java.util.Date getCreationDate(
69     ) {
70         return this._creationDate;
71     }
72
73     /**
74      * Returns the value of field 'jalviewModelSequence'.
75      * 
76      * @return the value of field 'JalviewModelSequence'.
77      */
78     public jalview.schemabinding.version2.JalviewModelSequence getJalviewModelSequence(
79     ) {
80         return this._jalviewModelSequence;
81     }
82
83     /**
84      * Returns the value of field 'vamsasModel'.
85      * 
86      * @return the value of field 'VamsasModel'.
87      */
88     public jalview.schemabinding.version2.VamsasModel getVamsasModel(
89     ) {
90         return this._vamsasModel;
91     }
92
93     /**
94      * Returns the value of field 'version'.
95      * 
96      * @return the value of field 'Version'.
97      */
98     public java.lang.String getVersion(
99     ) {
100         return this._version;
101     }
102
103     /**
104      * Method isValid.
105      * 
106      * @return true if this object is valid according to the schema
107      */
108     public boolean isValid(
109     ) {
110         try {
111             validate();
112         } catch (org.exolab.castor.xml.ValidationException vex) {
113             return false;
114         }
115         return true;
116     }
117
118     /**
119      * 
120      * 
121      * @param out
122      * @throws org.exolab.castor.xml.MarshalException if object is
123      * null or if any SAXException is thrown during marshaling
124      * @throws org.exolab.castor.xml.ValidationException if this
125      * object is an invalid instance according to the schema
126      */
127     public void marshal(
128             final java.io.Writer out)
129     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
130         Marshaller.marshal(this, out);
131     }
132
133     /**
134      * 
135      * 
136      * @param handler
137      * @throws java.io.IOException if an IOException occurs during
138      * marshaling
139      * @throws org.exolab.castor.xml.ValidationException if this
140      * object is an invalid instance according to the schema
141      * @throws org.exolab.castor.xml.MarshalException if object is
142      * null or if any SAXException is thrown during marshaling
143      */
144     public void marshal(
145             final org.xml.sax.ContentHandler handler)
146     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
147         Marshaller.marshal(this, handler);
148     }
149
150     /**
151      * Sets the value of field 'creationDate'.
152      * 
153      * @param creationDate the value of field 'creationDate'.
154      */
155     public void setCreationDate(
156             final java.util.Date creationDate) {
157         this._creationDate = creationDate;
158     }
159
160     /**
161      * Sets the value of field 'jalviewModelSequence'.
162      * 
163      * @param jalviewModelSequence the value of field
164      * 'jalviewModelSequence'.
165      */
166     public void setJalviewModelSequence(
167             final jalview.schemabinding.version2.JalviewModelSequence jalviewModelSequence) {
168         this._jalviewModelSequence = jalviewModelSequence;
169     }
170
171     /**
172      * Sets the value of field 'vamsasModel'.
173      * 
174      * @param vamsasModel the value of field 'vamsasModel'.
175      */
176     public void setVamsasModel(
177             final jalview.schemabinding.version2.VamsasModel vamsasModel) {
178         this._vamsasModel = vamsasModel;
179     }
180
181     /**
182      * Sets the value of field 'version'.
183      * 
184      * @param version the value of field 'version'.
185      */
186     public void setVersion(
187             final java.lang.String version) {
188         this._version = version;
189     }
190
191     /**
192      * Method unmarshal.
193      * 
194      * @param reader
195      * @throws org.exolab.castor.xml.MarshalException if object is
196      * null or if any SAXException is thrown during marshaling
197      * @throws org.exolab.castor.xml.ValidationException if this
198      * object is an invalid instance according to the schema
199      * @return the unmarshaled
200      * jalview.schemabinding.version2.JalviewModel
201      */
202     public static jalview.schemabinding.version2.JalviewModel unmarshal(
203             final java.io.Reader reader)
204     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
205         return (jalview.schemabinding.version2.JalviewModel) Unmarshaller.unmarshal(jalview.schemabinding.version2.JalviewModel.class, reader);
206     }
207
208     /**
209      * 
210      * 
211      * @throws org.exolab.castor.xml.ValidationException if this
212      * object is an invalid instance according to the schema
213      */
214     public void validate(
215     )
216     throws org.exolab.castor.xml.ValidationException {
217         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
218         validator.validate(this);
219     }
220
221 }