update author list in license for (JAL-826)
[jalview.git] / src / jalview / schemabinding / version2 / Features.java
1 /*******************************************************************************
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3  * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
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.  If not, see <http://www.gnu.org/licenses/>.
17  *******************************************************************************/
18 /*
19  * This class was automatically generated with 
20  * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
21  * Schema.
22  * $Id$
23  */
24
25 package jalview.schemabinding.version2;
26
27   //---------------------------------/
28  //- Imported classes and packages -/
29 //---------------------------------/
30
31 import org.exolab.castor.xml.Marshaller;
32 import org.exolab.castor.xml.Unmarshaller;
33
34 /**
35  * Class Features.
36  * 
37  * @version $Revision$ $Date$
38  */
39 public class Features extends Feature 
40 implements java.io.Serializable
41 {
42
43
44       //----------------/
45      //- Constructors -/
46     //----------------/
47
48     public Features() {
49         super();
50     }
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             validate();
66         } catch (org.exolab.castor.xml.ValidationException vex) {
67             return false;
68         }
69         return true;
70     }
71
72     /**
73      * 
74      * 
75      * @param out
76      * @throws org.exolab.castor.xml.MarshalException if object is
77      * null or if any SAXException is thrown during marshaling
78      * @throws org.exolab.castor.xml.ValidationException if this
79      * object is an invalid instance according to the schema
80      */
81     public void marshal(
82             final java.io.Writer out)
83     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
84         Marshaller.marshal(this, out);
85     }
86
87     /**
88      * 
89      * 
90      * @param handler
91      * @throws java.io.IOException if an IOException occurs during
92      * marshaling
93      * @throws org.exolab.castor.xml.ValidationException if this
94      * object is an invalid instance according to the schema
95      * @throws org.exolab.castor.xml.MarshalException if object is
96      * null or if any SAXException is thrown during marshaling
97      */
98     public void marshal(
99             final org.xml.sax.ContentHandler handler)
100     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
101         Marshaller.marshal(this, handler);
102     }
103
104     /**
105      * Method unmarshal.
106      * 
107      * @param reader
108      * @throws org.exolab.castor.xml.MarshalException if object is
109      * null or if any SAXException is thrown during marshaling
110      * @throws org.exolab.castor.xml.ValidationException if this
111      * object is an invalid instance according to the schema
112      * @return the unmarshaled jalview.schemabinding.version2.Featur
113      */
114     public static jalview.schemabinding.version2.Feature unmarshal(
115             final java.io.Reader reader)
116     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
117         return (jalview.schemabinding.version2.Feature) Unmarshaller.unmarshal(jalview.schemabinding.version2.Features.class, reader);
118     }
119
120     /**
121      * 
122      * 
123      * @throws org.exolab.castor.xml.ValidationException if this
124      * object is an invalid instance according to the schema
125      */
126     public void validate(
127     )
128     throws org.exolab.castor.xml.ValidationException {
129         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
130         validator.validate(this);
131     }
132
133 }