2 * Jalview - A Sequence Alignment Editor and Viewer (Development 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
29 * Class VamsasModel.
\r
31 * @version $Revision$ $Date$
\r
33 public class VamsasModel extends VAMSAS
\r
34 implements java.io.Serializable
\r
42 public VamsasModel() {
\r
54 * @return true if this object is valid according to the schema
\r
56 public boolean isValid(
\r
60 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
70 * @throws org.exolab.castor.xml.MarshalException if object is
\r
71 * null or if any SAXException is thrown during marshaling
\r
72 * @throws org.exolab.castor.xml.ValidationException if this
\r
73 * object is an invalid instance according to the schema
\r
75 public void marshal(
\r
76 final java.io.Writer out)
\r
77 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
78 Marshaller.marshal(this, out);
\r
85 * @throws java.io.IOException if an IOException occurs during
\r
87 * @throws org.exolab.castor.xml.ValidationException if this
\r
88 * object is an invalid instance according to the schema
\r
89 * @throws org.exolab.castor.xml.MarshalException if object is
\r
90 * null or if any SAXException is thrown during marshaling
\r
92 public void marshal(
\r
93 final org.xml.sax.ContentHandler handler)
\r
94 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
95 Marshaller.marshal(this, handler);
\r
102 * @throws org.exolab.castor.xml.MarshalException if object is
\r
103 * null or if any SAXException is thrown during marshaling
\r
104 * @throws org.exolab.castor.xml.ValidationException if this
\r
105 * object is an invalid instance according to the schema
\r
106 * @return the unmarshaled jalview.schemabinding.version2.VAMSAS
\r
108 public static jalview.schemabinding.version2.VAMSAS unmarshal(
\r
109 final java.io.Reader reader)
\r
110 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
111 return (jalview.schemabinding.version2.VAMSAS) Unmarshaller.unmarshal(jalview.schemabinding.version2.VamsasModel.class, reader);
\r
117 * @throws org.exolab.castor.xml.ValidationException if this
\r
118 * object is an invalid instance according to the schema
\r
120 public void validate(
\r
122 throws org.exolab.castor.xml.ValidationException {
\r
123 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
124 validator.validate(this);
\r