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