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