2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
\r
8 package jalview.schemabinding.version2;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
14 import org.exolab.castor.xml.Marshaller;
\r
15 import org.exolab.castor.xml.Unmarshaller;
\r
18 * Class JalviewModel.
\r
20 * @version $Revision$ $Date$
\r
22 public class JalviewModel implements java.io.Serializable {
\r
25 //--------------------------/
\r
26 //- Class/Member Variables -/
\r
27 //--------------------------/
\r
30 * Field _creationDate.
\r
32 private java.util.Date _creationDate;
\r
37 private java.lang.String _version;
\r
40 * Field _vamsasModel.
\r
42 private jalview.schemabinding.version2.VamsasModel _vamsasModel;
\r
45 * Field _jalviewModelSequence.
\r
47 private jalview.schemabinding.version2.JalviewModelSequence _jalviewModelSequence;
\r
54 public JalviewModel() {
\r
64 * Returns the value of field 'creationDate'.
\r
66 * @return the value of field 'CreationDate'.
\r
68 public java.util.Date getCreationDate(
\r
70 return this._creationDate;
\r
74 * Returns the value of field 'jalviewModelSequence'.
\r
76 * @return the value of field 'JalviewModelSequence'.
\r
78 public jalview.schemabinding.version2.JalviewModelSequence getJalviewModelSequence(
\r
80 return this._jalviewModelSequence;
\r
84 * Returns the value of field 'vamsasModel'.
\r
86 * @return the value of field 'VamsasModel'.
\r
88 public jalview.schemabinding.version2.VamsasModel getVamsasModel(
\r
90 return this._vamsasModel;
\r
94 * Returns the value of field 'version'.
\r
96 * @return the value of field 'Version'.
\r
98 public java.lang.String getVersion(
\r
100 return this._version;
\r
106 * @return true if this object is valid according to the schema
\r
108 public boolean isValid(
\r
112 } catch (org.exolab.castor.xml.ValidationException vex) {
\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
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
137 * @throws java.io.IOException if an IOException occurs during
\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
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
151 * Sets the value of field 'creationDate'.
\r
153 * @param creationDate the value of field 'creationDate'.
\r
155 public void setCreationDate(
\r
156 final java.util.Date creationDate) {
\r
157 this._creationDate = creationDate;
\r
161 * Sets the value of field 'jalviewModelSequence'.
\r
163 * @param jalviewModelSequence the value of field
\r
164 * 'jalviewModelSequence'.
\r
166 public void setJalviewModelSequence(
\r
167 final jalview.schemabinding.version2.JalviewModelSequence jalviewModelSequence) {
\r
168 this._jalviewModelSequence = jalviewModelSequence;
\r
172 * Sets the value of field 'vamsasModel'.
\r
174 * @param vamsasModel the value of field 'vamsasModel'.
\r
176 public void setVamsasModel(
\r
177 final jalview.schemabinding.version2.VamsasModel vamsasModel) {
\r
178 this._vamsasModel = vamsasModel;
\r
182 * Sets the value of field 'version'.
\r
184 * @param version the value of field 'version'.
\r
186 public void setVersion(
\r
187 final java.lang.String version) {
\r
188 this._version = version;
\r
192 * Method unmarshal.
\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
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
211 * @throws org.exolab.castor.xml.ValidationException if this
\r
212 * object is an invalid instance according to the schema
\r
214 public void validate(
\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