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