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 AlcodMap implements java.io.Serializable {
\r
25 //--------------------------/
\r
26 //- Class/Member Variables -/
\r
27 //--------------------------/
\r
30 * internal jalview id for the dnasq for this mapping.
\r
33 private java.lang.String _dnasq;
\r
36 * a Mapping entry and an associated protein sequence
\r
39 private jalview.schemabinding.version2.Mapping _mapping;
\r
56 * Returns the value of field 'dnasq'. The field 'dnasq' has
\r
57 * the following description: internal jalview id for the dnasq
\r
61 * @return the value of field 'Dnasq'.
\r
63 public java.lang.String getDnasq(
\r
69 * Returns the value of field 'mapping'. The field 'mapping'
\r
70 * has the following description: a Mapping entry and an
\r
71 * associated protein sequence
\r
74 * @return the value of field 'Mapping'.
\r
76 public jalview.schemabinding.version2.Mapping getMapping(
\r
78 return this._mapping;
\r
84 * @return true if this object is valid according to the schema
\r
86 public boolean isValid(
\r
90 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
100 * @throws org.exolab.castor.xml.MarshalException if object is
\r
101 * null or if any SAXException is thrown during marshaling
\r
102 * @throws org.exolab.castor.xml.ValidationException if this
\r
103 * object is an invalid instance according to the schema
\r
105 public void marshal(
\r
106 final java.io.Writer out)
\r
107 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
108 Marshaller.marshal(this, out);
\r
115 * @throws java.io.IOException if an IOException occurs during
\r
117 * @throws org.exolab.castor.xml.ValidationException if this
\r
118 * object is an invalid instance according to the schema
\r
119 * @throws org.exolab.castor.xml.MarshalException if object is
\r
120 * null or if any SAXException is thrown during marshaling
\r
122 public void marshal(
\r
123 final org.xml.sax.ContentHandler handler)
\r
124 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
125 Marshaller.marshal(this, handler);
\r
129 * Sets the value of field 'dnasq'. The field 'dnasq' has the
\r
130 * following description: internal jalview id for the dnasq for
\r
134 * @param dnasq the value of field 'dnasq'.
\r
136 public void setDnasq(
\r
137 final java.lang.String dnasq) {
\r
138 this._dnasq = dnasq;
\r
142 * Sets the value of field 'mapping'. The field 'mapping' has
\r
143 * the following description: a Mapping entry and an associated
\r
147 * @param mapping the value of field 'mapping'.
\r
149 public void setMapping(
\r
150 final jalview.schemabinding.version2.Mapping mapping) {
\r
151 this._mapping = mapping;
\r
155 * Method unmarshal.
\r
158 * @throws org.exolab.castor.xml.MarshalException if object is
\r
159 * null or if any SAXException is thrown during marshaling
\r
160 * @throws org.exolab.castor.xml.ValidationException if this
\r
161 * object is an invalid instance according to the schema
\r
162 * @return the unmarshaled
\r
163 * jalview.schemabinding.version2.AlcodMap
\r
165 public static jalview.schemabinding.version2.AlcodMap unmarshal(
\r
166 final java.io.Reader reader)
\r
167 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
168 return (jalview.schemabinding.version2.AlcodMap) Unmarshaller.unmarshal(jalview.schemabinding.version2.AlcodMap.class, reader);
\r
174 * @throws org.exolab.castor.xml.ValidationException if this
\r
175 * object is an invalid instance according to the schema
\r
177 public void validate(
\r
179 throws org.exolab.castor.xml.ValidationException {
\r
180 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
181 validator.validate(this);
\r