fixes JAL-778 - flag to indicate binding between an alignment panel and Jmol view...
[jalview.git] / src / jalview / schemabinding / version2 / Mapping.java
1 /*\r
2  * This class was automatically generated with \r
3  * <a href="http://www.castor.org">Castor 1.1</a>, using an XML\r
4  * Schema.\r
5  * $Id$\r
6  */\r
7 \r
8 package jalview.schemabinding.version2;\r
9 \r
10   //---------------------------------/\r
11  //- Imported classes and packages -/\r
12 //---------------------------------/\r
13 \r
14 import org.exolab.castor.xml.Marshaller;\r
15 import org.exolab.castor.xml.Unmarshaller;\r
16 \r
17 /**\r
18  * Class Mapping.\r
19  * \r
20  * @version $Revision$ $Date$\r
21  */\r
22 public class Mapping extends jalview.schemabinding.version2.MapListType \r
23 implements java.io.Serializable\r
24 {\r
25 \r
26 \r
27       //--------------------------/\r
28      //- Class/Member Variables -/\r
29     //--------------------------/\r
30 \r
31     /**\r
32      * Internal choice value storage\r
33      */\r
34     private java.lang.Object _choiceValue;\r
35 \r
36     /**\r
37      * Field _mappingChoice.\r
38      */\r
39     private jalview.schemabinding.version2.MappingChoice _mappingChoice;\r
40 \r
41 \r
42       //----------------/\r
43      //- Constructors -/\r
44     //----------------/\r
45 \r
46     public Mapping() {\r
47         super();\r
48     }\r
49 \r
50 \r
51       //-----------/\r
52      //- Methods -/\r
53     //-----------/\r
54 \r
55     /**\r
56      * Returns the value of field 'choiceValue'. The field\r
57      * 'choiceValue' has the following description: Internal choice\r
58      * value storage\r
59      * \r
60      * @return the value of field 'ChoiceValue'.\r
61      */\r
62     public java.lang.Object getChoiceValue(\r
63     ) {\r
64         return this._choiceValue;\r
65     }\r
66 \r
67     /**\r
68      * Returns the value of field 'mappingChoice'.\r
69      * \r
70      * @return the value of field 'MappingChoice'.\r
71      */\r
72     public jalview.schemabinding.version2.MappingChoice getMappingChoice(\r
73     ) {\r
74         return this._mappingChoice;\r
75     }\r
76 \r
77     /**\r
78      * Method isValid.\r
79      * \r
80      * @return true if this object is valid according to the schema\r
81      */\r
82     public boolean isValid(\r
83     ) {\r
84         try {\r
85             validate();\r
86         } catch (org.exolab.castor.xml.ValidationException vex) {\r
87             return false;\r
88         }\r
89         return true;\r
90     }\r
91 \r
92     /**\r
93      * \r
94      * \r
95      * @param out\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
100      */\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
105     }\r
106 \r
107     /**\r
108      * \r
109      * \r
110      * @param handler\r
111      * @throws java.io.IOException if an IOException occurs during\r
112      * marshaling\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
117      */\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
122     }\r
123 \r
124     /**\r
125      * Sets the value of field 'mappingChoice'.\r
126      * \r
127      * @param mappingChoice the value of field 'mappingChoice'.\r
128      */\r
129     public void setMappingChoice(\r
130             final jalview.schemabinding.version2.MappingChoice mappingChoice) {\r
131         this._mappingChoice = mappingChoice;\r
132         this._choiceValue = mappingChoice;\r
133     }\r
134 \r
135     /**\r
136      * Method unmarshal.\r
137      * \r
138      * @param reader\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
145      */\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
150     }\r
151 \r
152     /**\r
153      * \r
154      * \r
155      * @throws org.exolab.castor.xml.ValidationException if this\r
156      * object is an invalid instance according to the schema\r
157      */\r
158     public void validate(\r
159     )\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
163     }\r
164 \r
165 }\r