JAL-1503 update version in GPL header
[jalview.git] / src / jalview / schemabinding / version2 / VamsasModel.java
1 /*******************************************************************************
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.1)
3  * Copyright (C) 2014 The Jalview Authors
4  * 
5  * This file is part of Jalview.
6  * 
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.
10  *  
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.
15  * 
16  * You should have received a copy of the GNU General Public License along with Jalview.  
17  * If not, see <http://www.gnu.org/licenses/>.
18  * The Jalview Authors are detailed in the 'AUTHORS' file.
19  ******************************************************************************/
20 /*
21  * This class was automatically generated with 
22  * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
23  * Schema.
24  * $Id$
25  */
26
27 package jalview.schemabinding.version2;
28
29 //---------------------------------/
30 //- Imported classes and packages -/
31 //---------------------------------/
32
33 import org.exolab.castor.xml.Marshaller;
34 import org.exolab.castor.xml.Unmarshaller;
35
36 /**
37  * Class VamsasModel.
38  * 
39  * @version $Revision$ $Date$
40  */
41 public class VamsasModel extends VAMSAS implements java.io.Serializable
42 {
43
44   // ----------------/
45   // - Constructors -/
46   // ----------------/
47
48   public VamsasModel()
49   {
50     super();
51   }
52
53   // -----------/
54   // - Methods -/
55   // -----------/
56
57   /**
58    * Method isValid.
59    * 
60    * @return true if this object is valid according to the schema
61    */
62   public boolean isValid()
63   {
64     try
65     {
66       validate();
67     } catch (org.exolab.castor.xml.ValidationException vex)
68     {
69       return false;
70     }
71     return true;
72   }
73
74   /**
75    * 
76    * 
77    * @param out
78    * @throws org.exolab.castor.xml.MarshalException
79    *           if object is null or if any SAXException is thrown during
80    *           marshaling
81    * @throws org.exolab.castor.xml.ValidationException
82    *           if this object is an invalid instance according to the schema
83    */
84   public void marshal(final java.io.Writer out)
85           throws org.exolab.castor.xml.MarshalException,
86           org.exolab.castor.xml.ValidationException
87   {
88     Marshaller.marshal(this, out);
89   }
90
91   /**
92    * 
93    * 
94    * @param handler
95    * @throws java.io.IOException
96    *           if an IOException occurs during marshaling
97    * @throws org.exolab.castor.xml.ValidationException
98    *           if this object is an invalid instance according to the schema
99    * @throws org.exolab.castor.xml.MarshalException
100    *           if object is null or if any SAXException is thrown during
101    *           marshaling
102    */
103   public void marshal(final org.xml.sax.ContentHandler handler)
104           throws java.io.IOException,
105           org.exolab.castor.xml.MarshalException,
106           org.exolab.castor.xml.ValidationException
107   {
108     Marshaller.marshal(this, handler);
109   }
110
111   /**
112    * Method unmarshal.
113    * 
114    * @param reader
115    * @throws org.exolab.castor.xml.MarshalException
116    *           if object is null or if any SAXException is thrown during
117    *           marshaling
118    * @throws org.exolab.castor.xml.ValidationException
119    *           if this object is an invalid instance according to the schema
120    * @return the unmarshaled jalview.schemabinding.version2.VAMSAS
121    */
122   public static jalview.schemabinding.version2.VAMSAS unmarshal(
123           final java.io.Reader reader)
124           throws org.exolab.castor.xml.MarshalException,
125           org.exolab.castor.xml.ValidationException
126   {
127     return (jalview.schemabinding.version2.VAMSAS) Unmarshaller.unmarshal(
128             jalview.schemabinding.version2.VamsasModel.class, reader);
129   }
130
131   /**
132    * 
133    * 
134    * @throws org.exolab.castor.xml.ValidationException
135    *           if this object is an invalid instance according to the schema
136    */
137   public void validate() throws org.exolab.castor.xml.ValidationException
138   {
139     org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
140     validator.validate(this);
141   }
142
143 }