2 * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
\r
3 * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
5 * This program is free software; you can redistribute it and/or
\r
6 * modify it under the terms of the GNU General Public License
\r
7 * as published by the Free Software Foundation; either version 2
\r
8 * of the License, or (at your option) any later version.
\r
10 * This program is distributed in the hope that it will be useful,
\r
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 * GNU General Public License for more details.
\r
15 * You should have received a copy of the GNU General Public License
\r
16 * along with this program; if not, write to the Free Software
\r
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
19 package jalview.schemabinding.version2;
\r
21 //---------------------------------/
\r
22 //- Imported classes and packages -/
\r
23 //---------------------------------/
\r
25 import org.exolab.castor.xml.Marshaller;
\r
26 import org.exolab.castor.xml.Unmarshaller;
\r
31 * @version $Revision$ $Date$
\r
33 public class Group implements java.io.Serializable {
\r
36 //--------------------------/
\r
37 //- Class/Member Variables -/
\r
38 //--------------------------/
\r
43 private java.lang.String _name;
\r
48 private boolean _display;
\r
51 * keeps track of state for field: _display
\r
53 private boolean _has_display;
\r
71 public void deleteDisplay(
\r
73 this._has_display= false;
\r
77 * Returns the value of field 'display'.
\r
79 * @return the value of field 'Display'.
\r
81 public boolean getDisplay(
\r
83 return this._display;
\r
87 * Returns the value of field 'name'.
\r
89 * @return the value of field 'Name'.
\r
91 public java.lang.String getName(
\r
97 * Method hasDisplay.
\r
99 * @return true if at least one Display has been added
\r
101 public boolean hasDisplay(
\r
103 return this._has_display;
\r
107 * Returns the value of field 'display'.
\r
109 * @return the value of field 'Display'.
\r
111 public boolean isDisplay(
\r
113 return this._display;
\r
119 * @return true if this object is valid according to the schema
\r
121 public boolean isValid(
\r
125 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
135 * @throws org.exolab.castor.xml.MarshalException if object is
\r
136 * null or if any SAXException is thrown during marshaling
\r
137 * @throws org.exolab.castor.xml.ValidationException if this
\r
138 * object is an invalid instance according to the schema
\r
140 public void marshal(
\r
141 final java.io.Writer out)
\r
142 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
143 Marshaller.marshal(this, out);
\r
150 * @throws java.io.IOException if an IOException occurs during
\r
152 * @throws org.exolab.castor.xml.ValidationException if this
\r
153 * object is an invalid instance according to the schema
\r
154 * @throws org.exolab.castor.xml.MarshalException if object is
\r
155 * null or if any SAXException is thrown during marshaling
\r
157 public void marshal(
\r
158 final org.xml.sax.ContentHandler handler)
\r
159 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
160 Marshaller.marshal(this, handler);
\r
164 * Sets the value of field 'display'.
\r
166 * @param display the value of field 'display'.
\r
168 public void setDisplay(
\r
169 final boolean display) {
\r
170 this._display = display;
\r
171 this._has_display = true;
\r
175 * Sets the value of field 'name'.
\r
177 * @param name the value of field 'name'.
\r
179 public void setName(
\r
180 final java.lang.String name) {
\r
185 * Method unmarshal.
\r
188 * @throws org.exolab.castor.xml.MarshalException if object is
\r
189 * null or if any SAXException is thrown during marshaling
\r
190 * @throws org.exolab.castor.xml.ValidationException if this
\r
191 * object is an invalid instance according to the schema
\r
192 * @return the unmarshaled jalview.schemabinding.version2.Group
\r
194 public static jalview.schemabinding.version2.Group unmarshal(
\r
195 final java.io.Reader reader)
\r
196 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
197 return (jalview.schemabinding.version2.Group) Unmarshaller.unmarshal(jalview.schemabinding.version2.Group.class, reader);
\r
203 * @throws org.exolab.castor.xml.ValidationException if this
\r
204 * object is an invalid instance according to the schema
\r
206 public void validate(
\r
208 throws org.exolab.castor.xml.ValidationException {
\r
209 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
210 validator.validate(this);
\r