X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fschemabinding%2Fversion2%2FAlignment.java;fp=src%2Fjalview%2Fschemabinding%2Fversion2%2FAlignment.java;h=3b9d53b6befbff0449520611f5c656ae603dc670;hb=0f71bfca98457c30f1051f142c31b6aaa3e23ead;hp=0000000000000000000000000000000000000000;hpb=072fc418c393cbd2a40dfa1d3e46f90178b79572;p=jalview.git diff --git a/src/jalview/schemabinding/version2/Alignment.java b/src/jalview/schemabinding/version2/Alignment.java new file mode 100755 index 0000000..3b9d53b --- /dev/null +++ b/src/jalview/schemabinding/version2/Alignment.java @@ -0,0 +1,173 @@ +/* + * 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() + +}