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;
59 public void deleteDisplay()
61 this._has_display = false;
65 * Returns the value of field 'display'.
67 * @return the value of field 'Display'.
69 public boolean getDisplay()
75 * Returns the value of field 'name'.
77 * @return the value of field 'Name'.
79 public java.lang.String getName()
87 * @return true if at least one Display has been added
89 public boolean hasDisplay()
91 return this._has_display;
95 * Returns the value of field 'display'.
97 * @return the value of field 'Display'.
99 public boolean isDisplay()
101 return this._display;
107 * @return true if this object is valid according to the schema
109 public boolean isValid()
114 } catch (org.exolab.castor.xml.ValidationException vex)
125 * @throws org.exolab.castor.xml.MarshalException
126 * if object is null or if any SAXException is thrown during
128 * @throws org.exolab.castor.xml.ValidationException
129 * if this object is an invalid instance according to the schema
131 public void marshal(final java.io.Writer out)
132 throws org.exolab.castor.xml.MarshalException,
133 org.exolab.castor.xml.ValidationException
135 Marshaller.marshal(this, out);
142 * @throws java.io.IOException
143 * if an IOException occurs during marshaling
144 * @throws org.exolab.castor.xml.ValidationException
145 * if this object is an invalid instance according to the schema
146 * @throws org.exolab.castor.xml.MarshalException
147 * if object is null or if any SAXException is thrown during
150 public void marshal(final org.xml.sax.ContentHandler handler)
151 throws java.io.IOException,
152 org.exolab.castor.xml.MarshalException,
153 org.exolab.castor.xml.ValidationException
155 Marshaller.marshal(this, handler);
159 * Sets the value of field 'display'.
162 * the value of field 'display'.
164 public void setDisplay(final boolean display)
166 this._display = display;
167 this._has_display = true;
171 * Sets the value of field 'name'.
174 * the value of field 'name'.
176 public void setName(final java.lang.String name)
185 * @throws org.exolab.castor.xml.MarshalException
186 * if object is null or if any SAXException is thrown during
188 * @throws org.exolab.castor.xml.ValidationException
189 * if this object is an invalid instance according to the schema
190 * @return the unmarshaled jalview.schemabinding.version2.Group
192 public static jalview.schemabinding.version2.Group unmarshal(
193 final java.io.Reader reader)
194 throws org.exolab.castor.xml.MarshalException,
195 org.exolab.castor.xml.ValidationException
197 return (jalview.schemabinding.version2.Group) Unmarshaller.unmarshal(
198 jalview.schemabinding.version2.Group.class, reader);
204 * @throws org.exolab.castor.xml.ValidationException
205 * if this object is an invalid instance according to the schema
207 public void validate() throws org.exolab.castor.xml.ValidationException
209 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
210 validator.validate(this);