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