2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
\r
7 package jalview.binding;
\r
9 import org.exolab.castor.xml.MarshalException;
\r
10 import org.exolab.castor.xml.Marshaller;
\r
11 import org.exolab.castor.xml.Unmarshaller;
\r
12 import org.exolab.castor.xml.ValidationException;
\r
14 import org.xml.sax.ContentHandler;
\r
16 //---------------------------------/
\r
17 //- Imported classes and packages -/
\r
18 //---------------------------------/
\r
19 import java.io.IOException;
\r
20 import java.io.Reader;
\r
21 import java.io.Serializable;
\r
22 import java.io.Writer;
\r
24 import java.util.Date;
\r
28 * Class JalviewModel.
\r
30 * @version $Revision$ $Date$
\r
32 public class JalviewModel implements java.io.Serializable
\r
34 //--------------------------/
\r
35 //- Class/Member Variables -/
\r
36 //--------------------------/
\r
39 * Field _creationDate
\r
41 private java.util.Date _creationDate;
\r
46 private java.lang.String _version;
\r
49 * Field _vamsasModel
\r
51 private jalview.binding.VamsasModel _vamsasModel;
\r
54 * Field _jalviewModelSequence
\r
56 private jalview.binding.JalviewModelSequence _jalviewModelSequence;
\r
61 public JalviewModel()
\r
66 //-- jalview.binding.JalviewModel()
\r
72 * @return DOCUMENT ME!
\r
74 public java.util.Date getCreationDate()
\r
76 return this._creationDate;
\r
79 //-- java.util.Date getCreationDate()
\r
82 * Returns the value of field 'jalviewModelSequence'.
\r
84 * @return JalviewModelSequence
\r
85 * @return the value of field 'jalviewModelSequence'.
\r
87 public jalview.binding.JalviewModelSequence getJalviewModelSequence()
\r
89 return this._jalviewModelSequence;
\r
92 //-- jalview.binding.JalviewModelSequence getJalviewModelSequence()
\r
95 * Returns the value of field 'vamsasModel'.
\r
97 * @return VamsasModel
\r
98 * @return the value of field 'vamsasModel'.
\r
100 public jalview.binding.VamsasModel getVamsasModel()
\r
102 return this._vamsasModel;
\r
105 //-- jalview.binding.VamsasModel getVamsasModel()
\r
108 * Returns the value of field 'version'.
\r
111 * @return the value of field 'version'.
\r
113 public java.lang.String getVersion()
\r
115 return this._version;
\r
118 //-- java.lang.String getVersion()
\r
127 public boolean isValid()
\r
133 catch (org.exolab.castor.xml.ValidationException vex)
\r
141 //-- boolean isValid()
\r
150 public void marshal(java.io.Writer out)
\r
151 throws org.exolab.castor.xml.MarshalException,
\r
152 org.exolab.castor.xml.ValidationException
\r
154 Marshaller.marshal(this, out);
\r
157 //-- void marshal(java.io.Writer)
\r
166 public void marshal(org.xml.sax.ContentHandler handler)
\r
167 throws java.io.IOException, org.exolab.castor.xml.MarshalException,
\r
168 org.exolab.castor.xml.ValidationException
\r
170 Marshaller.marshal(this, handler);
\r
173 //-- void marshal(org.xml.sax.ContentHandler)
\r
176 * Sets the value of field 'creationDate'.
\r
178 * @param creationDate the value of field 'creationDate'.
\r
180 public void setCreationDate(java.util.Date creationDate)
\r
182 this._creationDate = creationDate;
\r
185 //-- void setCreationDate(java.util.Date)
\r
188 * Sets the value of field 'jalviewModelSequence'.
\r
190 * @param jalviewModelSequence the value of field
\r
191 * 'jalviewModelSequence'.
\r
193 public void setJalviewModelSequence(
\r
194 jalview.binding.JalviewModelSequence jalviewModelSequence)
\r
196 this._jalviewModelSequence = jalviewModelSequence;
\r
199 //-- void setJalviewModelSequence(jalview.binding.JalviewModelSequence)
\r
202 * Sets the value of field 'vamsasModel'.
\r
204 * @param vamsasModel the value of field 'vamsasModel'.
\r
206 public void setVamsasModel(jalview.binding.VamsasModel vamsasModel)
\r
208 this._vamsasModel = vamsasModel;
\r
211 //-- void setVamsasModel(jalview.binding.VamsasModel)
\r
214 * Sets the value of field 'version'.
\r
216 * @param version the value of field 'version'.
\r
218 public void setVersion(java.lang.String version)
\r
220 this._version = version;
\r
223 //-- void setVersion(java.lang.String)
\r
233 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
234 throws org.exolab.castor.xml.MarshalException,
\r
235 org.exolab.castor.xml.ValidationException
\r
237 return (jalview.binding.JalviewModel) Unmarshaller.unmarshal(jalview.binding.JalviewModel.class,
\r
241 //-- java.lang.Object unmarshal(java.io.Reader)
\r
247 public void validate() throws org.exolab.castor.xml.ValidationException
\r
249 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
250 validator.validate(this);
\r
253 //-- void validate()
\r