update author list in license for (JAL-826)
[jalview.git] / src / jalview / schemabinding / version2 / ThresholdLine.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 ThresholdLine.
36  * 
37  * @version $Revision$ $Date$
38  */
39 public class ThresholdLine implements java.io.Serializable {
40
41
42       //--------------------------/
43      //- Class/Member Variables -/
44     //--------------------------/
45
46     /**
47      * Field _label.
48      */
49     private java.lang.String _label;
50
51     /**
52      * Field _value.
53      */
54     private float _value;
55
56     /**
57      * keeps track of state for field: _value
58      */
59     private boolean _has_value;
60
61     /**
62      * Field _colour.
63      */
64     private int _colour;
65
66     /**
67      * keeps track of state for field: _colour
68      */
69     private boolean _has_colour;
70
71
72       //----------------/
73      //- Constructors -/
74     //----------------/
75
76     public ThresholdLine() {
77         super();
78     }
79
80
81       //-----------/
82      //- Methods -/
83     //-----------/
84
85     /**
86      */
87     public void deleteColour(
88     ) {
89         this._has_colour= false;
90     }
91
92     /**
93      */
94     public void deleteValue(
95     ) {
96         this._has_value= false;
97     }
98
99     /**
100      * Returns the value of field 'colour'.
101      * 
102      * @return the value of field 'Colour'.
103      */
104     public int getColour(
105     ) {
106         return this._colour;
107     }
108
109     /**
110      * Returns the value of field 'label'.
111      * 
112      * @return the value of field 'Label'.
113      */
114     public java.lang.String getLabel(
115     ) {
116         return this._label;
117     }
118
119     /**
120      * Returns the value of field 'value'.
121      * 
122      * @return the value of field 'Value'.
123      */
124     public float getValue(
125     ) {
126         return this._value;
127     }
128
129     /**
130      * Method hasColour.
131      * 
132      * @return true if at least one Colour has been added
133      */
134     public boolean hasColour(
135     ) {
136         return this._has_colour;
137     }
138
139     /**
140      * Method hasValue.
141      * 
142      * @return true if at least one Value has been added
143      */
144     public boolean hasValue(
145     ) {
146         return this._has_value;
147     }
148
149     /**
150      * Method isValid.
151      * 
152      * @return true if this object is valid according to the schema
153      */
154     public boolean isValid(
155     ) {
156         try {
157             validate();
158         } catch (org.exolab.castor.xml.ValidationException vex) {
159             return false;
160         }
161         return true;
162     }
163
164     /**
165      * 
166      * 
167      * @param out
168      * @throws org.exolab.castor.xml.MarshalException if object is
169      * null or if any SAXException is thrown during marshaling
170      * @throws org.exolab.castor.xml.ValidationException if this
171      * object is an invalid instance according to the schema
172      */
173     public void marshal(
174             final java.io.Writer out)
175     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
176         Marshaller.marshal(this, out);
177     }
178
179     /**
180      * 
181      * 
182      * @param handler
183      * @throws java.io.IOException if an IOException occurs during
184      * marshaling
185      * @throws org.exolab.castor.xml.ValidationException if this
186      * object is an invalid instance according to the schema
187      * @throws org.exolab.castor.xml.MarshalException if object is
188      * null or if any SAXException is thrown during marshaling
189      */
190     public void marshal(
191             final org.xml.sax.ContentHandler handler)
192     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
193         Marshaller.marshal(this, handler);
194     }
195
196     /**
197      * Sets the value of field 'colour'.
198      * 
199      * @param colour the value of field 'colour'.
200      */
201     public void setColour(
202             final int colour) {
203         this._colour = colour;
204         this._has_colour = true;
205     }
206
207     /**
208      * Sets the value of field 'label'.
209      * 
210      * @param label the value of field 'label'.
211      */
212     public void setLabel(
213             final java.lang.String label) {
214         this._label = label;
215     }
216
217     /**
218      * Sets the value of field 'value'.
219      * 
220      * @param value the value of field 'value'.
221      */
222     public void setValue(
223             final float value) {
224         this._value = value;
225         this._has_value = true;
226     }
227
228     /**
229      * Method unmarshal.
230      * 
231      * @param reader
232      * @throws org.exolab.castor.xml.MarshalException if object is
233      * null or if any SAXException is thrown during marshaling
234      * @throws org.exolab.castor.xml.ValidationException if this
235      * object is an invalid instance according to the schema
236      * @return the unmarshaled
237      * jalview.schemabinding.version2.ThresholdLine
238      */
239     public static jalview.schemabinding.version2.ThresholdLine unmarshal(
240             final java.io.Reader reader)
241     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
242         return (jalview.schemabinding.version2.ThresholdLine) Unmarshaller.unmarshal(jalview.schemabinding.version2.ThresholdLine.class, reader);
243     }
244
245     /**
246      * 
247      * 
248      * @throws org.exolab.castor.xml.ValidationException if this
249      * object is an invalid instance according to the schema
250      */
251     public void validate(
252     )
253     throws org.exolab.castor.xml.ValidationException {
254         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
255         validator.validate(this);
256     }
257
258 }