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 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 Group implements java.io.Serializable {
\r
32 //--------------------------/
\r
33 //- Class/Member Variables -/
\r
34 //--------------------------/
\r
39 private java.lang.String _name;
\r
44 private boolean _display;
\r
47 * keeps track of state for field: _display
\r
49 private boolean _has_display;
\r
58 } //-- jalview.schemabinding.version2.Group()
\r
66 * Method deleteDisplay
\r
69 public void deleteDisplay()
\r
71 this._has_display= false;
\r
72 } //-- void deleteDisplay()
\r
75 * Returns the value of field 'display'.
\r
78 * @return the value of field 'display'.
\r
80 public boolean getDisplay()
\r
82 return this._display;
\r
83 } //-- boolean getDisplay()
\r
86 * Returns the value of field 'name'.
\r
89 * @return the value of field 'name'.
\r
91 public java.lang.String getName()
\r
94 } //-- java.lang.String getName()
\r
103 public boolean hasDisplay()
\r
105 return this._has_display;
\r
106 } //-- boolean hasDisplay()
\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 'display'.
\r
157 * @param display the value of field 'display'.
\r
159 public void setDisplay(boolean display)
\r
161 this._display = display;
\r
162 this._has_display = true;
\r
163 } //-- void setDisplay(boolean)
\r
166 * Sets the value of field 'name'.
\r
168 * @param name the value of field 'name'.
\r
170 public void setName(java.lang.String name)
\r
173 } //-- void setName(java.lang.String)
\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.schemabinding.version2.Group) Unmarshaller.unmarshal(jalview.schemabinding.version2.Group.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