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;
55 * Returns the value of field 'dnasq'. The field 'dnasq' has the following
56 * description: internal jalview id for the dnasq for this mapping.
59 * @return the value of field 'Dnasq'.
61 public java.lang.String getDnasq()
67 * Returns the value of field 'mapping'. The field 'mapping' has the following
68 * description: a Mapping entry and an associated protein sequence
71 * @return the value of field 'Mapping'.
73 public jalview.schemabinding.version2.Mapping getMapping()
81 * @return true if this object is valid according to the schema
83 public boolean isValid()
88 } catch (org.exolab.castor.xml.ValidationException vex)
99 * @throws org.exolab.castor.xml.MarshalException
100 * if object is null or if any SAXException is thrown during
102 * @throws org.exolab.castor.xml.ValidationException
103 * if this object is an invalid instance according to the schema
105 public void marshal(final java.io.Writer out)
106 throws org.exolab.castor.xml.MarshalException,
107 org.exolab.castor.xml.ValidationException
109 Marshaller.marshal(this, out);
116 * @throws java.io.IOException
117 * if an IOException occurs during marshaling
118 * @throws org.exolab.castor.xml.ValidationException
119 * if this object is an invalid instance according to the schema
120 * @throws org.exolab.castor.xml.MarshalException
121 * if object is null or if any SAXException is thrown during
124 public void marshal(final org.xml.sax.ContentHandler handler)
125 throws java.io.IOException,
126 org.exolab.castor.xml.MarshalException,
127 org.exolab.castor.xml.ValidationException
129 Marshaller.marshal(this, handler);
133 * Sets the value of field 'dnasq'. The field 'dnasq' has the following
134 * description: internal jalview id for the dnasq for this mapping.
138 * the value of field 'dnasq'.
140 public void setDnasq(final java.lang.String dnasq)
146 * Sets the value of field 'mapping'. The field 'mapping' has the following
147 * description: a Mapping entry and an associated protein sequence
151 * the value of field 'mapping'.
153 public void setMapping(
154 final jalview.schemabinding.version2.Mapping mapping)
156 this._mapping = mapping;
163 * @throws org.exolab.castor.xml.MarshalException
164 * if object is null or if any SAXException is thrown during
166 * @throws org.exolab.castor.xml.ValidationException
167 * if this object is an invalid instance according to the schema
168 * @return the unmarshaled jalview.schemabinding.version2.AlcodMap
170 public static jalview.schemabinding.version2.AlcodMap unmarshal(
171 final java.io.Reader reader)
172 throws org.exolab.castor.xml.MarshalException,
173 org.exolab.castor.xml.ValidationException
175 return (jalview.schemabinding.version2.AlcodMap) Unmarshaller
176 .unmarshal(jalview.schemabinding.version2.AlcodMap.class,
183 * @throws org.exolab.castor.xml.ValidationException
184 * if this object is an invalid instance according to the schema
186 public void validate() throws org.exolab.castor.xml.ValidationException
188 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
189 validator.validate(this);