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 org.exolab.castor.xml.MarshalException;
\r
19 import org.exolab.castor.xml.Marshaller;
\r
20 import org.exolab.castor.xml.Unmarshaller;
\r
21 import org.exolab.castor.xml.ValidationException;
\r
22 import org.xml.sax.ContentHandler;
\r
27 * @version $Revision$ $Date$
\r
29 public class Alignment implements java.io.Serializable {
\r
32 //--------------------------/
\r
33 //- Class/Member Variables -/
\r
34 //--------------------------/
\r
39 private jalview.binding.Annotation _annotation;
\r
42 * Field _sequenceSet
\r
44 private jalview.binding.SequenceSet _sequenceSet;
\r
51 public Alignment() {
\r
53 } //-- jalview.binding.Alignment()
\r
61 * Returns the value of field 'annotation'.
\r
63 * @return Annotation
\r
64 * @return the value of field 'annotation'.
\r
66 public jalview.binding.Annotation getAnnotation()
\r
68 return this._annotation;
\r
69 } //-- jalview.binding.Annotation getAnnotation()
\r
72 * Returns the value of field 'sequenceSet'.
\r
74 * @return SequenceSet
\r
75 * @return the value of field 'sequenceSet'.
\r
77 public jalview.binding.SequenceSet getSequenceSet()
\r
79 return this._sequenceSet;
\r
80 } //-- jalview.binding.SequenceSet getSequenceSet()
\r
89 public boolean isValid()
\r
94 catch (org.exolab.castor.xml.ValidationException vex) {
\r
98 } //-- boolean isValid()
\r
107 public void marshal(java.io.Writer out)
\r
108 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
111 Marshaller.marshal(this, out);
\r
112 } //-- void marshal(java.io.Writer)
\r
121 public void marshal(org.xml.sax.ContentHandler handler)
\r
122 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
125 Marshaller.marshal(this, handler);
\r
126 } //-- void marshal(org.xml.sax.ContentHandler)
\r
129 * Sets the value of field 'annotation'.
\r
131 * @param annotation the value of field 'annotation'.
\r
133 public void setAnnotation(jalview.binding.Annotation annotation)
\r
135 this._annotation = annotation;
\r
136 } //-- void setAnnotation(jalview.binding.Annotation)
\r
139 * Sets the value of field 'sequenceSet'.
\r
141 * @param sequenceSet the value of field 'sequenceSet'.
\r
143 public void setSequenceSet(jalview.binding.SequenceSet sequenceSet)
\r
145 this._sequenceSet = sequenceSet;
\r
146 } //-- void setSequenceSet(jalview.binding.SequenceSet)
\r
156 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
157 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
159 return (jalview.binding.Alignment) Unmarshaller.unmarshal(jalview.binding.Alignment.class, reader);
\r
160 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
166 public void validate()
\r
167 throws org.exolab.castor.xml.ValidationException
\r
169 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
170 validator.validate(this);
\r
171 } //-- void validate()
\r