GPL license added
[jalview.git] / src / jalview / binding / VamsasModel.java
1 /*\r
2  * This class was automatically generated with\r
3  * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
4  * Schema.\r
5  * $Id$\r
6  */\r
7 \r
8 /*\r
9 * Jalview - A Sequence Alignment Editor and Viewer\r
10 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
11 *\r
12 * This program is free software; you can redistribute it and/or\r
13 * modify it under the terms of the GNU General Public License\r
14 * as published by the Free Software Foundation; either version 2\r
15 * of the License, or (at your option) any later version.\r
16 *\r
17 * This program is distributed in the hope that it will be useful,\r
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
20 * GNU General Public License for more details.\r
21 *\r
22 * You should have received a copy of the GNU General Public License\r
23 * along with this program; if not, write to the Free Software\r
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\r
25 */\r
26 \r
27 package jalview.binding;\r
28 \r
29   //---------------------------------/\r
30  //- Imported classes and packages -/\r
31 //---------------------------------/\r
32 \r
33 import java.io.IOException;\r
34 import java.io.Reader;\r
35 import java.io.Serializable;\r
36 import java.io.Writer;\r
37 import org.exolab.castor.xml.MarshalException;\r
38 import org.exolab.castor.xml.Marshaller;\r
39 import org.exolab.castor.xml.Unmarshaller;\r
40 import org.exolab.castor.xml.ValidationException;\r
41 import org.xml.sax.ContentHandler;\r
42 \r
43 /**\r
44  * Class VamsasModel.\r
45  *\r
46  * @version $Revision$ $Date$\r
47  */\r
48 public class VamsasModel extends VAMSAS\r
49 implements java.io.Serializable\r
50 {\r
51 \r
52 \r
53       //----------------/\r
54      //- Constructors -/\r
55     //----------------/\r
56 \r
57     public VamsasModel() {\r
58         super();\r
59     } //-- jalview.binding.VamsasModel()\r
60 \r
61 \r
62       //-----------/\r
63      //- Methods -/\r
64     //-----------/\r
65 \r
66     /**\r
67      * Method isValid\r
68      *\r
69      *\r
70      *\r
71      * @return boolean\r
72      */\r
73     public boolean isValid()\r
74     {\r
75         try {\r
76             validate();\r
77         }\r
78         catch (org.exolab.castor.xml.ValidationException vex) {\r
79             return false;\r
80         }\r
81         return true;\r
82     } //-- boolean isValid()\r
83 \r
84     /**\r
85      * Method marshal\r
86      *\r
87      *\r
88      *\r
89      * @param out\r
90      */\r
91     public void marshal(java.io.Writer out)\r
92         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
93     {\r
94 \r
95         Marshaller.marshal(this, out);\r
96     } //-- void marshal(java.io.Writer)\r
97 \r
98     /**\r
99      * Method marshal\r
100      *\r
101      *\r
102      *\r
103      * @param handler\r
104      */\r
105     public void marshal(org.xml.sax.ContentHandler handler)\r
106         throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
107     {\r
108 \r
109         Marshaller.marshal(this, handler);\r
110     } //-- void marshal(org.xml.sax.ContentHandler)\r
111 \r
112     /**\r
113      * Method unmarshal\r
114      *\r
115      *\r
116      *\r
117      * @param reader\r
118      * @return Object\r
119      */\r
120     public static java.lang.Object unmarshal(java.io.Reader reader)\r
121         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
122     {\r
123         return (jalview.binding.VamsasModel) Unmarshaller.unmarshal(jalview.binding.VamsasModel.class, reader);\r
124     } //-- java.lang.Object unmarshal(java.io.Reader)\r
125 \r
126     /**\r
127      * Method validate\r
128      *\r
129      */\r
130     public void validate()\r
131         throws org.exolab.castor.xml.ValidationException\r
132     {\r
133         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
134         validator.validate(this);\r
135     } //-- void validate()\r
136 \r
137 }\r