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;
63 * Returns the value of field 'creationDate'.
65 * @return the value of field 'CreationDate'.
67 public java.util.Date getCreationDate()
69 return this._creationDate;
73 * Returns the value of field 'jalviewModelSequence'.
75 * @return the value of field 'JalviewModelSequence'.
77 public jalview.binding.JalviewModelSequence getJalviewModelSequence()
79 return this._jalviewModelSequence;
83 * Returns the value of field 'vamsasModel'.
85 * @return the value of field 'VamsasModel'.
87 public jalview.binding.VamsasModel getVamsasModel()
89 return this._vamsasModel;
93 * Returns the value of field 'version'.
95 * @return the value of field 'Version'.
97 public java.lang.String getVersion()
105 * @return true if this object is valid according to the schema
107 public boolean isValid()
112 } catch (org.exolab.castor.xml.ValidationException vex)
123 * @throws org.exolab.castor.xml.MarshalException
124 * if object is null or if any SAXException is thrown during
126 * @throws org.exolab.castor.xml.ValidationException
127 * if this object is an invalid instance according to the schema
129 public void marshal(final java.io.Writer out)
130 throws org.exolab.castor.xml.MarshalException,
131 org.exolab.castor.xml.ValidationException
133 Marshaller.marshal(this, out);
140 * @throws java.io.IOException
141 * if an IOException occurs during marshaling
142 * @throws org.exolab.castor.xml.ValidationException
143 * if this object is an invalid instance according to the schema
144 * @throws org.exolab.castor.xml.MarshalException
145 * if object is null or if any SAXException is thrown during
148 public void marshal(final org.xml.sax.ContentHandler handler)
149 throws java.io.IOException,
150 org.exolab.castor.xml.MarshalException,
151 org.exolab.castor.xml.ValidationException
153 Marshaller.marshal(this, handler);
157 * Sets the value of field 'creationDate'.
159 * @param creationDate
160 * the value of field 'creationDate'.
162 public void setCreationDate(final java.util.Date creationDate)
164 this._creationDate = creationDate;
168 * Sets the value of field 'jalviewModelSequence'.
170 * @param jalviewModelSequence
171 * the value of field 'jalviewModelSequence'.
173 public void setJalviewModelSequence(
174 final jalview.binding.JalviewModelSequence jalviewModelSequence)
176 this._jalviewModelSequence = jalviewModelSequence;
180 * Sets the value of field 'vamsasModel'.
183 * the value of field 'vamsasModel'.
185 public void setVamsasModel(final jalview.binding.VamsasModel vamsasModel)
187 this._vamsasModel = vamsasModel;
191 * Sets the value of field 'version'.
194 * the value of field 'version'.
196 public void setVersion(final java.lang.String version)
198 this._version = version;
205 * @throws org.exolab.castor.xml.MarshalException
206 * if object is null or if any SAXException is thrown during
208 * @throws org.exolab.castor.xml.ValidationException
209 * if this object is an invalid instance according to the schema
210 * @return the unmarshaled jalview.binding.JalviewModel
212 public static jalview.binding.JalviewModel unmarshal(
213 final java.io.Reader reader)
214 throws org.exolab.castor.xml.MarshalException,
215 org.exolab.castor.xml.ValidationException
217 return (jalview.binding.JalviewModel) Unmarshaller.unmarshal(
218 jalview.binding.JalviewModel.class, reader);
224 * @throws org.exolab.castor.xml.ValidationException
225 * if this object is an invalid instance according to the schema
227 public void validate() throws org.exolab.castor.xml.ValidationException
229 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
230 validator.validate(this);