1 /*******************************************************************************
2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3 * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
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. If not, see <http://www.gnu.org/licenses/>.
17 *******************************************************************************/
19 * This class was automatically generated with
20 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
25 package jalview.schemabinding.version2;
27 //---------------------------------/
28 //- Imported classes and packages -/
29 //---------------------------------/
31 import org.exolab.castor.xml.Marshaller;
32 import org.exolab.castor.xml.Unmarshaller;
37 * @version $Revision$ $Date$
39 public class AlcodMap implements java.io.Serializable {
42 //--------------------------/
43 //- Class/Member Variables -/
44 //--------------------------/
47 * internal jalview id for the dnasq for this mapping.
50 private java.lang.String _dnasq;
53 * a Mapping entry and an associated protein sequence
56 private jalview.schemabinding.version2.Mapping _mapping;
73 * Returns the value of field 'dnasq'. The field 'dnasq' has
74 * the following description: internal jalview id for the dnasq
78 * @return the value of field 'Dnasq'.
80 public java.lang.String getDnasq(
86 * Returns the value of field 'mapping'. The field 'mapping'
87 * has the following description: a Mapping entry and an
88 * associated protein sequence
91 * @return the value of field 'Mapping'.
93 public jalview.schemabinding.version2.Mapping getMapping(
101 * @return true if this object is valid according to the schema
103 public boolean isValid(
107 } catch (org.exolab.castor.xml.ValidationException vex) {
117 * @throws org.exolab.castor.xml.MarshalException if object is
118 * null or if any SAXException is thrown during marshaling
119 * @throws org.exolab.castor.xml.ValidationException if this
120 * object is an invalid instance according to the schema
123 final java.io.Writer out)
124 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
125 Marshaller.marshal(this, out);
132 * @throws java.io.IOException if an IOException occurs during
134 * @throws org.exolab.castor.xml.ValidationException if this
135 * object is an invalid instance according to the schema
136 * @throws org.exolab.castor.xml.MarshalException if object is
137 * null or if any SAXException is thrown during marshaling
140 final org.xml.sax.ContentHandler handler)
141 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
142 Marshaller.marshal(this, handler);
146 * Sets the value of field 'dnasq'. The field 'dnasq' has the
147 * following description: internal jalview id for the dnasq for
151 * @param dnasq the value of field 'dnasq'.
153 public void setDnasq(
154 final java.lang.String dnasq) {
159 * Sets the value of field 'mapping'. The field 'mapping' has
160 * the following description: a Mapping entry and an associated
164 * @param mapping the value of field 'mapping'.
166 public void setMapping(
167 final jalview.schemabinding.version2.Mapping mapping) {
168 this._mapping = mapping;
175 * @throws org.exolab.castor.xml.MarshalException if object is
176 * null or if any SAXException is thrown during marshaling
177 * @throws org.exolab.castor.xml.ValidationException if this
178 * object is an invalid instance according to the schema
179 * @return the unmarshaled
180 * jalview.schemabinding.version2.AlcodMap
182 public static jalview.schemabinding.version2.AlcodMap unmarshal(
183 final java.io.Reader reader)
184 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
185 return (jalview.schemabinding.version2.AlcodMap) Unmarshaller.unmarshal(jalview.schemabinding.version2.AlcodMap.class, reader);
191 * @throws org.exolab.castor.xml.ValidationException if this
192 * object is an invalid instance according to the schema
194 public void validate(
196 throws org.exolab.castor.xml.ValidationException {
197 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
198 validator.validate(this);