2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
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
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
21 package jalview.binding;
23 //---------------------------------/
24 //- Imported classes and packages -/
25 //---------------------------------/
27 import org.exolab.castor.xml.Marshaller;
28 import org.exolab.castor.xml.Unmarshaller;
33 * @version $Revision$ $Date$
35 public class VamsasModel extends VAMSAS implements java.io.Serializable
54 * @return true if this object is valid according to the schema
56 public boolean isValid()
61 } catch (org.exolab.castor.xml.ValidationException vex)
72 * @throws org.exolab.castor.xml.MarshalException
73 * if object is null or if any SAXException is thrown during
75 * @throws org.exolab.castor.xml.ValidationException
76 * if this object is an invalid instance according to the schema
78 public void marshal(final java.io.Writer out)
79 throws org.exolab.castor.xml.MarshalException,
80 org.exolab.castor.xml.ValidationException
82 Marshaller.marshal(this, out);
89 * @throws java.io.IOException
90 * if an IOException occurs during marshaling
91 * @throws org.exolab.castor.xml.ValidationException
92 * if this object is an invalid instance according to the schema
93 * @throws org.exolab.castor.xml.MarshalException
94 * if object is null or if any SAXException is thrown during
97 public void marshal(final org.xml.sax.ContentHandler handler)
98 throws java.io.IOException,
99 org.exolab.castor.xml.MarshalException,
100 org.exolab.castor.xml.ValidationException
102 Marshaller.marshal(this, handler);
109 * @throws org.exolab.castor.xml.MarshalException
110 * if object is null or if any SAXException is thrown during
112 * @throws org.exolab.castor.xml.ValidationException
113 * if this object is an invalid instance according to the schema
114 * @return the unmarshaled jalview.binding.VAMSAS
116 public static jalview.binding.VAMSAS unmarshal(final java.io.Reader reader)
117 throws org.exolab.castor.xml.MarshalException,
118 org.exolab.castor.xml.ValidationException
120 return (jalview.binding.VAMSAS) Unmarshaller.unmarshal(
121 jalview.binding.VamsasModel.class, reader);
127 * @throws org.exolab.castor.xml.ValidationException
128 * if this object is an invalid instance according to the schema
130 public void validate() throws org.exolab.castor.xml.ValidationException
132 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
133 validator.validate(this);