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