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