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
26 // --------------------------/
27 // - Class/Member Variables -/
28 // --------------------------/
31 * Internal choice value storage
33 private java.lang.Object _choiceValue;
36 * Field _mappingChoice.
38 private jalview.schemabinding.version2.MappingChoice _mappingChoice;
54 * Returns the value of field 'choiceValue'. The field 'choiceValue' has the
55 * following description: Internal choice value storage
57 * @return the value of field 'ChoiceValue'.
59 public java.lang.Object getChoiceValue()
61 return this._choiceValue;
65 * Returns the value of field 'mappingChoice'.
67 * @return the value of field 'MappingChoice'.
69 public jalview.schemabinding.version2.MappingChoice getMappingChoice()
71 return this._mappingChoice;
77 * @return true if this object is valid according to the schema
79 public boolean isValid()
84 } catch (org.exolab.castor.xml.ValidationException vex)
95 * @throws org.exolab.castor.xml.MarshalException
96 * if object is null or if any SAXException is thrown during
98 * @throws org.exolab.castor.xml.ValidationException
99 * if this object is an invalid instance according to the schema
101 public void marshal(final java.io.Writer out)
102 throws org.exolab.castor.xml.MarshalException,
103 org.exolab.castor.xml.ValidationException
105 Marshaller.marshal(this, out);
112 * @throws java.io.IOException
113 * if an IOException occurs during marshaling
114 * @throws org.exolab.castor.xml.ValidationException
115 * if this object is an invalid instance according to the schema
116 * @throws org.exolab.castor.xml.MarshalException
117 * if object is null or if any SAXException is thrown during
120 public void marshal(final org.xml.sax.ContentHandler handler)
121 throws java.io.IOException,
122 org.exolab.castor.xml.MarshalException,
123 org.exolab.castor.xml.ValidationException
125 Marshaller.marshal(this, handler);
129 * Sets the value of field 'mappingChoice'.
131 * @param mappingChoice
132 * the value of field 'mappingChoice'.
134 public void setMappingChoice(
135 final jalview.schemabinding.version2.MappingChoice mappingChoice)
137 this._mappingChoice = mappingChoice;
138 this._choiceValue = mappingChoice;
145 * @throws org.exolab.castor.xml.MarshalException
146 * if object is null or if any SAXException is thrown during
148 * @throws org.exolab.castor.xml.ValidationException
149 * if this object is an invalid instance according to the schema
150 * @return the unmarshaled jalview.schemabinding.version2.MapListType
152 public static jalview.schemabinding.version2.MapListType unmarshal(
153 final java.io.Reader reader)
154 throws org.exolab.castor.xml.MarshalException,
155 org.exolab.castor.xml.ValidationException
157 return (jalview.schemabinding.version2.MapListType) Unmarshaller
158 .unmarshal(jalview.schemabinding.version2.Mapping.class, reader);
164 * @throws org.exolab.castor.xml.ValidationException
165 * if this object is an invalid instance according to the schema
167 public void validate() throws org.exolab.castor.xml.ValidationException
169 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
170 validator.validate(this);