d30e97ddfc4026690fb7ad8d31b7b5488b358248
[jalview.git] / src / jalview / binding / JalviewModel.java
1 /*\r
2  * This class was automatically generated with\r
3  * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
4  * Schema.\r
5  * $Id$\r
6  */\r
7 \r
8 /*\r
9 * Jalview - A Sequence Alignment Editor and Viewer\r
10 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
11 *\r
12 * This program is free software; you can redistribute it and/or\r
13 * modify it under the terms of the GNU General Public License\r
14 * as published by the Free Software Foundation; either version 2\r
15 * of the License, or (at your option) any later version.\r
16 *\r
17 * This program is distributed in the hope that it will be useful,\r
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
20 * GNU General Public License for more details.\r
21 *\r
22 * You should have received a copy of the GNU General Public License\r
23 * along with this program; if not, write to the Free Software\r
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\r
25 */\r
26 \r
27 package jalview.binding;\r
28 \r
29   //---------------------------------/\r
30  //- Imported classes and packages -/\r
31 //---------------------------------/\r
32 \r
33 import java.io.IOException;\r
34 import java.io.Reader;\r
35 import java.io.Serializable;\r
36 import java.io.Writer;\r
37 import java.util.Date;\r
38 import org.exolab.castor.xml.MarshalException;\r
39 import org.exolab.castor.xml.Marshaller;\r
40 import org.exolab.castor.xml.Unmarshaller;\r
41 import org.exolab.castor.xml.ValidationException;\r
42 import org.xml.sax.ContentHandler;\r
43 \r
44 /**\r
45  * Class JalviewModel.\r
46  *\r
47  * @version $Revision$ $Date$\r
48  */\r
49 public class JalviewModel implements java.io.Serializable {\r
50 \r
51 \r
52       //--------------------------/\r
53      //- Class/Member Variables -/\r
54     //--------------------------/\r
55 \r
56     /**\r
57      * Field _creationDate\r
58      */\r
59     private java.util.Date _creationDate;\r
60 \r
61     /**\r
62      * Field _vamsasModel\r
63      */\r
64     private jalview.binding.VamsasModel _vamsasModel;\r
65 \r
66     /**\r
67      * Field _jalviewModelSequence\r
68      */\r
69     private jalview.binding.JalviewModelSequence _jalviewModelSequence;\r
70 \r
71 \r
72       //----------------/\r
73      //- Constructors -/\r
74     //----------------/\r
75 \r
76     public JalviewModel() {\r
77         super();\r
78     } //-- jalview.binding.JalviewModel()\r
79 \r
80 \r
81       //-----------/\r
82      //- Methods -/\r
83     //-----------/\r
84 \r
85     /**\r
86      * Returns the value of field 'creationDate'.\r
87      *\r
88      * @return Date\r
89      * @return the value of field 'creationDate'.\r
90      */\r
91     public java.util.Date getCreationDate()\r
92     {\r
93         return this._creationDate;\r
94     } //-- java.util.Date getCreationDate()\r
95 \r
96     /**\r
97      * Returns the value of field 'jalviewModelSequence'.\r
98      *\r
99      * @return JalviewModelSequence\r
100      * @return the value of field 'jalviewModelSequence'.\r
101      */\r
102     public jalview.binding.JalviewModelSequence getJalviewModelSequence()\r
103     {\r
104         return this._jalviewModelSequence;\r
105     } //-- jalview.binding.JalviewModelSequence getJalviewModelSequence()\r
106 \r
107     /**\r
108      * Returns the value of field 'vamsasModel'.\r
109      *\r
110      * @return VamsasModel\r
111      * @return the value of field 'vamsasModel'.\r
112      */\r
113     public jalview.binding.VamsasModel getVamsasModel()\r
114     {\r
115         return this._vamsasModel;\r
116     } //-- jalview.binding.VamsasModel getVamsasModel()\r
117 \r
118     /**\r
119      * Method isValid\r
120      *\r
121      *\r
122      *\r
123      * @return boolean\r
124      */\r
125     public boolean isValid()\r
126     {\r
127         try {\r
128             validate();\r
129         }\r
130         catch (org.exolab.castor.xml.ValidationException vex) {\r
131             return false;\r
132         }\r
133         return true;\r
134     } //-- boolean isValid()\r
135 \r
136     /**\r
137      * Method marshal\r
138      *\r
139      *\r
140      *\r
141      * @param out\r
142      */\r
143     public void marshal(java.io.Writer out)\r
144         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
145     {\r
146 \r
147         Marshaller.marshal(this, out);\r
148     } //-- void marshal(java.io.Writer)\r
149 \r
150     /**\r
151      * Method marshal\r
152      *\r
153      *\r
154      *\r
155      * @param handler\r
156      */\r
157     public void marshal(org.xml.sax.ContentHandler handler)\r
158         throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
159     {\r
160 \r
161         Marshaller.marshal(this, handler);\r
162     } //-- void marshal(org.xml.sax.ContentHandler)\r
163 \r
164     /**\r
165      * Sets the value of field 'creationDate'.\r
166      *\r
167      * @param creationDate the value of field 'creationDate'.\r
168      */\r
169     public void setCreationDate(java.util.Date creationDate)\r
170     {\r
171         this._creationDate = creationDate;\r
172     } //-- void setCreationDate(java.util.Date)\r
173 \r
174     /**\r
175      * Sets the value of field 'jalviewModelSequence'.\r
176      *\r
177      * @param jalviewModelSequence the value of field\r
178      * 'jalviewModelSequence'.\r
179      */\r
180     public void setJalviewModelSequence(jalview.binding.JalviewModelSequence jalviewModelSequence)\r
181     {\r
182         this._jalviewModelSequence = jalviewModelSequence;\r
183     } //-- void setJalviewModelSequence(jalview.binding.JalviewModelSequence)\r
184 \r
185     /**\r
186      * Sets the value of field 'vamsasModel'.\r
187      *\r
188      * @param vamsasModel the value of field 'vamsasModel'.\r
189      */\r
190     public void setVamsasModel(jalview.binding.VamsasModel vamsasModel)\r
191     {\r
192         this._vamsasModel = vamsasModel;\r
193     } //-- void setVamsasModel(jalview.binding.VamsasModel)\r
194 \r
195     /**\r
196      * Method unmarshal\r
197      *\r
198      *\r
199      *\r
200      * @param reader\r
201      * @return Object\r
202      */\r
203     public static java.lang.Object unmarshal(java.io.Reader reader)\r
204         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
205     {\r
206         return (jalview.binding.JalviewModel) Unmarshaller.unmarshal(jalview.binding.JalviewModel.class, reader);\r
207     } //-- java.lang.Object unmarshal(java.io.Reader)\r
208 \r
209     /**\r
210      * Method validate\r
211      *\r
212      */\r
213     public void validate()\r
214         throws org.exolab.castor.xml.ValidationException\r
215     {\r
216         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
217         validator.validate(this);\r
218     } //-- void validate()\r
219 \r
220 }\r