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.schemabinding.version2;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
14 import org.exolab.castor.xml.*;
\r
19 * @version $Revision$ $Date$
\r
22 implements java.io.Serializable
\r
25 //--------------------------/
\r
26 //- Class/Member Variables -/
\r
27 //--------------------------/
\r
32 private java.lang.String _source;
\r
37 private java.lang.String _version;
\r
40 * Field _accessionId
\r
42 private java.lang.String _accessionId;
\r
51 } //-- jalview.schemabinding.version2.DBRef()
\r
58 * Returns the value of field 'accessionId'.
\r
61 * @return the value of field 'accessionId'.
\r
63 public java.lang.String getAccessionId()
\r
65 return this._accessionId;
\r
66 } //-- java.lang.String getAccessionId()
\r
69 * Returns the value of field 'source'.
\r
72 * @return the value of field 'source'.
\r
74 public java.lang.String getSource()
\r
76 return this._source;
\r
77 } //-- java.lang.String getSource()
\r
80 * Returns the value of field 'version'.
\r
83 * @return the value of field 'version'.
\r
85 public java.lang.String getVersion()
\r
87 return this._version;
\r
88 } //-- java.lang.String getVersion()
\r
97 public boolean isValid()
\r
103 catch (org.exolab.castor.xml.ValidationException vex)
\r
108 } //-- boolean isValid()
\r
117 public void marshal(java.io.Writer out)
\r
118 throws org.exolab.castor.xml.MarshalException,
\r
119 org.exolab.castor.xml.ValidationException
\r
122 Marshaller.marshal(this, out);
\r
123 } //-- void marshal(java.io.Writer)
\r
132 public void marshal(org.xml.sax.ContentHandler handler)
\r
133 throws java.io.IOException, org.exolab.castor.xml.MarshalException,
\r
134 org.exolab.castor.xml.ValidationException
\r
137 Marshaller.marshal(this, handler);
\r
138 } //-- void marshal(org.xml.sax.ContentHandler)
\r
141 * Sets the value of field 'accessionId'.
\r
143 * @param accessionId the value of field 'accessionId'.
\r
145 public void setAccessionId(java.lang.String accessionId)
\r
147 this._accessionId = accessionId;
\r
148 } //-- void setAccessionId(java.lang.String)
\r
151 * Sets the value of field 'source'.
\r
153 * @param source the value of field 'source'.
\r
155 public void setSource(java.lang.String source)
\r
157 this._source = source;
\r
158 } //-- void setSource(java.lang.String)
\r
161 * Sets the value of field 'version'.
\r
163 * @param version the value of field 'version'.
\r
165 public void setVersion(java.lang.String version)
\r
167 this._version = version;
\r
168 } //-- void setVersion(java.lang.String)
\r
178 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
179 throws org.exolab.castor.xml.MarshalException,
\r
180 org.exolab.castor.xml.ValidationException
\r
182 return (jalview.schemabinding.version2.DBRef) Unmarshaller.unmarshal(
\r
183 jalview.schemabinding.version2.DBRef.class, reader);
\r
184 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
190 public void validate()
\r
191 throws org.exolab.castor.xml.ValidationException
\r
193 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.
\r
195 validator.validate(this);
\r
196 } //-- void validate()
\r