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