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 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
27 * @version $Revision$ $Date$
\r
29 public class Residue implements java.io.Serializable {
\r
32 //--------------------------/
\r
33 //- Class/Member Variables -/
\r
34 //--------------------------/
\r
39 private java.lang.String _name;
\r
47 * keeps track of state for field: _RGB
\r
49 private boolean _has_RGB;
\r
58 } //-- jalview.binding.Residue()
\r
69 public void deleteRGB()
\r
71 this._has_RGB= false;
\r
72 } //-- void deleteRGB()
\r
75 * Returns the value of field 'name'.
\r
78 * @return the value of field 'name'.
\r
80 public java.lang.String getName()
\r
83 } //-- java.lang.String getName()
\r
86 * Returns the value of field 'RGB'.
\r
89 * @return the value of field 'RGB'.
\r
94 } //-- int getRGB()
\r
103 public boolean hasRGB()
\r
105 return this._has_RGB;
\r
106 } //-- boolean hasRGB()
\r
115 public boolean isValid()
\r
120 catch (org.exolab.castor.xml.ValidationException vex) {
\r
124 } //-- boolean isValid()
\r
133 public void marshal(java.io.Writer out)
\r
134 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
137 Marshaller.marshal(this, out);
\r
138 } //-- void marshal(java.io.Writer)
\r
147 public void marshal(org.xml.sax.ContentHandler handler)
\r
148 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
151 Marshaller.marshal(this, handler);
\r
152 } //-- void marshal(org.xml.sax.ContentHandler)
\r
155 * Sets the value of field 'name'.
\r
157 * @param name the value of field 'name'.
\r
159 public void setName(java.lang.String name)
\r
162 } //-- void setName(java.lang.String)
\r
165 * Sets the value of field 'RGB'.
\r
167 * @param RGB the value of field 'RGB'.
\r
169 public void setRGB(int RGB)
\r
172 this._has_RGB = true;
\r
173 } //-- void setRGB(int)
\r
183 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
184 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
186 return (jalview.binding.Residue) Unmarshaller.unmarshal(jalview.binding.Residue.class, reader);
\r
187 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
193 public void validate()
\r
194 throws org.exolab.castor.xml.ValidationException
\r
196 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
197 validator.validate(this);
\r
198 } //-- void validate()
\r