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