Rebuilt with new schema
[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 _sequence\r
43      */\r
44     private java.lang.String _sequence;\r
45 \r
46     /**\r
47      * Field _name\r
48      */\r
49     private java.lang.String _name;\r
50 \r
51 \r
52       //----------------/\r
53      //- Constructors -/\r
54     //----------------/\r
55 \r
56     public SequenceType() {\r
57         super();\r
58     } //-- jalview.binding.SequenceType()\r
59 \r
60 \r
61       //-----------/\r
62      //- Methods -/\r
63     //-----------/\r
64 \r
65     /**\r
66      * Returns the value of field 'id'.\r
67      * \r
68      * @return String\r
69      * @return the value of field 'id'.\r
70      */\r
71     public java.lang.String getId()\r
72     {\r
73         return this._id;\r
74     } //-- java.lang.String getId() \r
75 \r
76     /**\r
77      * Returns the value of field 'name'.\r
78      * \r
79      * @return String\r
80      * @return the value of field 'name'.\r
81      */\r
82     public java.lang.String getName()\r
83     {\r
84         return this._name;\r
85     } //-- java.lang.String getName() \r
86 \r
87     /**\r
88      * Returns the value of field 'sequence'.\r
89      * \r
90      * @return String\r
91      * @return the value of field 'sequence'.\r
92      */\r
93     public java.lang.String getSequence()\r
94     {\r
95         return this._sequence;\r
96     } //-- java.lang.String getSequence() \r
97 \r
98     /**\r
99      * Method isValid\r
100      * \r
101      * \r
102      * \r
103      * @return boolean\r
104      */\r
105     public boolean isValid()\r
106     {\r
107         try {\r
108             validate();\r
109         }\r
110         catch (org.exolab.castor.xml.ValidationException vex) {\r
111             return false;\r
112         }\r
113         return true;\r
114     } //-- boolean isValid() \r
115 \r
116     /**\r
117      * Method marshal\r
118      * \r
119      * \r
120      * \r
121      * @param out\r
122      */\r
123     public void marshal(java.io.Writer out)\r
124         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
125     {\r
126         \r
127         Marshaller.marshal(this, out);\r
128     } //-- void marshal(java.io.Writer) \r
129 \r
130     /**\r
131      * Method marshal\r
132      * \r
133      * \r
134      * \r
135      * @param handler\r
136      */\r
137     public void marshal(org.xml.sax.ContentHandler handler)\r
138         throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
139     {\r
140         \r
141         Marshaller.marshal(this, handler);\r
142     } //-- void marshal(org.xml.sax.ContentHandler) \r
143 \r
144     /**\r
145      * Sets the value of field 'id'.\r
146      * \r
147      * @param id the value of field 'id'.\r
148      */\r
149     public void setId(java.lang.String id)\r
150     {\r
151         this._id = id;\r
152     } //-- void setId(java.lang.String) \r
153 \r
154     /**\r
155      * Sets the value of field 'name'.\r
156      * \r
157      * @param name the value of field 'name'.\r
158      */\r
159     public void setName(java.lang.String name)\r
160     {\r
161         this._name = name;\r
162     } //-- void setName(java.lang.String) \r
163 \r
164     /**\r
165      * Sets the value of field 'sequence'.\r
166      * \r
167      * @param sequence the value of field 'sequence'.\r
168      */\r
169     public void setSequence(java.lang.String sequence)\r
170     {\r
171         this._sequence = sequence;\r
172     } //-- void setSequence(java.lang.String) \r
173 \r
174     /**\r
175      * Method unmarshal\r
176      * \r
177      * \r
178      * \r
179      * @param reader\r
180      * @return Object\r
181      */\r
182     public static java.lang.Object unmarshal(java.io.Reader reader)\r
183         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
184     {\r
185         return (jalview.binding.SequenceType) Unmarshaller.unmarshal(jalview.binding.SequenceType.class, reader);\r
186     } //-- java.lang.Object unmarshal(java.io.Reader) \r
187 \r
188     /**\r
189      * Method validate\r
190      * \r
191      */\r
192     public void validate()\r
193         throws org.exolab.castor.xml.ValidationException\r
194     {\r
195         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
196         validator.validate(this);\r
197     } //-- void validate() \r
198 \r
199 }\r