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