2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 1.1</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.Marshaller;
\r
15 import org.exolab.castor.xml.Unmarshaller;
\r
20 * @version $Revision$ $Date$
\r
22 public class DBRef 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
59 * 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
69 * Returns the value of field 'source'.
\r
71 * @return the value of field 'Source'.
\r
73 public java.lang.String getSource(
\r
75 return this._source;
\r
79 * Returns the value of field 'version'.
\r
81 * @return the value of field 'Version'.
\r
83 public java.lang.String getVersion(
\r
85 return this._version;
\r
91 * @return true if this object is valid according to the schema
\r
93 public boolean isValid(
\r
97 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
107 * @throws org.exolab.castor.xml.MarshalException if object is
\r
108 * null or if any SAXException is thrown during marshaling
\r
109 * @throws org.exolab.castor.xml.ValidationException if this
\r
110 * object is an invalid instance according to the schema
\r
112 public void marshal(
\r
113 final java.io.Writer out)
\r
114 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
115 Marshaller.marshal(this, out);
\r
122 * @throws java.io.IOException if an IOException occurs during
\r
124 * @throws org.exolab.castor.xml.ValidationException if this
\r
125 * object is an invalid instance according to the schema
\r
126 * @throws org.exolab.castor.xml.MarshalException if object is
\r
127 * null or if any SAXException is thrown during marshaling
\r
129 public void marshal(
\r
130 final org.xml.sax.ContentHandler handler)
\r
131 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
132 Marshaller.marshal(this, handler);
\r
136 * Sets the value of field 'accessionId'.
\r
138 * @param accessionId the value of field 'accessionId'.
\r
140 public void setAccessionId(
\r
141 final java.lang.String accessionId) {
\r
142 this._accessionId = accessionId;
\r
146 * Sets the value of field 'source'.
\r
148 * @param source the value of field 'source'.
\r
150 public void setSource(
\r
151 final java.lang.String source) {
\r
152 this._source = source;
\r
156 * Sets the value of field 'version'.
\r
158 * @param version the value of field 'version'.
\r
160 public void setVersion(
\r
161 final java.lang.String version) {
\r
162 this._version = version;
\r
166 * Method unmarshal.
\r
169 * @throws org.exolab.castor.xml.MarshalException if object is
\r
170 * null or if any SAXException is thrown during marshaling
\r
171 * @throws org.exolab.castor.xml.ValidationException if this
\r
172 * object is an invalid instance according to the schema
\r
173 * @return the unmarshaled jalview.schemabinding.version2.DBRef
\r
175 public static jalview.schemabinding.version2.DBRef unmarshal(
\r
176 final java.io.Reader reader)
\r
177 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
178 return (jalview.schemabinding.version2.DBRef) Unmarshaller.unmarshal(jalview.schemabinding.version2.DBRef.class, reader);
\r
184 * @throws org.exolab.castor.xml.ValidationException if this
\r
185 * object is an invalid instance according to the schema
\r
187 public void validate(
\r
189 throws org.exolab.castor.xml.ValidationException {
\r
190 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
191 validator.validate(this);
\r