2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
3 * Copyright (C) 2014 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 of the License, or (at your option) any later version.
11 * Jalview is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty
13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
17 * The Jalview Authors are detailed in the 'AUTHORS' file.
19 package jalview.schemabinding.version2;
21 //---------------------------------/
22 //- Imported classes and packages -/
23 //---------------------------------/
25 import org.exolab.castor.xml.Marshaller;
26 import org.exolab.castor.xml.Unmarshaller;
31 * @version $Revision$ $Date$
33 public class Group implements java.io.Serializable
36 // --------------------------/
37 // - Class/Member Variables -/
38 // --------------------------/
43 private java.lang.String _name;
48 private boolean _display;
51 * keeps track of state for field: _display
53 private boolean _has_display;
70 public void deleteDisplay()
72 this._has_display = false;
76 * Returns the value of field 'display'.
78 * @return the value of field 'Display'.
80 public boolean getDisplay()
86 * Returns the value of field 'name'.
88 * @return the value of field 'Name'.
90 public java.lang.String getName()
98 * @return true if at least one Display has been added
100 public boolean hasDisplay()
102 return this._has_display;
106 * Returns the value of field 'display'.
108 * @return the value of field 'Display'.
110 public boolean isDisplay()
112 return this._display;
118 * @return true if this object is valid according to the schema
120 public boolean isValid()
125 } catch (org.exolab.castor.xml.ValidationException vex)
136 * @throws org.exolab.castor.xml.MarshalException
137 * if object is null or if any SAXException is thrown during
139 * @throws org.exolab.castor.xml.ValidationException
140 * if this object is an invalid instance according to the schema
142 public void marshal(final java.io.Writer out)
143 throws org.exolab.castor.xml.MarshalException,
144 org.exolab.castor.xml.ValidationException
146 Marshaller.marshal(this, out);
153 * @throws java.io.IOException
154 * if an IOException occurs during marshaling
155 * @throws org.exolab.castor.xml.ValidationException
156 * if this object is an invalid instance according to the schema
157 * @throws org.exolab.castor.xml.MarshalException
158 * if object is null or if any SAXException is thrown during
161 public void marshal(final org.xml.sax.ContentHandler handler)
162 throws java.io.IOException,
163 org.exolab.castor.xml.MarshalException,
164 org.exolab.castor.xml.ValidationException
166 Marshaller.marshal(this, handler);
170 * Sets the value of field 'display'.
173 * the value of field 'display'.
175 public void setDisplay(final boolean display)
177 this._display = display;
178 this._has_display = true;
182 * Sets the value of field 'name'.
185 * the value of field 'name'.
187 public void setName(final java.lang.String name)
196 * @throws org.exolab.castor.xml.MarshalException
197 * if object is null or if any SAXException is thrown during
199 * @throws org.exolab.castor.xml.ValidationException
200 * if this object is an invalid instance according to the schema
201 * @return the unmarshaled jalview.schemabinding.version2.Group
203 public static jalview.schemabinding.version2.Group unmarshal(
204 final java.io.Reader reader)
205 throws org.exolab.castor.xml.MarshalException,
206 org.exolab.castor.xml.ValidationException
208 return (jalview.schemabinding.version2.Group) Unmarshaller.unmarshal(
209 jalview.schemabinding.version2.Group.class, reader);
215 * @throws org.exolab.castor.xml.ValidationException
216 * if this object is an invalid instance according to the schema
218 public void validate() throws org.exolab.castor.xml.ValidationException
220 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
221 validator.validate(this);