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