2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
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. If not, see <http://www.gnu.org/licenses/>.
17 * The Jalview Authors are detailed in the 'AUTHORS' file.
19 package jalview.schemabinding.version2;
21 //---------------------------------/
22 //- Imported classes and packages -/
23 //---------------------------------/
25 import org.exolab.castor.xml.Marshaller;
26 import org.exolab.castor.xml.Unmarshaller;
31 * @version $Revision$ $Date$
33 public class AlcodMap implements java.io.Serializable
36 // --------------------------/
37 // - Class/Member Variables -/
38 // --------------------------/
41 * internal jalview id for the dnasq for this mapping.
44 private java.lang.String _dnasq;
47 * a Mapping entry and an associated protein sequence
50 private jalview.schemabinding.version2.Mapping _mapping;
66 * Returns the value of field 'dnasq'. The field 'dnasq' has the following
67 * description: internal jalview id for the dnasq for this mapping.
70 * @return the value of field 'Dnasq'.
72 public java.lang.String getDnasq()
78 * Returns the value of field 'mapping'. The field 'mapping' has the following
79 * description: a Mapping entry and an associated protein sequence
82 * @return the value of field 'Mapping'.
84 public jalview.schemabinding.version2.Mapping getMapping()
92 * @return true if this object is valid according to the schema
94 public boolean isValid()
99 } catch (org.exolab.castor.xml.ValidationException vex)
110 * @throws org.exolab.castor.xml.MarshalException
111 * if object is null or if any SAXException is thrown during
113 * @throws org.exolab.castor.xml.ValidationException
114 * if this object is an invalid instance according to the schema
116 public void marshal(final java.io.Writer out)
117 throws org.exolab.castor.xml.MarshalException,
118 org.exolab.castor.xml.ValidationException
120 Marshaller.marshal(this, out);
127 * @throws java.io.IOException
128 * if an IOException occurs during marshaling
129 * @throws org.exolab.castor.xml.ValidationException
130 * if this object is an invalid instance according to the schema
131 * @throws org.exolab.castor.xml.MarshalException
132 * if object is null or if any SAXException is thrown during
135 public void marshal(final org.xml.sax.ContentHandler handler)
136 throws java.io.IOException,
137 org.exolab.castor.xml.MarshalException,
138 org.exolab.castor.xml.ValidationException
140 Marshaller.marshal(this, handler);
144 * Sets the value of field 'dnasq'. The field 'dnasq' has the following
145 * description: internal jalview id for the dnasq for this mapping.
149 * the value of field 'dnasq'.
151 public void setDnasq(final java.lang.String dnasq)
157 * Sets the value of field 'mapping'. The field 'mapping' has the following
158 * description: a Mapping entry and an associated protein sequence
162 * the value of field 'mapping'.
164 public void setMapping(
165 final jalview.schemabinding.version2.Mapping mapping)
167 this._mapping = mapping;
174 * @throws org.exolab.castor.xml.MarshalException
175 * if object is null or if any SAXException is thrown during
177 * @throws org.exolab.castor.xml.ValidationException
178 * if this object is an invalid instance according to the schema
179 * @return the unmarshaled jalview.schemabinding.version2.AlcodMap
181 public static jalview.schemabinding.version2.AlcodMap unmarshal(
182 final java.io.Reader reader)
183 throws org.exolab.castor.xml.MarshalException,
184 org.exolab.castor.xml.ValidationException
186 return (jalview.schemabinding.version2.AlcodMap) Unmarshaller
187 .unmarshal(jalview.schemabinding.version2.AlcodMap.class,
194 * @throws org.exolab.castor.xml.ValidationException
195 * if this object is an invalid instance according to the schema
197 public void validate() throws org.exolab.castor.xml.ValidationException
199 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
200 validator.validate(this);