/* * This class was automatically generated with * Castor 0.9.6, using an XML * Schema. * $Id$ */ package jalview.schemabinding.version2; //---------------------------------/ //- Imported classes and packages -/ //---------------------------------/ import org.exolab.castor.xml.*; /** * Class DBRef. * * @version $Revision$ $Date$ */ public class DBRef implements java.io.Serializable { //--------------------------/ //- Class/Member Variables -/ //--------------------------/ /** * Field _source */ private java.lang.String _source; /** * Field _version */ private java.lang.String _version; /** * Field _accessionId */ private java.lang.String _accessionId; //----------------/ //- Constructors -/ //----------------/ public DBRef() { super(); } //-- jalview.schemabinding.version2.DBRef() //-----------/ //- Methods -/ //-----------/ /** * Returns the value of field 'accessionId'. * * @return String * @return the value of field 'accessionId'. */ public java.lang.String getAccessionId() { return this._accessionId; } //-- java.lang.String getAccessionId() /** * Returns the value of field 'source'. * * @return String * @return the value of field 'source'. */ public java.lang.String getSource() { return this._source; } //-- java.lang.String getSource() /** * Returns the value of field 'version'. * * @return String * @return the value of field 'version'. */ public java.lang.String getVersion() { return this._version; } //-- java.lang.String getVersion() /** * 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 'accessionId'. * * @param accessionId the value of field 'accessionId'. */ public void setAccessionId(java.lang.String accessionId) { this._accessionId = accessionId; } //-- void setAccessionId(java.lang.String) /** * Sets the value of field 'source'. * * @param source the value of field 'source'. */ public void setSource(java.lang.String source) { this._source = source; } //-- void setSource(java.lang.String) /** * Sets the value of field 'version'. * * @param version the value of field 'version'. */ public void setVersion(java.lang.String version) { this._version = version; } //-- void setVersion(java.lang.String) /** * 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.DBRef) Unmarshaller.unmarshal( jalview.schemabinding.version2.DBRef.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() }