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 OtherData implements java.io.Serializable {
25 //--------------------------/
26 //- Class/Member Variables -/
27 //--------------------------/
32 private java.lang.String _key;
35 * key2 may be used for a sub-attribute of key
37 private java.lang.String _key2;
42 private java.lang.String _value;
59 * Returns the value of field 'key'.
61 * @return the value of field 'Key'.
63 public java.lang.String getKey(
69 * Returns the value of field 'key2'. The field 'key2' has the
70 * following description: key2 may be used for a sub-attribute
73 * @return the value of field 'Key2'.
75 public java.lang.String getKey2(
81 * Returns the value of field 'value'.
83 * @return the value of field 'Value'.
85 public java.lang.String getValue(
93 * @return true if this object is valid according to the schema
95 public boolean isValid(
99 } catch (org.exolab.castor.xml.ValidationException vex) {
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
115 final java.io.Writer out)
116 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
117 Marshaller.marshal(this, out);
124 * @throws java.io.IOException if an IOException occurs during
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
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);
138 * Sets the value of field 'key'.
140 * @param key the value of field 'key'.
143 final java.lang.String key) {
148 * Sets the value of field 'key2'. The field 'key2' has the
149 * following description: key2 may be used for a sub-attribute
152 * @param key2 the value of field 'key2'.
155 final java.lang.String key2) {
160 * Sets the value of field 'value'.
162 * @param value the value of field 'value'.
164 public void setValue(
165 final java.lang.String value) {
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
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);
189 * @throws org.exolab.castor.xml.ValidationException if this
190 * object is an invalid instance according to the schema
192 public void validate(
194 throws org.exolab.castor.xml.ValidationException {
195 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
196 validator.validate(this);