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 Alignment implements java.io.Serializable {
25 //--------------------------/
26 //- Class/Member Variables -/
27 //--------------------------/
32 private jalview.binding.Annotation _annotation;
37 private jalview.binding.SequenceSet _sequenceSet;
54 * Returns the value of field 'annotation'.
56 * @return the value of field 'Annotation'.
58 public jalview.binding.Annotation getAnnotation(
60 return this._annotation;
64 * Returns the value of field 'sequenceSet'.
66 * @return the value of field 'SequenceSet'.
68 public jalview.binding.SequenceSet getSequenceSet(
70 return this._sequenceSet;
76 * @return true if this object is valid according to the schema
78 public boolean isValid(
82 } catch (org.exolab.castor.xml.ValidationException vex) {
92 * @throws org.exolab.castor.xml.MarshalException if object is
93 * null or if any SAXException is thrown during marshaling
94 * @throws org.exolab.castor.xml.ValidationException if this
95 * object is an invalid instance according to the schema
98 final java.io.Writer out)
99 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
100 Marshaller.marshal(this, out);
107 * @throws java.io.IOException if an IOException occurs during
109 * @throws org.exolab.castor.xml.ValidationException if this
110 * object is an invalid instance according to the schema
111 * @throws org.exolab.castor.xml.MarshalException if object is
112 * null or if any SAXException is thrown during marshaling
115 final org.xml.sax.ContentHandler handler)
116 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
117 Marshaller.marshal(this, handler);
121 * Sets the value of field 'annotation'.
123 * @param annotation the value of field 'annotation'.
125 public void setAnnotation(
126 final jalview.binding.Annotation annotation) {
127 this._annotation = annotation;
131 * Sets the value of field 'sequenceSet'.
133 * @param sequenceSet the value of field 'sequenceSet'.
135 public void setSequenceSet(
136 final jalview.binding.SequenceSet sequenceSet) {
137 this._sequenceSet = sequenceSet;
144 * @throws org.exolab.castor.xml.MarshalException if object is
145 * null or if any SAXException is thrown during marshaling
146 * @throws org.exolab.castor.xml.ValidationException if this
147 * object is an invalid instance according to the schema
148 * @return the unmarshaled jalview.binding.Alignment
150 public static jalview.binding.Alignment unmarshal(
151 final java.io.Reader reader)
152 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
153 return (jalview.binding.Alignment) Unmarshaller.unmarshal(jalview.binding.Alignment.class, reader);
159 * @throws org.exolab.castor.xml.ValidationException if this
160 * object is an invalid instance according to the schema
162 public void validate(
164 throws org.exolab.castor.xml.ValidationException {
165 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
166 validator.validate(this);