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