JAL-3120 preserve feature colour/mincolour/maxcolour while modifying,
[jalview.git] / src / jalview / schemabinding / version2 / Group.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.schemabinding.version2;
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 Group.
19  * 
20  * @version $Revision$ $Date$
21  */
22 public class Group implements java.io.Serializable
23 {
24
25   // --------------------------/
26   // - Class/Member Variables -/
27   // --------------------------/
28
29   /**
30    * Field _name.
31    */
32   private java.lang.String _name;
33
34   /**
35    * Field _display.
36    */
37   private boolean _display;
38
39   /**
40    * keeps track of state for field: _display
41    */
42   private boolean _has_display;
43
44   // ----------------/
45   // - Constructors -/
46   // ----------------/
47
48   public Group()
49   {
50     super();
51   }
52
53   // -----------/
54   // - Methods -/
55   // -----------/
56
57   /**
58      */
59   public void deleteDisplay()
60   {
61     this._has_display = false;
62   }
63
64   /**
65    * Returns the value of field 'display'.
66    * 
67    * @return the value of field 'Display'.
68    */
69   public boolean getDisplay()
70   {
71     return this._display;
72   }
73
74   /**
75    * Returns the value of field 'name'.
76    * 
77    * @return the value of field 'Name'.
78    */
79   public java.lang.String getName()
80   {
81     return this._name;
82   }
83
84   /**
85    * Method hasDisplay.
86    * 
87    * @return true if at least one Display has been added
88    */
89   public boolean hasDisplay()
90   {
91     return this._has_display;
92   }
93
94   /**
95    * Returns the value of field 'display'.
96    * 
97    * @return the value of field 'Display'.
98    */
99   public boolean isDisplay()
100   {
101     return this._display;
102   }
103
104   /**
105    * Method isValid.
106    * 
107    * @return true if this object is valid according to the schema
108    */
109   public boolean isValid()
110   {
111     try
112     {
113       validate();
114     } catch (org.exolab.castor.xml.ValidationException vex)
115     {
116       return false;
117     }
118     return true;
119   }
120
121   /**
122    * 
123    * 
124    * @param out
125    * @throws org.exolab.castor.xml.MarshalException
126    *           if object is null or if any SAXException is thrown during
127    *           marshaling
128    * @throws org.exolab.castor.xml.ValidationException
129    *           if this object is an invalid instance according to the schema
130    */
131   public void marshal(final java.io.Writer out)
132           throws org.exolab.castor.xml.MarshalException,
133           org.exolab.castor.xml.ValidationException
134   {
135     Marshaller.marshal(this, out);
136   }
137
138   /**
139    * 
140    * 
141    * @param handler
142    * @throws java.io.IOException
143    *           if an IOException occurs during marshaling
144    * @throws org.exolab.castor.xml.ValidationException
145    *           if this object is an invalid instance according to the schema
146    * @throws org.exolab.castor.xml.MarshalException
147    *           if object is null or if any SAXException is thrown during
148    *           marshaling
149    */
150   public void marshal(final org.xml.sax.ContentHandler handler)
151           throws java.io.IOException,
152           org.exolab.castor.xml.MarshalException,
153           org.exolab.castor.xml.ValidationException
154   {
155     Marshaller.marshal(this, handler);
156   }
157
158   /**
159    * Sets the value of field 'display'.
160    * 
161    * @param display
162    *          the value of field 'display'.
163    */
164   public void setDisplay(final boolean display)
165   {
166     this._display = display;
167     this._has_display = true;
168   }
169
170   /**
171    * Sets the value of field 'name'.
172    * 
173    * @param name
174    *          the value of field 'name'.
175    */
176   public void setName(final java.lang.String name)
177   {
178     this._name = name;
179   }
180
181   /**
182    * Method unmarshal.
183    * 
184    * @param reader
185    * @throws org.exolab.castor.xml.MarshalException
186    *           if object is null or if any SAXException is thrown during
187    *           marshaling
188    * @throws org.exolab.castor.xml.ValidationException
189    *           if this object is an invalid instance according to the schema
190    * @return the unmarshaled jalview.schemabinding.version2.Group
191    */
192   public static jalview.schemabinding.version2.Group unmarshal(
193           final java.io.Reader reader)
194           throws org.exolab.castor.xml.MarshalException,
195           org.exolab.castor.xml.ValidationException
196   {
197     return (jalview.schemabinding.version2.Group) Unmarshaller.unmarshal(
198             jalview.schemabinding.version2.Group.class, reader);
199   }
200
201   /**
202    * 
203    * 
204    * @throws org.exolab.castor.xml.ValidationException
205    *           if this object is an invalid instance according to the schema
206    */
207   public void validate() throws org.exolab.castor.xml.ValidationException
208   {
209     org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
210     validator.validate(this);
211   }
212
213 }