1 /*******************************************************************************
2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3 * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
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 *******************************************************************************/
19 * This class was automatically generated with
20 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
25 package jalview.schemabinding.version2;
27 //---------------------------------/
28 //- Imported classes and packages -/
29 //---------------------------------/
31 import org.exolab.castor.xml.Marshaller;
32 import org.exolab.castor.xml.Unmarshaller;
37 * @version $Revision$ $Date$
39 public class Group implements java.io.Serializable {
42 //--------------------------/
43 //- Class/Member Variables -/
44 //--------------------------/
49 private java.lang.String _name;
54 private boolean _display;
57 * keeps track of state for field: _display
59 private boolean _has_display;
77 public void deleteDisplay(
79 this._has_display= false;
83 * Returns the value of field 'display'.
85 * @return the value of field 'Display'.
87 public boolean getDisplay(
93 * Returns the value of field 'name'.
95 * @return the value of field 'Name'.
97 public java.lang.String getName(
105 * @return true if at least one Display has been added
107 public boolean hasDisplay(
109 return this._has_display;
113 * Returns the value of field 'display'.
115 * @return the value of field 'Display'.
117 public boolean isDisplay(
119 return this._display;
125 * @return true if this object is valid according to the schema
127 public boolean isValid(
131 } catch (org.exolab.castor.xml.ValidationException vex) {
141 * @throws org.exolab.castor.xml.MarshalException if object is
142 * null or if any SAXException is thrown during marshaling
143 * @throws org.exolab.castor.xml.ValidationException if this
144 * object is an invalid instance according to the schema
147 final java.io.Writer out)
148 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
149 Marshaller.marshal(this, out);
156 * @throws java.io.IOException if an IOException occurs during
158 * @throws org.exolab.castor.xml.ValidationException if this
159 * object is an invalid instance according to the schema
160 * @throws org.exolab.castor.xml.MarshalException if object is
161 * null or if any SAXException is thrown during marshaling
164 final org.xml.sax.ContentHandler handler)
165 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
166 Marshaller.marshal(this, handler);
170 * Sets the value of field 'display'.
172 * @param display the value of field 'display'.
174 public void setDisplay(
175 final boolean display) {
176 this._display = display;
177 this._has_display = true;
181 * Sets the value of field 'name'.
183 * @param name the value of field 'name'.
186 final java.lang.String name) {
194 * @throws org.exolab.castor.xml.MarshalException if object is
195 * null or if any SAXException is thrown during marshaling
196 * @throws org.exolab.castor.xml.ValidationException if this
197 * object is an invalid instance according to the schema
198 * @return the unmarshaled jalview.schemabinding.version2.Group
200 public static jalview.schemabinding.version2.Group unmarshal(
201 final java.io.Reader reader)
202 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
203 return (jalview.schemabinding.version2.Group) Unmarshaller.unmarshal(jalview.schemabinding.version2.Group.class, reader);
209 * @throws org.exolab.castor.xml.ValidationException if this
210 * object is an invalid instance according to the schema
212 public void validate(
214 throws org.exolab.castor.xml.ValidationException {
215 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
216 validator.validate(this);