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;
63 * Returns the value of field 'accessionId'.
65 * @return the value of field 'AccessionId'.
67 public java.lang.String getAccessionId()
69 return this._accessionId;
73 * Returns the value of field 'mapping'.
75 * @return the value of field 'Mapping'.
77 public jalview.schemabinding.version2.Mapping getMapping()
83 * Returns the value of field 'source'.
85 * @return the value of field 'Source'.
87 public java.lang.String getSource()
93 * Returns the value of field 'version'.
95 * @return the value of field 'Version'.
97 public java.lang.String getVersion()
105 * @return true if this object is valid according to the schema
107 public boolean isValid()
112 } catch (org.exolab.castor.xml.ValidationException vex)
123 * @throws org.exolab.castor.xml.MarshalException
124 * if object is null or if any SAXException is thrown during
126 * @throws org.exolab.castor.xml.ValidationException
127 * if this object is an invalid instance according to the schema
129 public void marshal(final java.io.Writer out)
130 throws org.exolab.castor.xml.MarshalException,
131 org.exolab.castor.xml.ValidationException
133 Marshaller.marshal(this, out);
140 * @throws java.io.IOException
141 * if an IOException occurs during marshaling
142 * @throws org.exolab.castor.xml.ValidationException
143 * if this object is an invalid instance according to the schema
144 * @throws org.exolab.castor.xml.MarshalException
145 * if object is null or if any SAXException is thrown during
148 public void marshal(final org.xml.sax.ContentHandler handler)
149 throws java.io.IOException,
150 org.exolab.castor.xml.MarshalException,
151 org.exolab.castor.xml.ValidationException
153 Marshaller.marshal(this, handler);
157 * Sets the value of field 'accessionId'.
160 * the value of field 'accessionId'.
162 public void setAccessionId(final java.lang.String accessionId)
164 this._accessionId = accessionId;
168 * Sets the value of field 'mapping'.
171 * the value of field 'mapping'.
173 public void setMapping(
174 final jalview.schemabinding.version2.Mapping mapping)
176 this._mapping = mapping;
180 * Sets the value of field 'source'.
183 * the value of field 'source'.
185 public void setSource(final java.lang.String source)
187 this._source = source;
191 * Sets the value of field 'version'.
194 * the value of field 'version'.
196 public void setVersion(final java.lang.String version)
198 this._version = version;
205 * @throws org.exolab.castor.xml.MarshalException
206 * if object is null or if any SAXException is thrown during
208 * @throws org.exolab.castor.xml.ValidationException
209 * if this object is an invalid instance according to the schema
210 * @return the unmarshaled jalview.schemabinding.version2.DBRef
212 public static jalview.schemabinding.version2.DBRef unmarshal(
213 final java.io.Reader reader)
214 throws org.exolab.castor.xml.MarshalException,
215 org.exolab.castor.xml.ValidationException
217 return (jalview.schemabinding.version2.DBRef) Unmarshaller.unmarshal(
218 jalview.schemabinding.version2.DBRef.class, reader);
224 * @throws org.exolab.castor.xml.ValidationException
225 * if this object is an invalid instance according to the schema
227 public void validate() throws org.exolab.castor.xml.ValidationException
229 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
230 validator.validate(this);