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