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