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
20 * @version $Revision$ $Date$
\r
22 public class Mapping extends jalview.schemabinding.version2.MapListType
\r
23 implements java.io.Serializable
\r
27 //--------------------------/
\r
28 //- Class/Member Variables -/
\r
29 //--------------------------/
\r
32 * Internal choice value storage
\r
34 private java.lang.Object _choiceValue;
\r
37 * Field _mappingChoice.
\r
39 private jalview.schemabinding.version2.MappingChoice _mappingChoice;
\r
56 * Returns the value of field 'choiceValue'. The field
\r
57 * 'choiceValue' has the following description: Internal choice
\r
60 * @return the value of field 'ChoiceValue'.
\r
62 public java.lang.Object getChoiceValue(
\r
64 return this._choiceValue;
\r
68 * Returns the value of field 'mappingChoice'.
\r
70 * @return the value of field 'MappingChoice'.
\r
72 public jalview.schemabinding.version2.MappingChoice getMappingChoice(
\r
74 return this._mappingChoice;
\r
80 * @return true if this object is valid according to the schema
\r
82 public boolean isValid(
\r
86 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
96 * @throws org.exolab.castor.xml.MarshalException if object is
\r
97 * null or if any SAXException is thrown during marshaling
\r
98 * @throws org.exolab.castor.xml.ValidationException if this
\r
99 * object is an invalid instance according to the schema
\r
101 public void marshal(
\r
102 final java.io.Writer out)
\r
103 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
104 Marshaller.marshal(this, out);
\r
111 * @throws java.io.IOException if an IOException occurs during
\r
113 * @throws org.exolab.castor.xml.ValidationException if this
\r
114 * object is an invalid instance according to the schema
\r
115 * @throws org.exolab.castor.xml.MarshalException if object is
\r
116 * null or if any SAXException is thrown during marshaling
\r
118 public void marshal(
\r
119 final org.xml.sax.ContentHandler handler)
\r
120 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
121 Marshaller.marshal(this, handler);
\r
125 * Sets the value of field 'mappingChoice'.
\r
127 * @param mappingChoice the value of field 'mappingChoice'.
\r
129 public void setMappingChoice(
\r
130 final jalview.schemabinding.version2.MappingChoice mappingChoice) {
\r
131 this._mappingChoice = mappingChoice;
\r
132 this._choiceValue = mappingChoice;
\r
136 * Method unmarshal.
\r
139 * @throws org.exolab.castor.xml.MarshalException if object is
\r
140 * null or if any SAXException is thrown during marshaling
\r
141 * @throws org.exolab.castor.xml.ValidationException if this
\r
142 * object is an invalid instance according to the schema
\r
143 * @return the unmarshaled
\r
144 * jalview.schemabinding.version2.MapListType
\r
146 public static jalview.schemabinding.version2.MapListType unmarshal(
\r
147 final java.io.Reader reader)
\r
148 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
149 return (jalview.schemabinding.version2.MapListType) Unmarshaller.unmarshal(jalview.schemabinding.version2.Mapping.class, reader);
\r
155 * @throws org.exolab.castor.xml.ValidationException if this
\r
156 * object is an invalid instance according to the schema
\r
158 public void validate(
\r
160 throws org.exolab.castor.xml.ValidationException {
\r
161 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
162 validator.validate(this);
\r