2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
21 package jalview.schemabinding.version2;
23 //---------------------------------/
24 //- Imported classes and packages -/
25 //---------------------------------/
27 import org.exolab.castor.xml.Marshaller;
28 import org.exolab.castor.xml.Unmarshaller;
33 * @version $Revision$ $Date$
35 public class Group implements java.io.Serializable
38 // --------------------------/
39 // - Class/Member Variables -/
40 // --------------------------/
45 private java.lang.String _name;
50 private boolean _display;
53 * keeps track of state for field: _display
55 private boolean _has_display;
72 public void deleteDisplay()
74 this._has_display = false;
78 * Returns the value of field 'display'.
80 * @return the value of field 'Display'.
82 public boolean getDisplay()
88 * Returns the value of field 'name'.
90 * @return the value of field 'Name'.
92 public java.lang.String getName()
100 * @return true if at least one Display has been added
102 public boolean hasDisplay()
104 return this._has_display;
108 * Returns the value of field 'display'.
110 * @return the value of field 'Display'.
112 public boolean isDisplay()
114 return this._display;
120 * @return true if this object is valid according to the schema
122 public boolean isValid()
127 } catch (org.exolab.castor.xml.ValidationException vex)
138 * @throws org.exolab.castor.xml.MarshalException
139 * if object is null or if any SAXException is thrown during
141 * @throws org.exolab.castor.xml.ValidationException
142 * if this object is an invalid instance according to the schema
144 public void marshal(final java.io.Writer out)
145 throws org.exolab.castor.xml.MarshalException,
146 org.exolab.castor.xml.ValidationException
148 Marshaller.marshal(this, out);
155 * @throws java.io.IOException
156 * if an IOException occurs during marshaling
157 * @throws org.exolab.castor.xml.ValidationException
158 * if this object is an invalid instance according to the schema
159 * @throws org.exolab.castor.xml.MarshalException
160 * if object is null or if any SAXException is thrown during
163 public void marshal(final org.xml.sax.ContentHandler handler)
164 throws java.io.IOException,
165 org.exolab.castor.xml.MarshalException,
166 org.exolab.castor.xml.ValidationException
168 Marshaller.marshal(this, handler);
172 * Sets the value of field 'display'.
175 * the value of field 'display'.
177 public void setDisplay(final boolean display)
179 this._display = display;
180 this._has_display = true;
184 * Sets the value of field 'name'.
187 * the value of field 'name'.
189 public void setName(final java.lang.String name)
198 * @throws org.exolab.castor.xml.MarshalException
199 * if object is null or if any SAXException is thrown during
201 * @throws org.exolab.castor.xml.ValidationException
202 * if this object is an invalid instance according to the schema
203 * @return the unmarshaled jalview.schemabinding.version2.Group
205 public static jalview.schemabinding.version2.Group unmarshal(
206 final java.io.Reader reader)
207 throws org.exolab.castor.xml.MarshalException,
208 org.exolab.castor.xml.ValidationException
210 return (jalview.schemabinding.version2.Group) Unmarshaller.unmarshal(
211 jalview.schemabinding.version2.Group.class, reader);
217 * @throws org.exolab.castor.xml.ValidationException
218 * if this object is an invalid instance according to the schema
220 public void validate() throws org.exolab.castor.xml.ValidationException
222 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
223 validator.validate(this);