/* * This class was automatically generated with * Castor 0.9.6, using an XML * Schema. * $Id$ */ package jalview.schemabinding.version2; //---------------------------------/ //- Imported classes and packages -/ //---------------------------------/ import java.io.IOException; import java.io.Reader; import java.io.Serializable; import java.io.Writer; import org.exolab.castor.xml.MarshalException; import org.exolab.castor.xml.Marshaller; import org.exolab.castor.xml.Unmarshaller; import org.exolab.castor.xml.ValidationException; import org.xml.sax.ContentHandler; /** * Class Alignment. * * @version $Revision$ $Date$ */ public class Alignment implements java.io.Serializable { //--------------------------/ //- Class/Member Variables -/ //--------------------------/ /** * Field _annotation */ private jalview.schemabinding.version2.Annotation _annotation; /** * Field _sequenceSet */ private jalview.schemabinding.version2.SequenceSet _sequenceSet; //----------------/ //- Constructors -/ //----------------/ public Alignment() { super(); } //-- jalview.schemabinding.version2.Alignment() //-----------/ //- Methods -/ //-----------/ /** * Returns the value of field 'annotation'. * * @return Annotation * @return the value of field 'annotation'. */ public jalview.schemabinding.version2.Annotation getAnnotation() { return this._annotation; } //-- jalview.schemabinding.version2.Annotation getAnnotation() /** * Returns the value of field 'sequenceSet'. * * @return SequenceSet * @return the value of field 'sequenceSet'. */ public jalview.schemabinding.version2.SequenceSet getSequenceSet() { return this._sequenceSet; } //-- jalview.schemabinding.version2.SequenceSet getSequenceSet() /** * Method isValid * * * * @return boolean */ public boolean isValid() { try { validate(); } catch (org.exolab.castor.xml.ValidationException vex) { return false; } return true; } //-- boolean isValid() /** * Method marshal * * * * @param out */ public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, out); } //-- void marshal(java.io.Writer) /** * Method marshal * * * * @param handler */ public void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, handler); } //-- void marshal(org.xml.sax.ContentHandler) /** * Sets the value of field 'annotation'. * * @param annotation the value of field 'annotation'. */ public void setAnnotation(jalview.schemabinding.version2.Annotation annotation) { this._annotation = annotation; } //-- void setAnnotation(jalview.schemabinding.version2.Annotation) /** * Sets the value of field 'sequenceSet'. * * @param sequenceSet the value of field 'sequenceSet'. */ public void setSequenceSet(jalview.schemabinding.version2.SequenceSet sequenceSet) { this._sequenceSet = sequenceSet; } //-- void setSequenceSet(jalview.schemabinding.version2.SequenceSet) /** * Method unmarshal * * * * @param reader * @return Object */ public static java.lang.Object unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (jalview.schemabinding.version2.Alignment) Unmarshaller.unmarshal(jalview.schemabinding.version2.Alignment.class, reader); } //-- java.lang.Object unmarshal(java.io.Reader) /** * Method validate * */ public void validate() throws org.exolab.castor.xml.ValidationException { org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); validator.validate(this); } //-- void validate() }