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
28 * @version $Revision$ $Date$
\r
30 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
54 //-- jalview.binding.Alignment()
\r
60 * @return DOCUMENT ME!
\r
62 public jalview.binding.Annotation getAnnotation()
\r
64 return this._annotation;
\r
67 //-- jalview.binding.Annotation getAnnotation()
\r
70 * Returns the value of field 'sequenceSet'.
\r
72 * @return SequenceSet
\r
73 * @return the value of field 'sequenceSet'.
\r
75 public jalview.binding.SequenceSet getSequenceSet()
\r
77 return this._sequenceSet;
\r
80 //-- jalview.binding.SequenceSet getSequenceSet()
\r
89 public boolean isValid()
\r
95 catch (org.exolab.castor.xml.ValidationException vex)
\r
103 //-- boolean isValid()
\r
112 public void marshal(java.io.Writer out)
\r
113 throws org.exolab.castor.xml.MarshalException,
\r
114 org.exolab.castor.xml.ValidationException
\r
116 Marshaller.marshal(this, out);
\r
119 //-- void marshal(java.io.Writer)
\r
128 public void marshal(org.xml.sax.ContentHandler handler)
\r
129 throws java.io.IOException, org.exolab.castor.xml.MarshalException,
\r
130 org.exolab.castor.xml.ValidationException
\r
132 Marshaller.marshal(this, handler);
\r
135 //-- void marshal(org.xml.sax.ContentHandler)
\r
138 * Sets the value of field 'annotation'.
\r
140 * @param annotation the value of field 'annotation'.
\r
142 public void setAnnotation(jalview.binding.Annotation annotation)
\r
144 this._annotation = annotation;
\r
147 //-- void setAnnotation(jalview.binding.Annotation)
\r
150 * Sets the value of field 'sequenceSet'.
\r
152 * @param sequenceSet the value of field 'sequenceSet'.
\r
154 public void setSequenceSet(jalview.binding.SequenceSet sequenceSet)
\r
156 this._sequenceSet = sequenceSet;
\r
159 //-- void setSequenceSet(jalview.binding.SequenceSet)
\r
169 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
170 throws org.exolab.castor.xml.MarshalException,
\r
171 org.exolab.castor.xml.ValidationException
\r
173 return (jalview.binding.Alignment) Unmarshaller.unmarshal(jalview.binding.Alignment.class,
\r
177 //-- java.lang.Object unmarshal(java.io.Reader)
\r
183 public void validate() throws org.exolab.castor.xml.ValidationException
\r
185 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
186 validator.validate(this);
\r
189 //-- void validate()
\r