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.binding;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
14 import org.exolab.castor.xml.*;
\r
19 * @version $Revision$ $Date$
\r
21 public class Residue
\r
22 implements java.io.Serializable
\r
25 //--------------------------/
\r
26 //- Class/Member Variables -/
\r
27 //--------------------------/
\r
32 private java.lang.String _name;
\r
40 * keeps track of state for field: _RGB
\r
42 private boolean _has_RGB;
\r
51 } //-- jalview.binding.Residue()
\r
61 public void deleteRGB()
\r
63 this._has_RGB = false;
\r
64 } //-- void deleteRGB()
\r
67 * Returns the value of field 'name'.
\r
70 * @return the value of field 'name'.
\r
72 public java.lang.String getName()
\r
75 } //-- java.lang.String getName()
\r
78 * Returns the value of field 'RGB'.
\r
81 * @return the value of field 'RGB'.
\r
95 public boolean hasRGB()
\r
97 return this._has_RGB;
\r
98 } //-- boolean hasRGB()
\r
107 public boolean isValid()
\r
113 catch (org.exolab.castor.xml.ValidationException vex)
\r
118 } //-- boolean isValid()
\r
127 public void marshal(java.io.Writer out)
\r
128 throws org.exolab.castor.xml.MarshalException,
\r
129 org.exolab.castor.xml.ValidationException
\r
132 Marshaller.marshal(this, out);
\r
133 } //-- void marshal(java.io.Writer)
\r
142 public void marshal(org.xml.sax.ContentHandler handler)
\r
143 throws java.io.IOException, org.exolab.castor.xml.MarshalException,
\r
144 org.exolab.castor.xml.ValidationException
\r
147 Marshaller.marshal(this, handler);
\r
148 } //-- void marshal(org.xml.sax.ContentHandler)
\r
151 * Sets the value of field 'name'.
\r
153 * @param name the value of field 'name'.
\r
155 public void setName(java.lang.String name)
\r
158 } //-- void setName(java.lang.String)
\r
161 * Sets the value of field 'RGB'.
\r
163 * @param RGB the value of field 'RGB'.
\r
165 public void setRGB(int RGB)
\r
168 this._has_RGB = true;
\r
169 } //-- void setRGB(int)
\r
179 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
180 throws org.exolab.castor.xml.MarshalException,
\r
181 org.exolab.castor.xml.ValidationException
\r
183 return (jalview.binding.Residue) Unmarshaller.unmarshal(jalview.binding.
\r
184 Residue.class, reader);
\r
185 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
191 public void validate()
\r
192 throws org.exolab.castor.xml.ValidationException
\r
194 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.
\r
196 validator.validate(this);
\r
197 } //-- void validate()
\r