Merge branch 'bug/JAL-2846' into develop
[jalview.git] / src / jalview / schemabinding / version2 / OtherData.java
1 /*
2  * This class was automatically generated with 
3  * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
4  * Schema.
5  * $Id$
6  */
7
8 package jalview.schemabinding.version2;
9
10   //---------------------------------/
11  //- Imported classes and packages -/
12 //---------------------------------/
13
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
16
17 /**
18  * Class OtherData.
19  * 
20  * @version $Revision$ $Date$
21  */
22 public class OtherData implements java.io.Serializable {
23
24
25       //--------------------------/
26      //- Class/Member Variables -/
27     //--------------------------/
28
29     /**
30      * Field _key.
31      */
32     private java.lang.String _key;
33
34     /**
35      * key2 may be used for a sub-attribute of key
36      */
37     private java.lang.String _key2;
38
39     /**
40      * Field _value.
41      */
42     private java.lang.String _value;
43
44
45       //----------------/
46      //- Constructors -/
47     //----------------/
48
49     public OtherData() {
50         super();
51     }
52
53
54       //-----------/
55      //- Methods -/
56     //-----------/
57
58     /**
59      * Returns the value of field 'key'.
60      * 
61      * @return the value of field 'Key'.
62      */
63     public java.lang.String getKey(
64     ) {
65         return this._key;
66     }
67
68     /**
69      * Returns the value of field 'key2'. The field 'key2' has the
70      * following description: key2 may be used for a sub-attribute
71      * of key
72      * 
73      * @return the value of field 'Key2'.
74      */
75     public java.lang.String getKey2(
76     ) {
77         return this._key2;
78     }
79
80     /**
81      * Returns the value of field 'value'.
82      * 
83      * @return the value of field 'Value'.
84      */
85     public java.lang.String getValue(
86     ) {
87         return this._value;
88     }
89
90     /**
91      * Method isValid.
92      * 
93      * @return true if this object is valid according to the schema
94      */
95     public boolean isValid(
96     ) {
97         try {
98             validate();
99         } catch (org.exolab.castor.xml.ValidationException vex) {
100             return false;
101         }
102         return true;
103     }
104
105     /**
106      * 
107      * 
108      * @param out
109      * @throws org.exolab.castor.xml.MarshalException if object is
110      * null or if any SAXException is thrown during marshaling
111      * @throws org.exolab.castor.xml.ValidationException if this
112      * object is an invalid instance according to the schema
113      */
114     public void marshal(
115             final java.io.Writer out)
116     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
117         Marshaller.marshal(this, out);
118     }
119
120     /**
121      * 
122      * 
123      * @param handler
124      * @throws java.io.IOException if an IOException occurs during
125      * marshaling
126      * @throws org.exolab.castor.xml.ValidationException if this
127      * object is an invalid instance according to the schema
128      * @throws org.exolab.castor.xml.MarshalException if object is
129      * null or if any SAXException is thrown during marshaling
130      */
131     public void marshal(
132             final org.xml.sax.ContentHandler handler)
133     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
134         Marshaller.marshal(this, handler);
135     }
136
137     /**
138      * Sets the value of field 'key'.
139      * 
140      * @param key the value of field 'key'.
141      */
142     public void setKey(
143             final java.lang.String key) {
144         this._key = key;
145     }
146
147     /**
148      * Sets the value of field 'key2'. The field 'key2' has the
149      * following description: key2 may be used for a sub-attribute
150      * of key
151      * 
152      * @param key2 the value of field 'key2'.
153      */
154     public void setKey2(
155             final java.lang.String key2) {
156         this._key2 = key2;
157     }
158
159     /**
160      * Sets the value of field 'value'.
161      * 
162      * @param value the value of field 'value'.
163      */
164     public void setValue(
165             final java.lang.String value) {
166         this._value = value;
167     }
168
169     /**
170      * Method unmarshal.
171      * 
172      * @param reader
173      * @throws org.exolab.castor.xml.MarshalException if object is
174      * null or if any SAXException is thrown during marshaling
175      * @throws org.exolab.castor.xml.ValidationException if this
176      * object is an invalid instance according to the schema
177      * @return the unmarshaled
178      * jalview.schemabinding.version2.OtherData
179      */
180     public static jalview.schemabinding.version2.OtherData unmarshal(
181             final java.io.Reader reader)
182     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
183         return (jalview.schemabinding.version2.OtherData) Unmarshaller.unmarshal(jalview.schemabinding.version2.OtherData.class, reader);
184     }
185
186     /**
187      * 
188      * 
189      * @throws org.exolab.castor.xml.ValidationException if this
190      * object is an invalid instance according to the schema
191      */
192     public void validate(
193     )
194     throws org.exolab.castor.xml.ValidationException {
195         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
196         validator.validate(this);
197     }
198
199 }