2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.binding;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
20 * @version $Revision$ $Date$
22 public class JalviewModel implements java.io.Serializable {
25 //--------------------------/
26 //- Class/Member Variables -/
27 //--------------------------/
30 * Field _creationDate.
32 private java.util.Date _creationDate;
37 private java.lang.String _version;
42 private jalview.binding.VamsasModel _vamsasModel;
45 * Field _jalviewModelSequence.
47 private jalview.binding.JalviewModelSequence _jalviewModelSequence;
54 public JalviewModel() {
64 * Returns the value of field 'creationDate'.
66 * @return the value of field 'CreationDate'.
68 public java.util.Date getCreationDate(
70 return this._creationDate;
74 * Returns the value of field 'jalviewModelSequence'.
76 * @return the value of field 'JalviewModelSequence'.
78 public jalview.binding.JalviewModelSequence getJalviewModelSequence(
80 return this._jalviewModelSequence;
84 * Returns the value of field 'vamsasModel'.
86 * @return the value of field 'VamsasModel'.
88 public jalview.binding.VamsasModel getVamsasModel(
90 return this._vamsasModel;
94 * Returns the value of field 'version'.
96 * @return the value of field 'Version'.
98 public java.lang.String getVersion(
100 return this._version;
106 * @return true if this object is valid according to the schema
108 public boolean isValid(
112 } catch (org.exolab.castor.xml.ValidationException vex) {
122 * @throws org.exolab.castor.xml.MarshalException if object is
123 * null or if any SAXException is thrown during marshaling
124 * @throws org.exolab.castor.xml.ValidationException if this
125 * object is an invalid instance according to the schema
128 final java.io.Writer out)
129 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
130 Marshaller.marshal(this, out);
137 * @throws java.io.IOException if an IOException occurs during
139 * @throws org.exolab.castor.xml.ValidationException if this
140 * object is an invalid instance according to the schema
141 * @throws org.exolab.castor.xml.MarshalException if object is
142 * null or if any SAXException is thrown during marshaling
145 final org.xml.sax.ContentHandler handler)
146 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
147 Marshaller.marshal(this, handler);
151 * Sets the value of field 'creationDate'.
153 * @param creationDate the value of field 'creationDate'.
155 public void setCreationDate(
156 final java.util.Date creationDate) {
157 this._creationDate = creationDate;
161 * Sets the value of field 'jalviewModelSequence'.
163 * @param jalviewModelSequence the value of field
164 * 'jalviewModelSequence'.
166 public void setJalviewModelSequence(
167 final jalview.binding.JalviewModelSequence jalviewModelSequence) {
168 this._jalviewModelSequence = jalviewModelSequence;
172 * Sets the value of field 'vamsasModel'.
174 * @param vamsasModel the value of field 'vamsasModel'.
176 public void setVamsasModel(
177 final jalview.binding.VamsasModel vamsasModel) {
178 this._vamsasModel = vamsasModel;
182 * Sets the value of field 'version'.
184 * @param version the value of field 'version'.
186 public void setVersion(
187 final java.lang.String version) {
188 this._version = version;
195 * @throws org.exolab.castor.xml.MarshalException if object is
196 * null or if any SAXException is thrown during marshaling
197 * @throws org.exolab.castor.xml.ValidationException if this
198 * object is an invalid instance according to the schema
199 * @return the unmarshaled jalview.binding.JalviewModel
201 public static jalview.binding.JalviewModel unmarshal(
202 final java.io.Reader reader)
203 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
204 return (jalview.binding.JalviewModel) Unmarshaller.unmarshal(jalview.binding.JalviewModel.class, reader);
210 * @throws org.exolab.castor.xml.ValidationException if this
211 * object is an invalid instance according to the schema
213 public void validate(
215 throws org.exolab.castor.xml.ValidationException {
216 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
217 validator.validate(this);