added feature type order preference attribute and visible feature group state element
[jalview.git] / src / jalview / schemabinding / version2 / Group.java
1 /*\r
2  * This class was automatically generated with \r
3  * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
4  * Schema.\r
5  * $Id$\r
6  */\r
7 \r
8 package jalview.schemabinding.version2;\r
9 \r
10   //---------------------------------/\r
11  //- Imported classes and packages -/\r
12 //---------------------------------/\r
13 \r
14 import java.io.IOException;\r
15 import java.io.Reader;\r
16 import java.io.Serializable;\r
17 import java.io.Writer;\r
18 import org.exolab.castor.xml.MarshalException;\r
19 import org.exolab.castor.xml.Marshaller;\r
20 import org.exolab.castor.xml.Unmarshaller;\r
21 import org.exolab.castor.xml.ValidationException;\r
22 import org.xml.sax.ContentHandler;\r
23 \r
24 /**\r
25  * Class Group.\r
26  * \r
27  * @version $Revision$ $Date$\r
28  */\r
29 public class Group implements java.io.Serializable {\r
30 \r
31 \r
32       //--------------------------/\r
33      //- Class/Member Variables -/\r
34     //--------------------------/\r
35 \r
36     /**\r
37      * Field _name\r
38      */\r
39     private java.lang.String _name;\r
40 \r
41     /**\r
42      * Field _display\r
43      */\r
44     private boolean _display;\r
45 \r
46     /**\r
47      * keeps track of state for field: _display\r
48      */\r
49     private boolean _has_display;\r
50 \r
51 \r
52       //----------------/\r
53      //- Constructors -/\r
54     //----------------/\r
55 \r
56     public Group() {\r
57         super();\r
58     } //-- jalview.schemabinding.version2.Group()\r
59 \r
60 \r
61       //-----------/\r
62      //- Methods -/\r
63     //-----------/\r
64 \r
65     /**\r
66      * Method deleteDisplay\r
67      * \r
68      */\r
69     public void deleteDisplay()\r
70     {\r
71         this._has_display= false;\r
72     } //-- void deleteDisplay() \r
73 \r
74     /**\r
75      * Returns the value of field 'display'.\r
76      * \r
77      * @return boolean\r
78      * @return the value of field 'display'.\r
79      */\r
80     public boolean getDisplay()\r
81     {\r
82         return this._display;\r
83     } //-- boolean getDisplay() \r
84 \r
85     /**\r
86      * Returns the value of field 'name'.\r
87      * \r
88      * @return String\r
89      * @return the value of field 'name'.\r
90      */\r
91     public java.lang.String getName()\r
92     {\r
93         return this._name;\r
94     } //-- java.lang.String getName() \r
95 \r
96     /**\r
97      * Method hasDisplay\r
98      * \r
99      * \r
100      * \r
101      * @return boolean\r
102      */\r
103     public boolean hasDisplay()\r
104     {\r
105         return this._has_display;\r
106     } //-- boolean hasDisplay() \r
107 \r
108     /**\r
109      * Method isValid\r
110      * \r
111      * \r
112      * \r
113      * @return boolean\r
114      */\r
115     public boolean isValid()\r
116     {\r
117         try {\r
118             validate();\r
119         }\r
120         catch (org.exolab.castor.xml.ValidationException vex) {\r
121             return false;\r
122         }\r
123         return true;\r
124     } //-- boolean isValid() \r
125 \r
126     /**\r
127      * Method marshal\r
128      * \r
129      * \r
130      * \r
131      * @param out\r
132      */\r
133     public void marshal(java.io.Writer out)\r
134         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
135     {\r
136         \r
137         Marshaller.marshal(this, out);\r
138     } //-- void marshal(java.io.Writer) \r
139 \r
140     /**\r
141      * Method marshal\r
142      * \r
143      * \r
144      * \r
145      * @param handler\r
146      */\r
147     public void marshal(org.xml.sax.ContentHandler handler)\r
148         throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
149     {\r
150         \r
151         Marshaller.marshal(this, handler);\r
152     } //-- void marshal(org.xml.sax.ContentHandler) \r
153 \r
154     /**\r
155      * Sets the value of field 'display'.\r
156      * \r
157      * @param display the value of field 'display'.\r
158      */\r
159     public void setDisplay(boolean display)\r
160     {\r
161         this._display = display;\r
162         this._has_display = true;\r
163     } //-- void setDisplay(boolean) \r
164 \r
165     /**\r
166      * Sets the value of field 'name'.\r
167      * \r
168      * @param name the value of field 'name'.\r
169      */\r
170     public void setName(java.lang.String name)\r
171     {\r
172         this._name = name;\r
173     } //-- void setName(java.lang.String) \r
174 \r
175     /**\r
176      * Method unmarshal\r
177      * \r
178      * \r
179      * \r
180      * @param reader\r
181      * @return Object\r
182      */\r
183     public static java.lang.Object unmarshal(java.io.Reader reader)\r
184         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
185     {\r
186         return (jalview.schemabinding.version2.Group) Unmarshaller.unmarshal(jalview.schemabinding.version2.Group.class, reader);\r
187     } //-- java.lang.Object unmarshal(java.io.Reader) \r
188 \r
189     /**\r
190      * Method validate\r
191      * \r
192      */\r
193     public void validate()\r
194         throws org.exolab.castor.xml.ValidationException\r
195     {\r
196         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
197         validator.validate(this);\r
198     } //-- void validate() \r
199 \r
200 }\r