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
47 private jalview.schemabinding.version2.Mapping _mapping;
\r
64 * Returns the value of field 'accessionId'.
\r
66 * @return the value of field 'AccessionId'.
\r
68 public java.lang.String getAccessionId(
\r
70 return this._accessionId;
\r
74 * Returns the value of field 'mapping'.
\r
76 * @return the value of field 'Mapping'.
\r
78 public jalview.schemabinding.version2.Mapping getMapping(
\r
80 return this._mapping;
\r
84 * Returns the value of field 'source'.
\r
86 * @return the value of field 'Source'.
\r
88 public java.lang.String getSource(
\r
90 return this._source;
\r
94 * Returns the value of field 'version'.
\r
96 * @return the value of field 'Version'.
\r
98 public java.lang.String getVersion(
\r
100 return this._version;
\r
106 * @return true if this object is valid according to the schema
\r
108 public boolean isValid(
\r
112 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
122 * @throws org.exolab.castor.xml.MarshalException if object is
\r
123 * null or if any SAXException is thrown during marshaling
\r
124 * @throws org.exolab.castor.xml.ValidationException if this
\r
125 * object is an invalid instance according to the schema
\r
127 public void marshal(
\r
128 final java.io.Writer out)
\r
129 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
130 Marshaller.marshal(this, out);
\r
137 * @throws java.io.IOException if an IOException occurs during
\r
139 * @throws org.exolab.castor.xml.ValidationException if this
\r
140 * object is an invalid instance according to the schema
\r
141 * @throws org.exolab.castor.xml.MarshalException if object is
\r
142 * null or if any SAXException is thrown during marshaling
\r
144 public void marshal(
\r
145 final org.xml.sax.ContentHandler handler)
\r
146 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
147 Marshaller.marshal(this, handler);
\r
151 * Sets the value of field 'accessionId'.
\r
153 * @param accessionId the value of field 'accessionId'.
\r
155 public void setAccessionId(
\r
156 final java.lang.String accessionId) {
\r
157 this._accessionId = accessionId;
\r
161 * Sets the value of field 'mapping'.
\r
163 * @param mapping the value of field 'mapping'.
\r
165 public void setMapping(
\r
166 final jalview.schemabinding.version2.Mapping mapping) {
\r
167 this._mapping = mapping;
\r
171 * Sets the value of field 'source'.
\r
173 * @param source the value of field 'source'.
\r
175 public void setSource(
\r
176 final java.lang.String source) {
\r
177 this._source = source;
\r
181 * Sets the value of field 'version'.
\r
183 * @param version the value of field 'version'.
\r
185 public void setVersion(
\r
186 final java.lang.String version) {
\r
187 this._version = version;
\r
191 * Method unmarshal.
\r
194 * @throws org.exolab.castor.xml.MarshalException if object is
\r
195 * null or if any SAXException is thrown during marshaling
\r
196 * @throws org.exolab.castor.xml.ValidationException if this
\r
197 * object is an invalid instance according to the schema
\r
198 * @return the unmarshaled jalview.schemabinding.version2.DBRef
\r
200 public static jalview.schemabinding.version2.DBRef unmarshal(
\r
201 final java.io.Reader reader)
\r
202 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
203 return (jalview.schemabinding.version2.DBRef) Unmarshaller.unmarshal(jalview.schemabinding.version2.DBRef.class, reader);
\r
209 * @throws org.exolab.castor.xml.ValidationException if this
\r
210 * object is an invalid instance according to the schema
\r
212 public void validate(
\r
214 throws org.exolab.castor.xml.ValidationException {
\r
215 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
216 validator.validate(this);
\r