2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
\r
8 package jalview.binding;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
14 import java.io.IOException;
\r
15 import java.io.Reader;
\r
16 import java.io.Serializable;
\r
17 import java.io.Writer;
\r
18 import java.util.Date;
\r
19 import org.exolab.castor.xml.MarshalException;
\r
20 import org.exolab.castor.xml.Marshaller;
\r
21 import org.exolab.castor.xml.Unmarshaller;
\r
22 import org.exolab.castor.xml.ValidationException;
\r
23 import org.xml.sax.ContentHandler;
\r
26 * Class JalviewModel.
\r
28 * @version $Revision$ $Date$
\r
30 public class JalviewModel implements java.io.Serializable {
\r
33 //--------------------------/
\r
34 //- Class/Member Variables -/
\r
35 //--------------------------/
\r
38 * Field _creationDate
\r
40 private java.util.Date _creationDate;
\r
45 private java.lang.String _version;
\r
48 * Field _vamsasModel
\r
50 private jalview.binding.VamsasModel _vamsasModel;
\r
53 * Field _jalviewModelSequence
\r
55 private jalview.binding.JalviewModelSequence _jalviewModelSequence;
\r
62 public JalviewModel() {
\r
64 } //-- jalview.binding.JalviewModel()
\r
72 * Returns the value of field 'creationDate'.
\r
75 * @return the value of field 'creationDate'.
\r
77 public java.util.Date getCreationDate()
\r
79 return this._creationDate;
\r
80 } //-- java.util.Date getCreationDate()
\r
83 * Returns the value of field 'jalviewModelSequence'.
\r
85 * @return JalviewModelSequence
\r
86 * @return the value of field 'jalviewModelSequence'.
\r
88 public jalview.binding.JalviewModelSequence getJalviewModelSequence()
\r
90 return this._jalviewModelSequence;
\r
91 } //-- jalview.binding.JalviewModelSequence getJalviewModelSequence()
\r
94 * Returns the value of field 'vamsasModel'.
\r
96 * @return VamsasModel
\r
97 * @return the value of field 'vamsasModel'.
\r
99 public jalview.binding.VamsasModel getVamsasModel()
\r
101 return this._vamsasModel;
\r
102 } //-- jalview.binding.VamsasModel getVamsasModel()
\r
105 * Returns the value of field 'version'.
\r
108 * @return the value of field 'version'.
\r
110 public java.lang.String getVersion()
\r
112 return this._version;
\r
113 } //-- java.lang.String getVersion()
\r
122 public boolean isValid()
\r
127 catch (org.exolab.castor.xml.ValidationException vex) {
\r
131 } //-- boolean isValid()
\r
140 public void marshal(java.io.Writer out)
\r
141 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
144 Marshaller.marshal(this, out);
\r
145 } //-- void marshal(java.io.Writer)
\r
154 public void marshal(org.xml.sax.ContentHandler handler)
\r
155 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
158 Marshaller.marshal(this, handler);
\r
159 } //-- void marshal(org.xml.sax.ContentHandler)
\r
162 * Sets the value of field 'creationDate'.
\r
164 * @param creationDate the value of field 'creationDate'.
\r
166 public void setCreationDate(java.util.Date creationDate)
\r
168 this._creationDate = creationDate;
\r
169 } //-- void setCreationDate(java.util.Date)
\r
172 * Sets the value of field 'jalviewModelSequence'.
\r
174 * @param jalviewModelSequence the value of field
\r
175 * 'jalviewModelSequence'.
\r
177 public void setJalviewModelSequence(jalview.binding.JalviewModelSequence jalviewModelSequence)
\r
179 this._jalviewModelSequence = jalviewModelSequence;
\r
180 } //-- void setJalviewModelSequence(jalview.binding.JalviewModelSequence)
\r
183 * Sets the value of field 'vamsasModel'.
\r
185 * @param vamsasModel the value of field 'vamsasModel'.
\r
187 public void setVamsasModel(jalview.binding.VamsasModel vamsasModel)
\r
189 this._vamsasModel = vamsasModel;
\r
190 } //-- void setVamsasModel(jalview.binding.VamsasModel)
\r
193 * Sets the value of field 'version'.
\r
195 * @param version the value of field 'version'.
\r
197 public void setVersion(java.lang.String version)
\r
199 this._version = version;
\r
200 } //-- void setVersion(java.lang.String)
\r
210 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
211 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
213 return (jalview.binding.JalviewModel) Unmarshaller.unmarshal(jalview.binding.JalviewModel.class, reader);
\r
214 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
220 public void validate()
\r
221 throws org.exolab.castor.xml.ValidationException
\r
223 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
224 validator.validate(this);
\r
225 } //-- void validate()
\r