1 /*******************************************************************************
2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.1)
3 * Copyright (C) 2014 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 of the License, or (at your option) any later version.
11 * Jalview is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty
13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along with Jalview.
17 * If not, see <http://www.gnu.org/licenses/>.
18 * The Jalview Authors are detailed in the 'AUTHORS' file.
19 ******************************************************************************/
21 * This class was automatically generated with
22 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
27 package jalview.schemabinding.version2;
29 //---------------------------------/
30 //- Imported classes and packages -/
31 //---------------------------------/
33 import org.exolab.castor.xml.Marshaller;
34 import org.exolab.castor.xml.Unmarshaller;
39 * @version $Revision$ $Date$
41 public class AlcodMap implements java.io.Serializable
44 // --------------------------/
45 // - Class/Member Variables -/
46 // --------------------------/
49 * internal jalview id for the dnasq for this mapping.
52 private java.lang.String _dnasq;
55 * a Mapping entry and an associated protein sequence
58 private jalview.schemabinding.version2.Mapping _mapping;
74 * Returns the value of field 'dnasq'. The field 'dnasq' has the following
75 * description: internal jalview id for the dnasq for this mapping.
78 * @return the value of field 'Dnasq'.
80 public java.lang.String getDnasq()
86 * Returns the value of field 'mapping'. The field 'mapping' has the following
87 * description: a Mapping entry and an associated protein sequence
90 * @return the value of field 'Mapping'.
92 public jalview.schemabinding.version2.Mapping getMapping()
100 * @return true if this object is valid according to the schema
102 public boolean isValid()
107 } catch (org.exolab.castor.xml.ValidationException vex)
118 * @throws org.exolab.castor.xml.MarshalException
119 * if object is null or if any SAXException is thrown during
121 * @throws org.exolab.castor.xml.ValidationException
122 * if this object is an invalid instance according to the schema
124 public void marshal(final java.io.Writer out)
125 throws org.exolab.castor.xml.MarshalException,
126 org.exolab.castor.xml.ValidationException
128 Marshaller.marshal(this, out);
135 * @throws java.io.IOException
136 * if an IOException occurs during marshaling
137 * @throws org.exolab.castor.xml.ValidationException
138 * if this object is an invalid instance according to the schema
139 * @throws org.exolab.castor.xml.MarshalException
140 * if object is null or if any SAXException is thrown during
143 public void marshal(final org.xml.sax.ContentHandler handler)
144 throws java.io.IOException,
145 org.exolab.castor.xml.MarshalException,
146 org.exolab.castor.xml.ValidationException
148 Marshaller.marshal(this, handler);
152 * Sets the value of field 'dnasq'. The field 'dnasq' has the following
153 * description: internal jalview id for the dnasq for this mapping.
157 * the value of field 'dnasq'.
159 public void setDnasq(final java.lang.String dnasq)
165 * Sets the value of field 'mapping'. The field 'mapping' has the following
166 * description: a Mapping entry and an associated protein sequence
170 * the value of field 'mapping'.
172 public void setMapping(
173 final jalview.schemabinding.version2.Mapping mapping)
175 this._mapping = mapping;
182 * @throws org.exolab.castor.xml.MarshalException
183 * if object is null or if any SAXException is thrown during
185 * @throws org.exolab.castor.xml.ValidationException
186 * if this object is an invalid instance according to the schema
187 * @return the unmarshaled jalview.schemabinding.version2.AlcodMap
189 public static jalview.schemabinding.version2.AlcodMap unmarshal(
190 final java.io.Reader reader)
191 throws org.exolab.castor.xml.MarshalException,
192 org.exolab.castor.xml.ValidationException
194 return (jalview.schemabinding.version2.AlcodMap) Unmarshaller
195 .unmarshal(jalview.schemabinding.version2.AlcodMap.class,
202 * @throws org.exolab.castor.xml.ValidationException
203 * if this object is an invalid instance according to the schema
205 public void validate() throws org.exolab.castor.xml.ValidationException
207 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
208 validator.validate(this);