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