1 /*******************************************************************************
2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $(date) The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
20 *******************************************************************************/
22 * This class was automatically generated with
23 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
28 package jalview.schemabinding.version2;
30 //---------------------------------/
31 //- Imported classes and packages -/
32 //---------------------------------/
34 import org.exolab.castor.xml.Marshaller;
35 import org.exolab.castor.xml.Unmarshaller;
38 * Class MappingChoice.
40 * @version $Revision$ $Date$
42 public class MappingChoice implements java.io.Serializable
45 // --------------------------/
46 // - Class/Member Variables -/
47 // --------------------------/
52 private jalview.schemabinding.version2.Sequence _sequence;
57 private java.lang.String _dseqFor;
63 public MappingChoice()
73 * Returns the value of field 'dseqFor'.
75 * @return the value of field 'DseqFor'.
77 public java.lang.String getDseqFor()
83 * Returns the value of field 'sequence'.
85 * @return the value of field 'Sequence'.
87 public jalview.schemabinding.version2.Sequence getSequence()
89 return this._sequence;
95 * @return true if this object is valid according to the schema
97 public boolean isValid()
102 } catch (org.exolab.castor.xml.ValidationException vex)
113 * @throws org.exolab.castor.xml.MarshalException
114 * if object is null or if any SAXException is thrown during
116 * @throws org.exolab.castor.xml.ValidationException
117 * if this object is an invalid instance according to the schema
119 public void marshal(final java.io.Writer out)
120 throws org.exolab.castor.xml.MarshalException,
121 org.exolab.castor.xml.ValidationException
123 Marshaller.marshal(this, out);
130 * @throws java.io.IOException
131 * if an IOException occurs during marshaling
132 * @throws org.exolab.castor.xml.ValidationException
133 * if this object is an invalid instance according to the schema
134 * @throws org.exolab.castor.xml.MarshalException
135 * if object is null or if any SAXException is thrown during
138 public void marshal(final org.xml.sax.ContentHandler handler)
139 throws java.io.IOException,
140 org.exolab.castor.xml.MarshalException,
141 org.exolab.castor.xml.ValidationException
143 Marshaller.marshal(this, handler);
147 * Sets the value of field 'dseqFor'.
150 * the value of field 'dseqFor'.
152 public void setDseqFor(final java.lang.String dseqFor)
154 this._dseqFor = dseqFor;
158 * Sets the value of field 'sequence'.
161 * the value of field 'sequence'.
163 public void setSequence(
164 final jalview.schemabinding.version2.Sequence sequence)
166 this._sequence = sequence;
173 * @throws org.exolab.castor.xml.MarshalException
174 * if object is null or if any SAXException is thrown during
176 * @throws org.exolab.castor.xml.ValidationException
177 * if this object is an invalid instance according to the schema
178 * @return the unmarshaled jalview.schemabinding.version2.MappingChoice
180 public static jalview.schemabinding.version2.MappingChoice unmarshal(
181 final java.io.Reader reader)
182 throws org.exolab.castor.xml.MarshalException,
183 org.exolab.castor.xml.ValidationException
185 return (jalview.schemabinding.version2.MappingChoice) Unmarshaller
186 .unmarshal(jalview.schemabinding.version2.MappingChoice.class,
193 * @throws org.exolab.castor.xml.ValidationException
194 * if this object is an invalid instance according to the schema
196 public void validate() throws org.exolab.castor.xml.ValidationException
198 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
199 validator.validate(this);