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;
18 * Class MappingChoice.
20 * @version $Revision$ $Date$
22 public class MappingChoice implements java.io.Serializable {
25 //--------------------------/
26 //- Class/Member Variables -/
27 //--------------------------/
32 private jalview.schemabinding.version2.Sequence _sequence;
37 private java.lang.String _dseqFor;
44 public MappingChoice() {
54 * Returns the value of field 'dseqFor'.
56 * @return the value of field 'DseqFor'.
58 public java.lang.String getDseqFor(
64 * Returns the value of field 'sequence'.
66 * @return the value of field 'Sequence'.
68 public jalview.schemabinding.version2.Sequence getSequence(
70 return this._sequence;
76 * @return true if this object is valid according to the schema
78 public boolean isValid(
82 } catch (org.exolab.castor.xml.ValidationException vex) {
92 * @throws org.exolab.castor.xml.MarshalException if object is
93 * null or if any SAXException is thrown during marshaling
94 * @throws org.exolab.castor.xml.ValidationException if this
95 * object is an invalid instance according to the schema
98 final java.io.Writer out)
99 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
100 Marshaller.marshal(this, out);
107 * @throws java.io.IOException if an IOException occurs during
109 * @throws org.exolab.castor.xml.ValidationException if this
110 * object is an invalid instance according to the schema
111 * @throws org.exolab.castor.xml.MarshalException if object is
112 * null or if any SAXException is thrown during marshaling
115 final org.xml.sax.ContentHandler handler)
116 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
117 Marshaller.marshal(this, handler);
121 * Sets the value of field 'dseqFor'.
123 * @param dseqFor the value of field 'dseqFor'.
125 public void setDseqFor(
126 final java.lang.String dseqFor) {
127 this._dseqFor = dseqFor;
131 * Sets the value of field 'sequence'.
133 * @param sequence the value of field 'sequence'.
135 public void setSequence(
136 final jalview.schemabinding.version2.Sequence sequence) {
137 this._sequence = sequence;
144 * @throws org.exolab.castor.xml.MarshalException if object is
145 * null or if any SAXException is thrown during marshaling
146 * @throws org.exolab.castor.xml.ValidationException if this
147 * object is an invalid instance according to the schema
148 * @return the unmarshaled
149 * jalview.schemabinding.version2.MappingChoice
151 public static jalview.schemabinding.version2.MappingChoice unmarshal(
152 final java.io.Reader reader)
153 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
154 return (jalview.schemabinding.version2.MappingChoice) Unmarshaller.unmarshal(jalview.schemabinding.version2.MappingChoice.class, reader);
160 * @throws org.exolab.castor.xml.ValidationException if this
161 * object is an invalid instance according to the schema
163 public void validate(
165 throws org.exolab.castor.xml.ValidationException {
166 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
167 validator.validate(this);