update author list in license for (JAL-826)
[jalview.git] / src / jalview / schemabinding / version2 / SequenceType.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 SequenceType.
36  * 
37  * @version $Revision$ $Date$
38  */
39 public class SequenceType implements java.io.Serializable {
40
41
42       //--------------------------/
43      //- Class/Member Variables -/
44     //--------------------------/
45
46     /**
47      * Field _id.
48      */
49     private java.lang.String _id;
50
51     /**
52      * Field _description.
53      */
54     private java.lang.String _description;
55
56     /**
57      * Field _sequence.
58      */
59     private java.lang.String _sequence;
60
61     /**
62      * Field _name.
63      */
64     private java.lang.String _name;
65
66
67       //----------------/
68      //- Constructors -/
69     //----------------/
70
71     public SequenceType() {
72         super();
73     }
74
75
76       //-----------/
77      //- Methods -/
78     //-----------/
79
80     /**
81      * Returns the value of field 'description'.
82      * 
83      * @return the value of field 'Description'.
84      */
85     public java.lang.String getDescription(
86     ) {
87         return this._description;
88     }
89
90     /**
91      * Returns the value of field 'id'.
92      * 
93      * @return the value of field 'Id'.
94      */
95     public java.lang.String getId(
96     ) {
97         return this._id;
98     }
99
100     /**
101      * Returns the value of field 'name'.
102      * 
103      * @return the value of field 'Name'.
104      */
105     public java.lang.String getName(
106     ) {
107         return this._name;
108     }
109
110     /**
111      * Returns the value of field 'sequence'.
112      * 
113      * @return the value of field 'Sequence'.
114      */
115     public java.lang.String getSequence(
116     ) {
117         return this._sequence;
118     }
119
120     /**
121      * Method isValid.
122      * 
123      * @return true if this object is valid according to the schema
124      */
125     public boolean isValid(
126     ) {
127         try {
128             validate();
129         } catch (org.exolab.castor.xml.ValidationException vex) {
130             return false;
131         }
132         return true;
133     }
134
135     /**
136      * 
137      * 
138      * @param out
139      * @throws org.exolab.castor.xml.MarshalException if object is
140      * null or if any SAXException is thrown during marshaling
141      * @throws org.exolab.castor.xml.ValidationException if this
142      * object is an invalid instance according to the schema
143      */
144     public void marshal(
145             final java.io.Writer out)
146     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
147         Marshaller.marshal(this, out);
148     }
149
150     /**
151      * 
152      * 
153      * @param handler
154      * @throws java.io.IOException if an IOException occurs during
155      * marshaling
156      * @throws org.exolab.castor.xml.ValidationException if this
157      * object is an invalid instance according to the schema
158      * @throws org.exolab.castor.xml.MarshalException if object is
159      * null or if any SAXException is thrown during marshaling
160      */
161     public void marshal(
162             final org.xml.sax.ContentHandler handler)
163     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
164         Marshaller.marshal(this, handler);
165     }
166
167     /**
168      * Sets the value of field 'description'.
169      * 
170      * @param description the value of field 'description'.
171      */
172     public void setDescription(
173             final java.lang.String description) {
174         this._description = description;
175     }
176
177     /**
178      * Sets the value of field 'id'.
179      * 
180      * @param id the value of field 'id'.
181      */
182     public void setId(
183             final java.lang.String id) {
184         this._id = id;
185     }
186
187     /**
188      * Sets the value of field 'name'.
189      * 
190      * @param name the value of field 'name'.
191      */
192     public void setName(
193             final java.lang.String name) {
194         this._name = name;
195     }
196
197     /**
198      * Sets the value of field 'sequence'.
199      * 
200      * @param sequence the value of field 'sequence'.
201      */
202     public void setSequence(
203             final java.lang.String sequence) {
204         this._sequence = sequence;
205     }
206
207     /**
208      * Method unmarshal.
209      * 
210      * @param reader
211      * @throws org.exolab.castor.xml.MarshalException if object is
212      * null or if any SAXException is thrown during marshaling
213      * @throws org.exolab.castor.xml.ValidationException if this
214      * object is an invalid instance according to the schema
215      * @return the unmarshaled
216      * jalview.schemabinding.version2.SequenceType
217      */
218     public static jalview.schemabinding.version2.SequenceType unmarshal(
219             final java.io.Reader reader)
220     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
221         return (jalview.schemabinding.version2.SequenceType) Unmarshaller.unmarshal(jalview.schemabinding.version2.SequenceType.class, reader);
222     }
223
224     /**
225      * 
226      * 
227      * @throws org.exolab.castor.xml.ValidationException if this
228      * object is an invalid instance according to the schema
229      */
230     public void validate(
231     )
232     throws org.exolab.castor.xml.ValidationException {
233         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
234         validator.validate(this);
235     }
236
237 }