2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.schemabinding.version2;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
20 * @version $Revision$ $Date$
22 public class Group implements java.io.Serializable {
25 //--------------------------/
26 //- Class/Member Variables -/
27 //--------------------------/
32 private java.lang.String _name;
37 private boolean _display;
40 * keeps track of state for field: _display
42 private boolean _has_display;
60 public void deleteDisplay(
62 this._has_display= false;
66 * Returns the value of field 'display'.
68 * @return the value of field 'Display'.
70 public boolean getDisplay(
76 * Returns the value of field 'name'.
78 * @return the value of field 'Name'.
80 public java.lang.String getName(
88 * @return true if at least one Display has been added
90 public boolean hasDisplay(
92 return this._has_display;
96 * Returns the value of field 'display'.
98 * @return the value of field 'Display'.
100 public boolean isDisplay(
102 return this._display;
108 * @return true if this object is valid according to the schema
110 public boolean isValid(
114 } catch (org.exolab.castor.xml.ValidationException vex) {
124 * @throws org.exolab.castor.xml.MarshalException if object is
125 * null or if any SAXException is thrown during marshaling
126 * @throws org.exolab.castor.xml.ValidationException if this
127 * object is an invalid instance according to the schema
130 final java.io.Writer out)
131 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
132 Marshaller.marshal(this, out);
139 * @throws java.io.IOException if an IOException occurs during
141 * @throws org.exolab.castor.xml.ValidationException if this
142 * object is an invalid instance according to the schema
143 * @throws org.exolab.castor.xml.MarshalException if object is
144 * null or if any SAXException is thrown during marshaling
147 final org.xml.sax.ContentHandler handler)
148 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
149 Marshaller.marshal(this, handler);
153 * Sets the value of field 'display'.
155 * @param display the value of field 'display'.
157 public void setDisplay(
158 final boolean display) {
159 this._display = display;
160 this._has_display = true;
164 * Sets the value of field 'name'.
166 * @param name the value of field 'name'.
169 final java.lang.String name) {
177 * @throws org.exolab.castor.xml.MarshalException if object is
178 * null or if any SAXException is thrown during marshaling
179 * @throws org.exolab.castor.xml.ValidationException if this
180 * object is an invalid instance according to the schema
181 * @return the unmarshaled jalview.schemabinding.version2.Group
183 public static jalview.schemabinding.version2.Group unmarshal(
184 final java.io.Reader reader)
185 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
186 return (jalview.schemabinding.version2.Group) Unmarshaller.unmarshal(jalview.schemabinding.version2.Group.class, reader);
192 * @throws org.exolab.castor.xml.ValidationException if this
193 * object is an invalid instance according to the schema
195 public void validate(
197 throws org.exolab.castor.xml.ValidationException {
198 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
199 validator.validate(this);