2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4)
\r
3 * Copyright (C) 2008 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 implements java.io.Serializable
\r
36 // ----------------/
\r
37 // - Constructors -/
\r
38 // ----------------/
\r
40 public VamsasModel()
\r
52 * @return true if this object is valid according to the schema
\r
54 public boolean isValid()
\r
59 } catch (org.exolab.castor.xml.ValidationException vex)
\r
70 * @throws org.exolab.castor.xml.MarshalException
\r
71 * if object is null or if any SAXException is thrown during
\r
73 * @throws org.exolab.castor.xml.ValidationException
\r
74 * if this object is an invalid instance according to the
\r
77 public void marshal(final java.io.Writer out)
\r
78 throws org.exolab.castor.xml.MarshalException,
\r
79 org.exolab.castor.xml.ValidationException
\r
81 Marshaller.marshal(this, out);
\r
88 * @throws java.io.IOException
\r
89 * if an IOException occurs during marshaling
\r
90 * @throws org.exolab.castor.xml.ValidationException
\r
91 * if this object is an invalid instance according to the
\r
93 * @throws org.exolab.castor.xml.MarshalException
\r
94 * if object is null or if any SAXException is thrown during
\r
97 public void marshal(final org.xml.sax.ContentHandler handler)
\r
98 throws java.io.IOException,
\r
99 org.exolab.castor.xml.MarshalException,
\r
100 org.exolab.castor.xml.ValidationException
\r
102 Marshaller.marshal(this, handler);
\r
106 * Method unmarshal.
\r
109 * @throws org.exolab.castor.xml.MarshalException
\r
110 * if object is null or if any SAXException is thrown during
\r
112 * @throws org.exolab.castor.xml.ValidationException
\r
113 * if this object is an invalid instance according to the
\r
115 * @return the unmarshaled jalview.schemabinding.version2.VAMSAS
\r
117 public static jalview.schemabinding.version2.VAMSAS unmarshal(
\r
118 final java.io.Reader reader)
\r
119 throws org.exolab.castor.xml.MarshalException,
\r
120 org.exolab.castor.xml.ValidationException
\r
122 return (jalview.schemabinding.version2.VAMSAS) Unmarshaller.unmarshal(
\r
123 jalview.schemabinding.version2.VamsasModel.class, reader);
\r
129 * @throws org.exolab.castor.xml.ValidationException
\r
130 * if this object is an invalid instance according to the
\r
133 public void validate() throws org.exolab.castor.xml.ValidationException
\r
135 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
136 validator.validate(this);
\r