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