root / trunk / frameworks / _fwAndami / src / com / iver / andami / plugins / config / generate / ExtensionType.java @ 9956
History | View | Annotate | Download (6.33 KB)
1 | 598 | fernando | /*
|
---|---|---|---|
2 | * This class was automatically generated with
|
||
3 | * <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML
|
||
4 | * Schema.
|
||
5 | * $Id$
|
||
6 | */
|
||
7 | |||
8 | package com.iver.andami.plugins.config.generate; |
||
9 | |||
10 | //---------------------------------/
|
||
11 | //- Imported classes and packages -/
|
||
12 | //---------------------------------/
|
||
13 | |||
14 | 6431 | cesar | import java.io.IOException; |
15 | import java.io.Reader; |
||
16 | import java.io.Serializable; |
||
17 | import java.io.Writer; |
||
18 | import org.exolab.castor.xml.MarshalException; |
||
19 | 598 | fernando | import org.exolab.castor.xml.Marshaller; |
20 | import org.exolab.castor.xml.Unmarshaller; |
||
21 | 6431 | cesar | import org.exolab.castor.xml.ValidationException; |
22 | import org.xml.sax.ContentHandler; |
||
23 | 598 | fernando | |
24 | /**
|
||
25 | * Class ExtensionType.
|
||
26 | *
|
||
27 | * @version $Revision$ $Date$
|
||
28 | */
|
||
29 | public class ExtensionType extends com.iver.andami.plugins.config.generate.SkinExtensionType |
||
30 | implements java.io.Serializable
|
||
31 | { |
||
32 | |||
33 | |||
34 | //--------------------------/
|
||
35 | //- Class/Member Variables -/
|
||
36 | //--------------------------/
|
||
37 | |||
38 | /**
|
||
39 | * Field _priority
|
||
40 | */
|
||
41 | private int _priority; |
||
42 | |||
43 | /**
|
||
44 | * keeps track of state for field: _priority
|
||
45 | */
|
||
46 | private boolean _has_priority; |
||
47 | |||
48 | 737 | vcaballero | /**
|
49 | * Field _active
|
||
50 | */
|
||
51 | private boolean _active; |
||
52 | 598 | fernando | |
53 | 737 | vcaballero | /**
|
54 | * keeps track of state for field: _active
|
||
55 | */
|
||
56 | private boolean _has_active; |
||
57 | |||
58 | /**
|
||
59 | * Field _description
|
||
60 | */
|
||
61 | private java.lang.String _description;
|
||
62 | |||
63 | 2862 | jaume | /**
|
64 | * Field _alwaysvisible
|
||
65 | */
|
||
66 | private boolean _alwaysvisible; |
||
67 | 737 | vcaballero | |
68 | 2862 | jaume | /**
|
69 | * keeps track of state for field: _alwaysvisible
|
||
70 | */
|
||
71 | private boolean _has_alwaysvisible; |
||
72 | |||
73 | |||
74 | 598 | fernando | //----------------/
|
75 | //- Constructors -/
|
||
76 | //----------------/
|
||
77 | |||
78 | public ExtensionType() {
|
||
79 | super();
|
||
80 | } //-- com.iver.andami.plugins.config.generate.ExtensionType()
|
||
81 | |||
82 | |||
83 | //-----------/
|
||
84 | //- Methods -/
|
||
85 | //-----------/
|
||
86 | |||
87 | /**
|
||
88 | 737 | vcaballero | * Method deleteActive
|
89 | */
|
||
90 | public void deleteActive() |
||
91 | { |
||
92 | this._has_active= false; |
||
93 | } //-- void deleteActive()
|
||
94 | |||
95 | /**
|
||
96 | 2862 | jaume | * Method deleteAlwaysvisible
|
97 | */
|
||
98 | public void deleteAlwaysvisible() |
||
99 | { |
||
100 | this._has_alwaysvisible= false; |
||
101 | } //-- void deleteAlwaysvisible()
|
||
102 | |||
103 | /**
|
||
104 | 598 | fernando | * Method deletePriority
|
105 | */
|
||
106 | public void deletePriority() |
||
107 | { |
||
108 | this._has_priority= false; |
||
109 | } //-- void deletePriority()
|
||
110 | |||
111 | /**
|
||
112 | 737 | vcaballero | * Returns the value of field 'active'.
|
113 | *
|
||
114 | * @return the value of field 'active'.
|
||
115 | */
|
||
116 | public boolean getActive() |
||
117 | { |
||
118 | return this._active; |
||
119 | } //-- boolean getActive()
|
||
120 | |||
121 | /**
|
||
122 | 2862 | jaume | * Returns the value of field 'alwaysvisible'.
|
123 | *
|
||
124 | * @return the value of field 'alwaysvisible'.
|
||
125 | */
|
||
126 | public boolean getAlwaysvisible() |
||
127 | { |
||
128 | return this._alwaysvisible; |
||
129 | } //-- boolean getAlwaysvisible()
|
||
130 | |||
131 | /**
|
||
132 | 737 | vcaballero | * Returns the value of field 'description'.
|
133 | *
|
||
134 | * @return the value of field 'description'.
|
||
135 | */
|
||
136 | public java.lang.String getDescription()
|
||
137 | { |
||
138 | return this._description; |
||
139 | } //-- java.lang.String getDescription()
|
||
140 | |||
141 | /**
|
||
142 | 598 | fernando | * Returns the value of field 'priority'.
|
143 | *
|
||
144 | * @return the value of field 'priority'.
|
||
145 | */
|
||
146 | public int getPriority() |
||
147 | { |
||
148 | return this._priority; |
||
149 | } //-- int getPriority()
|
||
150 | |||
151 | /**
|
||
152 | 737 | vcaballero | * Method hasActive
|
153 | */
|
||
154 | public boolean hasActive() |
||
155 | { |
||
156 | return this._has_active; |
||
157 | } //-- boolean hasActive()
|
||
158 | |||
159 | /**
|
||
160 | 2862 | jaume | * Method hasAlwaysvisible
|
161 | */
|
||
162 | public boolean hasAlwaysvisible() |
||
163 | { |
||
164 | return this._has_alwaysvisible; |
||
165 | } //-- boolean hasAlwaysvisible()
|
||
166 | |||
167 | /**
|
||
168 | 598 | fernando | * Method hasPriority
|
169 | */
|
||
170 | public boolean hasPriority() |
||
171 | { |
||
172 | return this._has_priority; |
||
173 | } //-- boolean hasPriority()
|
||
174 | |||
175 | /**
|
||
176 | * Method isValid
|
||
177 | */
|
||
178 | public boolean isValid() |
||
179 | { |
||
180 | try {
|
||
181 | validate(); |
||
182 | } |
||
183 | catch (org.exolab.castor.xml.ValidationException vex) {
|
||
184 | return false; |
||
185 | } |
||
186 | return true; |
||
187 | } //-- boolean isValid()
|
||
188 | |||
189 | /**
|
||
190 | * Method marshal
|
||
191 | *
|
||
192 | * @param out
|
||
193 | */
|
||
194 | public void marshal(java.io.Writer out) |
||
195 | throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
||
196 | { |
||
197 | |||
198 | Marshaller.marshal(this, out);
|
||
199 | } //-- void marshal(java.io.Writer)
|
||
200 | |||
201 | /**
|
||
202 | * Method marshal
|
||
203 | *
|
||
204 | * @param handler
|
||
205 | */
|
||
206 | public void marshal(org.xml.sax.ContentHandler handler) |
||
207 | throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
||
208 | { |
||
209 | |||
210 | Marshaller.marshal(this, handler);
|
||
211 | } //-- void marshal(org.xml.sax.ContentHandler)
|
||
212 | |||
213 | /**
|
||
214 | 737 | vcaballero | * Sets the value of field 'active'.
|
215 | *
|
||
216 | * @param active the value of field 'active'.
|
||
217 | */
|
||
218 | public void setActive(boolean active) |
||
219 | { |
||
220 | this._active = active;
|
||
221 | this._has_active = true; |
||
222 | } //-- void setActive(boolean)
|
||
223 | |||
224 | /**
|
||
225 | 2862 | jaume | * Sets the value of field 'alwaysvisible'.
|
226 | *
|
||
227 | * @param alwaysvisible the value of field 'alwaysvisible'.
|
||
228 | */
|
||
229 | public void setAlwaysvisible(boolean alwaysvisible) |
||
230 | { |
||
231 | this._alwaysvisible = alwaysvisible;
|
||
232 | this._has_alwaysvisible = true; |
||
233 | } //-- void setAlwaysvisible(boolean)
|
||
234 | |||
235 | /**
|
||
236 | 737 | vcaballero | * Sets the value of field 'description'.
|
237 | *
|
||
238 | * @param description the value of field 'description'.
|
||
239 | */
|
||
240 | public void setDescription(java.lang.String description) |
||
241 | { |
||
242 | this._description = description;
|
||
243 | } //-- void setDescription(java.lang.String)
|
||
244 | |||
245 | /**
|
||
246 | 598 | fernando | * Sets the value of field 'priority'.
|
247 | *
|
||
248 | * @param priority the value of field 'priority'.
|
||
249 | */
|
||
250 | public void setPriority(int priority) |
||
251 | { |
||
252 | this._priority = priority;
|
||
253 | this._has_priority = true; |
||
254 | } //-- void setPriority(int)
|
||
255 | |||
256 | /**
|
||
257 | * Method unmarshal
|
||
258 | *
|
||
259 | * @param reader
|
||
260 | */
|
||
261 | public static java.lang.Object unmarshal(java.io.Reader reader) |
||
262 | throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
||
263 | { |
||
264 | return (com.iver.andami.plugins.config.generate.ExtensionType) Unmarshaller.unmarshal(com.iver.andami.plugins.config.generate.ExtensionType.class, reader);
|
||
265 | } //-- java.lang.Object unmarshal(java.io.Reader)
|
||
266 | |||
267 | /**
|
||
268 | * Method validate
|
||
269 | */
|
||
270 | public void validate() |
||
271 | throws org.exolab.castor.xml.ValidationException
|
||
272 | { |
||
273 | org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
|
||
274 | validator.validate(this);
|
||
275 | } //-- void validate()
|
||
276 | |||
277 | } |