2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.5)
3 * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
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/>.
18 package jalview.binding;
20 //---------------------------------/
21 //- Imported classes and packages -/
22 //---------------------------------/
24 import org.exolab.castor.xml.Marshaller;
25 import org.exolab.castor.xml.Unmarshaller;
30 * @version $Revision$ $Date$
32 public class VamsasModel extends VAMSAS implements java.io.Serializable
51 * @return true if this object is valid according to the schema
53 public boolean isValid()
58 } catch (org.exolab.castor.xml.ValidationException vex)
69 * @throws org.exolab.castor.xml.MarshalException
70 * if object is null or if any SAXException is thrown during
72 * @throws org.exolab.castor.xml.ValidationException
73 * if this object is an invalid instance according to the schema
75 public void marshal(final java.io.Writer out)
76 throws org.exolab.castor.xml.MarshalException,
77 org.exolab.castor.xml.ValidationException
79 Marshaller.marshal(this, out);
86 * @throws java.io.IOException
87 * if an IOException occurs during marshaling
88 * @throws org.exolab.castor.xml.ValidationException
89 * if this object is an invalid instance according to the schema
90 * @throws org.exolab.castor.xml.MarshalException
91 * if object is null or if any SAXException is thrown during
94 public void marshal(final org.xml.sax.ContentHandler handler)
95 throws java.io.IOException,
96 org.exolab.castor.xml.MarshalException,
97 org.exolab.castor.xml.ValidationException
99 Marshaller.marshal(this, handler);
106 * @throws org.exolab.castor.xml.MarshalException
107 * if object is null or if any SAXException is thrown during
109 * @throws org.exolab.castor.xml.ValidationException
110 * if this object is an invalid instance according to the schema
111 * @return the unmarshaled jalview.binding.VAMSAS
113 public static jalview.binding.VAMSAS unmarshal(final java.io.Reader reader)
114 throws org.exolab.castor.xml.MarshalException,
115 org.exolab.castor.xml.ValidationException
117 return (jalview.binding.VAMSAS) Unmarshaller.unmarshal(
118 jalview.binding.VamsasModel.class, reader);
124 * @throws org.exolab.castor.xml.ValidationException
125 * if this object is an invalid instance according to the schema
127 public void validate() throws org.exolab.castor.xml.ValidationException
129 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
130 validator.validate(this);