21f8be970d55ce18dd30a20c415199de7366c53e
[jalview.git] / src / jalview / binding / 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.binding;
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.binding.VamsasModel _vamsasModel;
43
44     /**
45      * Field _jalviewModelSequence.
46      */
47     private jalview.binding.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.binding.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.binding.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.binding.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.binding.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 jalview.binding.JalviewModel
200      */
201     public static jalview.binding.JalviewModel unmarshal(
202             final java.io.Reader reader)
203     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
204         return (jalview.binding.JalviewModel) Unmarshaller.unmarshal(jalview.binding.JalviewModel.class, reader);
205     }
206
207     /**
208      * 
209      * 
210      * @throws org.exolab.castor.xml.ValidationException if this
211      * object is an invalid instance according to the schema
212      */
213     public void validate(
214     )
215     throws org.exolab.castor.xml.ValidationException {
216         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
217         validator.validate(this);
218     }
219
220 }