JAL-3130 de-multi-release-jar.sh Script to make multi-release jar file single release.
[jalview.git] / src / jalview / binding / Setting.java
1 /*
2  * This class was automatically generated with 
3  * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
4  * Schema.
5  * $Id$
6  */
7
8 package jalview.binding;
9
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
13
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
16
17 /**
18  * Class Setting.
19  * 
20  * @version $Revision$ $Date$
21  */
22 public class Setting implements java.io.Serializable
23 {
24
25   // --------------------------/
26   // - Class/Member Variables -/
27   // --------------------------/
28
29   /**
30    * Field _type.
31    */
32   private java.lang.String _type;
33
34   /**
35    * Field _colour.
36    */
37   private int _colour;
38
39   /**
40    * keeps track of state for field: _colour
41    */
42   private boolean _has_colour;
43
44   /**
45    * Field _display.
46    */
47   private boolean _display;
48
49   /**
50    * keeps track of state for field: _display
51    */
52   private boolean _has_display;
53
54   // ----------------/
55   // - Constructors -/
56   // ----------------/
57
58   public Setting()
59   {
60     super();
61   }
62
63   // -----------/
64   // - Methods -/
65   // -----------/
66
67   /**
68      */
69   public void deleteColour()
70   {
71     this._has_colour = false;
72   }
73
74   /**
75      */
76   public void deleteDisplay()
77   {
78     this._has_display = false;
79   }
80
81   /**
82    * Returns the value of field 'colour'.
83    * 
84    * @return the value of field 'Colour'.
85    */
86   public int getColour()
87   {
88     return this._colour;
89   }
90
91   /**
92    * Returns the value of field 'display'.
93    * 
94    * @return the value of field 'Display'.
95    */
96   public boolean getDisplay()
97   {
98     return this._display;
99   }
100
101   /**
102    * Returns the value of field 'type'.
103    * 
104    * @return the value of field 'Type'.
105    */
106   public java.lang.String getType()
107   {
108     return this._type;
109   }
110
111   /**
112    * Method hasColour.
113    * 
114    * @return true if at least one Colour has been added
115    */
116   public boolean hasColour()
117   {
118     return this._has_colour;
119   }
120
121   /**
122    * Method hasDisplay.
123    * 
124    * @return true if at least one Display has been added
125    */
126   public boolean hasDisplay()
127   {
128     return this._has_display;
129   }
130
131   /**
132    * Returns the value of field 'display'.
133    * 
134    * @return the value of field 'Display'.
135    */
136   public boolean isDisplay()
137   {
138     return this._display;
139   }
140
141   /**
142    * Method isValid.
143    * 
144    * @return true if this object is valid according to the schema
145    */
146   public boolean isValid()
147   {
148     try
149     {
150       validate();
151     } catch (org.exolab.castor.xml.ValidationException vex)
152     {
153       return false;
154     }
155     return true;
156   }
157
158   /**
159    * 
160    * 
161    * @param out
162    * @throws org.exolab.castor.xml.MarshalException
163    *           if object is null or if any SAXException is thrown during
164    *           marshaling
165    * @throws org.exolab.castor.xml.ValidationException
166    *           if this object is an invalid instance according to the schema
167    */
168   public void marshal(final java.io.Writer out)
169           throws org.exolab.castor.xml.MarshalException,
170           org.exolab.castor.xml.ValidationException
171   {
172     Marshaller.marshal(this, out);
173   }
174
175   /**
176    * 
177    * 
178    * @param handler
179    * @throws java.io.IOException
180    *           if an IOException occurs during marshaling
181    * @throws org.exolab.castor.xml.ValidationException
182    *           if this object is an invalid instance according to the schema
183    * @throws org.exolab.castor.xml.MarshalException
184    *           if object is null or if any SAXException is thrown during
185    *           marshaling
186    */
187   public void marshal(final org.xml.sax.ContentHandler handler)
188           throws java.io.IOException,
189           org.exolab.castor.xml.MarshalException,
190           org.exolab.castor.xml.ValidationException
191   {
192     Marshaller.marshal(this, handler);
193   }
194
195   /**
196    * Sets the value of field 'colour'.
197    * 
198    * @param colour
199    *          the value of field 'colour'.
200    */
201   public void setColour(final int colour)
202   {
203     this._colour = colour;
204     this._has_colour = true;
205   }
206
207   /**
208    * Sets the value of field 'display'.
209    * 
210    * @param display
211    *          the value of field 'display'.
212    */
213   public void setDisplay(final boolean display)
214   {
215     this._display = display;
216     this._has_display = true;
217   }
218
219   /**
220    * Sets the value of field 'type'.
221    * 
222    * @param type
223    *          the value of field 'type'.
224    */
225   public void setType(final java.lang.String type)
226   {
227     this._type = type;
228   }
229
230   /**
231    * Method unmarshal.
232    * 
233    * @param reader
234    * @throws org.exolab.castor.xml.MarshalException
235    *           if object is null or if any SAXException is thrown during
236    *           marshaling
237    * @throws org.exolab.castor.xml.ValidationException
238    *           if this object is an invalid instance according to the schema
239    * @return the unmarshaled jalview.binding.Setting
240    */
241   public static jalview.binding.Setting unmarshal(
242           final java.io.Reader reader)
243           throws org.exolab.castor.xml.MarshalException,
244           org.exolab.castor.xml.ValidationException
245   {
246     return (jalview.binding.Setting) Unmarshaller
247             .unmarshal(jalview.binding.Setting.class, reader);
248   }
249
250   /**
251    * 
252    * 
253    * @throws org.exolab.castor.xml.ValidationException
254    *           if this object is an invalid instance according to the schema
255    */
256   public void validate() throws org.exolab.castor.xml.ValidationException
257   {
258     org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
259     validator.validate(this);
260   }
261
262 }