update author list in license for (JAL-826)
[jalview.git] / src / jalview / schemabinding / version2 / Group.java
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
4  *
5  * This file is part of Jalview.
6  *
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.
10  *
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.
15  *
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  *******************************************************************************/
18 /*
19  * This class was automatically generated with 
20  * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
21  * Schema.
22  * $Id$
23  */
24
25 package jalview.schemabinding.version2;
26
27   //---------------------------------/
28  //- Imported classes and packages -/
29 //---------------------------------/
30
31 import org.exolab.castor.xml.Marshaller;
32 import org.exolab.castor.xml.Unmarshaller;
33
34 /**
35  * Class Group.
36  * 
37  * @version $Revision$ $Date$
38  */
39 public class Group implements java.io.Serializable {
40
41
42       //--------------------------/
43      //- Class/Member Variables -/
44     //--------------------------/
45
46     /**
47      * Field _name.
48      */
49     private java.lang.String _name;
50
51     /**
52      * Field _display.
53      */
54     private boolean _display;
55
56     /**
57      * keeps track of state for field: _display
58      */
59     private boolean _has_display;
60
61
62       //----------------/
63      //- Constructors -/
64     //----------------/
65
66     public Group() {
67         super();
68     }
69
70
71       //-----------/
72      //- Methods -/
73     //-----------/
74
75     /**
76      */
77     public void deleteDisplay(
78     ) {
79         this._has_display= false;
80     }
81
82     /**
83      * Returns the value of field 'display'.
84      * 
85      * @return the value of field 'Display'.
86      */
87     public boolean getDisplay(
88     ) {
89         return this._display;
90     }
91
92     /**
93      * Returns the value of field 'name'.
94      * 
95      * @return the value of field 'Name'.
96      */
97     public java.lang.String getName(
98     ) {
99         return this._name;
100     }
101
102     /**
103      * Method hasDisplay.
104      * 
105      * @return true if at least one Display has been added
106      */
107     public boolean hasDisplay(
108     ) {
109         return this._has_display;
110     }
111
112     /**
113      * Returns the value of field 'display'.
114      * 
115      * @return the value of field 'Display'.
116      */
117     public boolean isDisplay(
118     ) {
119         return this._display;
120     }
121
122     /**
123      * Method isValid.
124      * 
125      * @return true if this object is valid according to the schema
126      */
127     public boolean isValid(
128     ) {
129         try {
130             validate();
131         } catch (org.exolab.castor.xml.ValidationException vex) {
132             return false;
133         }
134         return true;
135     }
136
137     /**
138      * 
139      * 
140      * @param out
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
145      */
146     public void marshal(
147             final java.io.Writer out)
148     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
149         Marshaller.marshal(this, out);
150     }
151
152     /**
153      * 
154      * 
155      * @param handler
156      * @throws java.io.IOException if an IOException occurs during
157      * marshaling
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
162      */
163     public void marshal(
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);
167     }
168
169     /**
170      * Sets the value of field 'display'.
171      * 
172      * @param display the value of field 'display'.
173      */
174     public void setDisplay(
175             final boolean display) {
176         this._display = display;
177         this._has_display = true;
178     }
179
180     /**
181      * Sets the value of field 'name'.
182      * 
183      * @param name the value of field 'name'.
184      */
185     public void setName(
186             final java.lang.String name) {
187         this._name = name;
188     }
189
190     /**
191      * Method unmarshal.
192      * 
193      * @param reader
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
199      */
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);
204     }
205
206     /**
207      * 
208      * 
209      * @throws org.exolab.castor.xml.ValidationException if this
210      * object is an invalid instance according to the schema
211      */
212     public void validate(
213     )
214     throws org.exolab.castor.xml.ValidationException {
215         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
216         validator.validate(this);
217     }
218
219 }