Copyright test
[jalview.git] / src / jalview / schemabinding / version2 / SequenceType.java
1 /*******************************************************************************
2  * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3  * Copyright (C) $(date) 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
10  * of the License, or (at your option) any later version.
11  *   
12  * Jalview is distributed in the hope that it will be useful, but 
13  * WITHOUT ANY WARRANTY; without even the implied warranty 
14  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
15  * PURPOSE.  See the GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
19  * The Jalview Authors are detailed in the 'AUTHORS' file.
20  *******************************************************************************/
21 /*
22  * This class was automatically generated with 
23  * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
24  * Schema.
25  * $Id$
26  */
27
28 package jalview.schemabinding.version2;
29
30 //---------------------------------/
31 //- Imported classes and packages -/
32 //---------------------------------/
33
34 import org.exolab.castor.xml.Marshaller;
35 import org.exolab.castor.xml.Unmarshaller;
36
37 /**
38  * Class SequenceType.
39  * 
40  * @version $Revision$ $Date$
41  */
42 public class SequenceType implements java.io.Serializable
43 {
44
45   // --------------------------/
46   // - Class/Member Variables -/
47   // --------------------------/
48
49   /**
50    * Field _id.
51    */
52   private java.lang.String _id;
53
54   /**
55    * Field _description.
56    */
57   private java.lang.String _description;
58
59   /**
60    * Field _sequence.
61    */
62   private java.lang.String _sequence;
63
64   /**
65    * Field _name.
66    */
67   private java.lang.String _name;
68
69   // ----------------/
70   // - Constructors -/
71   // ----------------/
72
73   public SequenceType()
74   {
75     super();
76   }
77
78   // -----------/
79   // - Methods -/
80   // -----------/
81
82   /**
83    * Returns the value of field 'description'.
84    * 
85    * @return the value of field 'Description'.
86    */
87   public java.lang.String getDescription()
88   {
89     return this._description;
90   }
91
92   /**
93    * Returns the value of field 'id'.
94    * 
95    * @return the value of field 'Id'.
96    */
97   public java.lang.String getId()
98   {
99     return this._id;
100   }
101
102   /**
103    * Returns the value of field 'name'.
104    * 
105    * @return the value of field 'Name'.
106    */
107   public java.lang.String getName()
108   {
109     return this._name;
110   }
111
112   /**
113    * Returns the value of field 'sequence'.
114    * 
115    * @return the value of field 'Sequence'.
116    */
117   public java.lang.String getSequence()
118   {
119     return this._sequence;
120   }
121
122   /**
123    * Method isValid.
124    * 
125    * @return true if this object is valid according to the schema
126    */
127   public boolean isValid()
128   {
129     try
130     {
131       validate();
132     } catch (org.exolab.castor.xml.ValidationException vex)
133     {
134       return false;
135     }
136     return true;
137   }
138
139   /**
140    * 
141    * 
142    * @param out
143    * @throws org.exolab.castor.xml.MarshalException
144    *           if object is null or if any SAXException is thrown during
145    *           marshaling
146    * @throws org.exolab.castor.xml.ValidationException
147    *           if this object is an invalid instance according to the schema
148    */
149   public void marshal(final java.io.Writer out)
150           throws org.exolab.castor.xml.MarshalException,
151           org.exolab.castor.xml.ValidationException
152   {
153     Marshaller.marshal(this, out);
154   }
155
156   /**
157    * 
158    * 
159    * @param handler
160    * @throws java.io.IOException
161    *           if an IOException occurs during marshaling
162    * @throws org.exolab.castor.xml.ValidationException
163    *           if this object is an invalid instance according to the schema
164    * @throws org.exolab.castor.xml.MarshalException
165    *           if object is null or if any SAXException is thrown during
166    *           marshaling
167    */
168   public void marshal(final org.xml.sax.ContentHandler handler)
169           throws java.io.IOException,
170           org.exolab.castor.xml.MarshalException,
171           org.exolab.castor.xml.ValidationException
172   {
173     Marshaller.marshal(this, handler);
174   }
175
176   /**
177    * Sets the value of field 'description'.
178    * 
179    * @param description
180    *          the value of field 'description'.
181    */
182   public void setDescription(final java.lang.String description)
183   {
184     this._description = description;
185   }
186
187   /**
188    * Sets the value of field 'id'.
189    * 
190    * @param id
191    *          the value of field 'id'.
192    */
193   public void setId(final java.lang.String id)
194   {
195     this._id = id;
196   }
197
198   /**
199    * Sets the value of field 'name'.
200    * 
201    * @param name
202    *          the value of field 'name'.
203    */
204   public void setName(final java.lang.String name)
205   {
206     this._name = name;
207   }
208
209   /**
210    * Sets the value of field 'sequence'.
211    * 
212    * @param sequence
213    *          the value of field 'sequence'.
214    */
215   public void setSequence(final java.lang.String sequence)
216   {
217     this._sequence = sequence;
218   }
219
220   /**
221    * Method unmarshal.
222    * 
223    * @param reader
224    * @throws org.exolab.castor.xml.MarshalException
225    *           if object is null or if any SAXException is thrown during
226    *           marshaling
227    * @throws org.exolab.castor.xml.ValidationException
228    *           if this object is an invalid instance according to the schema
229    * @return the unmarshaled jalview.schemabinding.version2.SequenceType
230    */
231   public static jalview.schemabinding.version2.SequenceType unmarshal(
232           final java.io.Reader reader)
233           throws org.exolab.castor.xml.MarshalException,
234           org.exolab.castor.xml.ValidationException
235   {
236     return (jalview.schemabinding.version2.SequenceType) Unmarshaller
237             .unmarshal(jalview.schemabinding.version2.SequenceType.class,
238                     reader);
239   }
240
241   /**
242    * 
243    * 
244    * @throws org.exolab.castor.xml.ValidationException
245    *           if this object is an invalid instance according to the schema
246    */
247   public void validate() throws org.exolab.castor.xml.ValidationException
248   {
249     org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
250     validator.validate(this);
251   }
252
253 }