2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4.1)
\r
3 * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
5 * This program is free software; you can redistribute it and/or
\r
6 * modify it under the terms of the GNU General Public License
\r
7 * as published by the Free Software Foundation; either version 2
\r
8 * of the License, or (at your option) any later version.
\r
10 * This program is distributed in the hope that it will be useful,
\r
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 * GNU General Public License for more details.
\r
15 * You should have received a copy of the GNU General Public License
\r
16 * along with this program; if not, write to the Free Software
\r
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
19 package jalview.schemabinding.version2;
\r
21 //---------------------------------/
\r
22 //- Imported classes and packages -/
\r
23 //---------------------------------/
\r
25 import org.exolab.castor.xml.Marshaller;
\r
26 import org.exolab.castor.xml.Unmarshaller;
\r
31 * @version $Revision$ $Date$
\r
33 public class AlcodMap implements java.io.Serializable {
\r
36 //--------------------------/
\r
37 //- Class/Member Variables -/
\r
38 //--------------------------/
\r
41 * internal jalview id for the dnasq for this mapping.
\r
44 private java.lang.String _dnasq;
\r
47 * a Mapping entry and an associated protein sequence
\r
50 private jalview.schemabinding.version2.Mapping _mapping;
\r
67 * Returns the value of field 'dnasq'. The field 'dnasq' has
\r
68 * the following description: internal jalview id for the dnasq
\r
72 * @return the value of field 'Dnasq'.
\r
74 public java.lang.String getDnasq(
\r
80 * Returns the value of field 'mapping'. The field 'mapping'
\r
81 * has the following description: a Mapping entry and an
\r
82 * associated protein sequence
\r
85 * @return the value of field 'Mapping'.
\r
87 public jalview.schemabinding.version2.Mapping getMapping(
\r
89 return this._mapping;
\r
95 * @return true if this object is valid according to the schema
\r
97 public boolean isValid(
\r
101 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
111 * @throws org.exolab.castor.xml.MarshalException if object is
\r
112 * null or if any SAXException is thrown during marshaling
\r
113 * @throws org.exolab.castor.xml.ValidationException if this
\r
114 * object is an invalid instance according to the schema
\r
116 public void marshal(
\r
117 final java.io.Writer out)
\r
118 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
119 Marshaller.marshal(this, out);
\r
126 * @throws java.io.IOException if an IOException occurs during
\r
128 * @throws org.exolab.castor.xml.ValidationException if this
\r
129 * object is an invalid instance according to the schema
\r
130 * @throws org.exolab.castor.xml.MarshalException if object is
\r
131 * null or if any SAXException is thrown during marshaling
\r
133 public void marshal(
\r
134 final org.xml.sax.ContentHandler handler)
\r
135 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
136 Marshaller.marshal(this, handler);
\r
140 * Sets the value of field 'dnasq'. The field 'dnasq' has the
\r
141 * following description: internal jalview id for the dnasq for
\r
145 * @param dnasq the value of field 'dnasq'.
\r
147 public void setDnasq(
\r
148 final java.lang.String dnasq) {
\r
149 this._dnasq = dnasq;
\r
153 * Sets the value of field 'mapping'. The field 'mapping' has
\r
154 * the following description: a Mapping entry and an associated
\r
158 * @param mapping the value of field 'mapping'.
\r
160 public void setMapping(
\r
161 final jalview.schemabinding.version2.Mapping mapping) {
\r
162 this._mapping = mapping;
\r
166 * Method unmarshal.
\r
169 * @throws org.exolab.castor.xml.MarshalException if object is
\r
170 * null or if any SAXException is thrown during marshaling
\r
171 * @throws org.exolab.castor.xml.ValidationException if this
\r
172 * object is an invalid instance according to the schema
\r
173 * @return the unmarshaled
\r
174 * jalview.schemabinding.version2.AlcodMap
\r
176 public static jalview.schemabinding.version2.AlcodMap unmarshal(
\r
177 final java.io.Reader reader)
\r
178 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
179 return (jalview.schemabinding.version2.AlcodMap) Unmarshaller.unmarshal(jalview.schemabinding.version2.AlcodMap.class, reader);
\r
185 * @throws org.exolab.castor.xml.ValidationException if this
\r
186 * object is an invalid instance according to the schema
\r
188 public void validate(
\r
190 throws org.exolab.castor.xml.ValidationException {
\r
191 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
192 validator.validate(this);
\r