2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.schemabinding.version2;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
20 * @version $Revision$ $Date$
22 public class DBRef implements java.io.Serializable {
25 //--------------------------/
26 //- Class/Member Variables -/
27 //--------------------------/
32 private java.lang.String _source;
37 private java.lang.String _version;
42 private java.lang.String _accessionId;
47 private jalview.schemabinding.version2.Mapping _mapping;
64 * Returns the value of field 'accessionId'.
66 * @return the value of field 'AccessionId'.
68 public java.lang.String getAccessionId(
70 return this._accessionId;
74 * Returns the value of field 'mapping'.
76 * @return the value of field 'Mapping'.
78 public jalview.schemabinding.version2.Mapping getMapping(
84 * Returns the value of field 'source'.
86 * @return the value of field 'Source'.
88 public java.lang.String getSource(
94 * Returns the value of field 'version'.
96 * @return the value of field 'Version'.
98 public java.lang.String getVersion(
100 return this._version;
106 * @return true if this object is valid according to the schema
108 public boolean isValid(
112 } catch (org.exolab.castor.xml.ValidationException vex) {
122 * @throws org.exolab.castor.xml.MarshalException if object is
123 * null or if any SAXException is thrown during marshaling
124 * @throws org.exolab.castor.xml.ValidationException if this
125 * object is an invalid instance according to the schema
128 final java.io.Writer out)
129 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
130 Marshaller.marshal(this, out);
137 * @throws java.io.IOException if an IOException occurs during
139 * @throws org.exolab.castor.xml.ValidationException if this
140 * object is an invalid instance according to the schema
141 * @throws org.exolab.castor.xml.MarshalException if object is
142 * null or if any SAXException is thrown during marshaling
145 final org.xml.sax.ContentHandler handler)
146 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
147 Marshaller.marshal(this, handler);
151 * Sets the value of field 'accessionId'.
153 * @param accessionId the value of field 'accessionId'.
155 public void setAccessionId(
156 final java.lang.String accessionId) {
157 this._accessionId = accessionId;
161 * Sets the value of field 'mapping'.
163 * @param mapping the value of field 'mapping'.
165 public void setMapping(
166 final jalview.schemabinding.version2.Mapping mapping) {
167 this._mapping = mapping;
171 * Sets the value of field 'source'.
173 * @param source the value of field 'source'.
175 public void setSource(
176 final java.lang.String source) {
177 this._source = source;
181 * Sets the value of field 'version'.
183 * @param version the value of field 'version'.
185 public void setVersion(
186 final java.lang.String version) {
187 this._version = version;
194 * @throws org.exolab.castor.xml.MarshalException if object is
195 * null or if any SAXException is thrown during marshaling
196 * @throws org.exolab.castor.xml.ValidationException if this
197 * object is an invalid instance according to the schema
198 * @return the unmarshaled jalview.schemabinding.version2.DBRef
200 public static jalview.schemabinding.version2.DBRef unmarshal(
201 final java.io.Reader reader)
202 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
203 return (jalview.schemabinding.version2.DBRef) Unmarshaller.unmarshal(jalview.schemabinding.version2.DBRef.class, reader);
209 * @throws org.exolab.castor.xml.ValidationException if this
210 * object is an invalid instance according to the schema
212 public void validate(
214 throws org.exolab.castor.xml.ValidationException {
215 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
216 validator.validate(this);