2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
\r
8 package jalview.schemabinding.version2;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
14 import org.exolab.castor.xml.*;
\r
17 * Class AnnotationElement.
\r
19 * @version $Revision$ $Date$
\r
21 public class AnnotationElement
\r
22 implements java.io.Serializable
\r
25 //--------------------------/
\r
26 //- Class/Member Variables -/
\r
27 //--------------------------/
\r
32 private int _position;
\r
35 * keeps track of state for field: _position
\r
37 private boolean _has_position;
\r
42 private int _colour;
\r
45 * keeps track of state for field: _colour
\r
47 private boolean _has_colour;
\r
50 * Field _displayCharacter
\r
52 private java.lang.String _displayCharacter;
\r
55 * Field _description
\r
57 private java.lang.String _description;
\r
60 * Field _secondaryStructure
\r
62 private java.lang.String _secondaryStructure;
\r
67 private float _value;
\r
70 * keeps track of state for field: _value
\r
72 private boolean _has_value;
\r
78 public AnnotationElement()
\r
81 } //-- jalview.schemabinding.version2.AnnotationElement()
\r
88 * Method deleteColour
\r
91 public void deleteColour()
\r
93 this._has_colour = false;
\r
94 } //-- void deleteColour()
\r
97 * Method deletePosition
\r
100 public void deletePosition()
\r
102 this._has_position = false;
\r
103 } //-- void deletePosition()
\r
106 * Method deleteValue
\r
109 public void deleteValue()
\r
111 this._has_value = false;
\r
112 } //-- void deleteValue()
\r
115 * Returns the value of field 'colour'.
\r
118 * @return the value of field 'colour'.
\r
120 public int getColour()
\r
122 return this._colour;
\r
123 } //-- int getColour()
\r
126 * Returns the value of field 'description'.
\r
129 * @return the value of field 'description'.
\r
131 public java.lang.String getDescription()
\r
133 return this._description;
\r
134 } //-- java.lang.String getDescription()
\r
137 * Returns the value of field 'displayCharacter'.
\r
140 * @return the value of field 'displayCharacter'.
\r
142 public java.lang.String getDisplayCharacter()
\r
144 return this._displayCharacter;
\r
145 } //-- java.lang.String getDisplayCharacter()
\r
148 * Returns the value of field 'position'.
\r
151 * @return the value of field 'position'.
\r
153 public int getPosition()
\r
155 return this._position;
\r
156 } //-- int getPosition()
\r
159 * Returns the value of field 'secondaryStructure'.
\r
162 * @return the value of field 'secondaryStructure'.
\r
164 public java.lang.String getSecondaryStructure()
\r
166 return this._secondaryStructure;
\r
167 } //-- java.lang.String getSecondaryStructure()
\r
170 * Returns the value of field 'value'.
\r
173 * @return the value of field 'value'.
\r
175 public float getValue()
\r
177 return this._value;
\r
178 } //-- float getValue()
\r
187 public boolean hasColour()
\r
189 return this._has_colour;
\r
190 } //-- boolean hasColour()
\r
193 * Method hasPosition
\r
199 public boolean hasPosition()
\r
201 return this._has_position;
\r
202 } //-- boolean hasPosition()
\r
211 public boolean hasValue()
\r
213 return this._has_value;
\r
214 } //-- boolean hasValue()
\r
223 public boolean isValid()
\r
229 catch (org.exolab.castor.xml.ValidationException vex)
\r
234 } //-- boolean isValid()
\r
243 public void marshal(java.io.Writer out)
\r
244 throws org.exolab.castor.xml.MarshalException,
\r
245 org.exolab.castor.xml.ValidationException
\r
248 Marshaller.marshal(this, out);
\r
249 } //-- void marshal(java.io.Writer)
\r
258 public void marshal(org.xml.sax.ContentHandler handler)
\r
259 throws java.io.IOException, org.exolab.castor.xml.MarshalException,
\r
260 org.exolab.castor.xml.ValidationException
\r
263 Marshaller.marshal(this, handler);
\r
264 } //-- void marshal(org.xml.sax.ContentHandler)
\r
267 * Sets the value of field 'colour'.
\r
269 * @param colour the value of field 'colour'.
\r
271 public void setColour(int colour)
\r
273 this._colour = colour;
\r
274 this._has_colour = true;
\r
275 } //-- void setColour(int)
\r
278 * Sets the value of field 'description'.
\r
280 * @param description the value of field 'description'.
\r
282 public void setDescription(java.lang.String description)
\r
284 this._description = description;
\r
285 } //-- void setDescription(java.lang.String)
\r
288 * Sets the value of field 'displayCharacter'.
\r
290 * @param displayCharacter the value of field 'displayCharacter'
\r
292 public void setDisplayCharacter(java.lang.String displayCharacter)
\r
294 this._displayCharacter = displayCharacter;
\r
295 } //-- void setDisplayCharacter(java.lang.String)
\r
298 * Sets the value of field 'position'.
\r
300 * @param position the value of field 'position'.
\r
302 public void setPosition(int position)
\r
304 this._position = position;
\r
305 this._has_position = true;
\r
306 } //-- void setPosition(int)
\r
309 * Sets the value of field 'secondaryStructure'.
\r
311 * @param secondaryStructure the value of field
\r
312 * 'secondaryStructure'.
\r
314 public void setSecondaryStructure(java.lang.String secondaryStructure)
\r
316 this._secondaryStructure = secondaryStructure;
\r
317 } //-- void setSecondaryStructure(java.lang.String)
\r
320 * Sets the value of field 'value'.
\r
322 * @param value the value of field 'value'.
\r
324 public void setValue(float value)
\r
326 this._value = value;
\r
327 this._has_value = true;
\r
328 } //-- void setValue(float)
\r
338 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
339 throws org.exolab.castor.xml.MarshalException,
\r
340 org.exolab.castor.xml.ValidationException
\r
342 return (jalview.schemabinding.version2.AnnotationElement) Unmarshaller.
\r
343 unmarshal(jalview.schemabinding.version2.AnnotationElement.class,
\r
345 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
351 public void validate()
\r
352 throws org.exolab.castor.xml.ValidationException
\r
354 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.
\r
356 validator.validate(this);
\r
357 } //-- void validate()
\r