1 /*******************************************************************************
2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $(date) The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
20 *******************************************************************************/
22 * This class was automatically generated with
23 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
28 package jalview.schemabinding.version2;
30 //---------------------------------/
31 //- Imported classes and packages -/
32 //---------------------------------/
34 import org.exolab.castor.xml.Marshaller;
35 import org.exolab.castor.xml.Unmarshaller;
40 * @version $Revision$ $Date$
42 public class OtherData implements java.io.Serializable
45 // --------------------------/
46 // - Class/Member Variables -/
47 // --------------------------/
52 private java.lang.String _key;
57 private java.lang.String _value;
73 * Returns the value of field 'key'.
75 * @return the value of field 'Key'.
77 public java.lang.String getKey()
83 * Returns the value of field 'value'.
85 * @return the value of field 'Value'.
87 public java.lang.String getValue()
95 * @return true if this object is valid according to the schema
97 public boolean isValid()
102 } catch (org.exolab.castor.xml.ValidationException vex)
113 * @throws org.exolab.castor.xml.MarshalException
114 * if object is null or if any SAXException is thrown during
116 * @throws org.exolab.castor.xml.ValidationException
117 * if this object is an invalid instance according to the schema
119 public void marshal(final java.io.Writer out)
120 throws org.exolab.castor.xml.MarshalException,
121 org.exolab.castor.xml.ValidationException
123 Marshaller.marshal(this, out);
130 * @throws java.io.IOException
131 * if an IOException occurs during marshaling
132 * @throws org.exolab.castor.xml.ValidationException
133 * if this object is an invalid instance according to the schema
134 * @throws org.exolab.castor.xml.MarshalException
135 * if object is null or if any SAXException is thrown during
138 public void marshal(final org.xml.sax.ContentHandler handler)
139 throws java.io.IOException,
140 org.exolab.castor.xml.MarshalException,
141 org.exolab.castor.xml.ValidationException
143 Marshaller.marshal(this, handler);
147 * Sets the value of field 'key'.
150 * the value of field 'key'.
152 public void setKey(final java.lang.String key)
158 * Sets the value of field 'value'.
161 * the value of field 'value'.
163 public void setValue(final java.lang.String value)
172 * @throws org.exolab.castor.xml.MarshalException
173 * if object is null or if any SAXException is thrown during
175 * @throws org.exolab.castor.xml.ValidationException
176 * if this object is an invalid instance according to the schema
177 * @return the unmarshaled jalview.schemabinding.version2.OtherData
179 public static jalview.schemabinding.version2.OtherData unmarshal(
180 final java.io.Reader reader)
181 throws org.exolab.castor.xml.MarshalException,
182 org.exolab.castor.xml.ValidationException
184 return (jalview.schemabinding.version2.OtherData) Unmarshaller
185 .unmarshal(jalview.schemabinding.version2.OtherData.class,
192 * @throws org.exolab.castor.xml.ValidationException
193 * if this object is an invalid instance according to the schema
195 public void validate() throws org.exolab.castor.xml.ValidationException
197 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
198 validator.validate(this);