root / trunk / frameworks / _fwAndami / src / com / iver / andami / config / generate / IconTheme.java @ 11032
History | View | Annotate | Download (5.48 KB)
1 |
/*
|
---|---|
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.config.generate; |
9 |
|
10 |
//---------------------------------/
|
11 |
//- Imported classes and packages -/
|
12 |
//---------------------------------/
|
13 |
|
14 |
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 |
import org.exolab.castor.xml.Marshaller; |
20 |
import org.exolab.castor.xml.Unmarshaller; |
21 |
import org.exolab.castor.xml.ValidationException; |
22 |
import org.xml.sax.ContentHandler; |
23 |
|
24 |
/**
|
25 |
* Class IconTheme.
|
26 |
*
|
27 |
* @version $Revision$ $Date$
|
28 |
*/
|
29 |
public class IconTheme implements java.io.Serializable { |
30 |
|
31 |
|
32 |
//--------------------------/
|
33 |
//- Class/Member Variables -/
|
34 |
//--------------------------/
|
35 |
|
36 |
/**
|
37 |
* Field _name
|
38 |
*/
|
39 |
private java.lang.String _name;
|
40 |
|
41 |
/**
|
42 |
* Field _description
|
43 |
*/
|
44 |
private java.lang.String _description;
|
45 |
|
46 |
/**
|
47 |
* Field _version
|
48 |
*/
|
49 |
private java.lang.String _version;
|
50 |
|
51 |
/**
|
52 |
* Field _resource
|
53 |
*/
|
54 |
private java.lang.String _resource;
|
55 |
|
56 |
/**
|
57 |
* Field _basedir
|
58 |
*/
|
59 |
private java.lang.String _basedir;
|
60 |
|
61 |
|
62 |
//----------------/
|
63 |
//- Constructors -/
|
64 |
//----------------/
|
65 |
|
66 |
public IconTheme() {
|
67 |
super();
|
68 |
} //-- com.iver.andami.config.generate.IconTheme()
|
69 |
|
70 |
|
71 |
//-----------/
|
72 |
//- Methods -/
|
73 |
//-----------/
|
74 |
|
75 |
/**
|
76 |
* Returns the value of field 'basedir'.
|
77 |
*
|
78 |
* @return the value of field 'basedir'.
|
79 |
*/
|
80 |
public java.lang.String getBasedir()
|
81 |
{ |
82 |
return this._basedir; |
83 |
} //-- java.lang.String getBasedir()
|
84 |
|
85 |
/**
|
86 |
* Returns the value of field 'description'.
|
87 |
*
|
88 |
* @return the value of field 'description'.
|
89 |
*/
|
90 |
public java.lang.String getDescription()
|
91 |
{ |
92 |
return this._description; |
93 |
} //-- java.lang.String getDescription()
|
94 |
|
95 |
/**
|
96 |
* Returns the value of field 'name'.
|
97 |
*
|
98 |
* @return the value of field 'name'.
|
99 |
*/
|
100 |
public java.lang.String getName()
|
101 |
{ |
102 |
return this._name; |
103 |
} //-- java.lang.String getName()
|
104 |
|
105 |
/**
|
106 |
* Returns the value of field 'resource'.
|
107 |
*
|
108 |
* @return the value of field 'resource'.
|
109 |
*/
|
110 |
public java.lang.String getResource()
|
111 |
{ |
112 |
return this._resource; |
113 |
} //-- java.lang.String getResource()
|
114 |
|
115 |
/**
|
116 |
* Returns the value of field 'version'.
|
117 |
*
|
118 |
* @return the value of field 'version'.
|
119 |
*/
|
120 |
public java.lang.String getVersion()
|
121 |
{ |
122 |
return this._version; |
123 |
} //-- java.lang.String getVersion()
|
124 |
|
125 |
/**
|
126 |
* Method isValid
|
127 |
*/
|
128 |
public boolean isValid() |
129 |
{ |
130 |
try {
|
131 |
validate(); |
132 |
} |
133 |
catch (org.exolab.castor.xml.ValidationException vex) {
|
134 |
return false; |
135 |
} |
136 |
return true; |
137 |
} //-- boolean isValid()
|
138 |
|
139 |
/**
|
140 |
* Method marshal
|
141 |
*
|
142 |
* @param out
|
143 |
*/
|
144 |
public void marshal(java.io.Writer out) |
145 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
146 |
{ |
147 |
|
148 |
Marshaller.marshal(this, out);
|
149 |
} //-- void marshal(java.io.Writer)
|
150 |
|
151 |
/**
|
152 |
* Method marshal
|
153 |
*
|
154 |
* @param handler
|
155 |
*/
|
156 |
public void marshal(org.xml.sax.ContentHandler handler) |
157 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
158 |
{ |
159 |
|
160 |
Marshaller.marshal(this, handler);
|
161 |
} //-- void marshal(org.xml.sax.ContentHandler)
|
162 |
|
163 |
/**
|
164 |
* Sets the value of field 'basedir'.
|
165 |
*
|
166 |
* @param basedir the value of field 'basedir'.
|
167 |
*/
|
168 |
public void setBasedir(java.lang.String basedir) |
169 |
{ |
170 |
this._basedir = basedir;
|
171 |
} //-- void setBasedir(java.lang.String)
|
172 |
|
173 |
/**
|
174 |
* Sets the value of field 'description'.
|
175 |
*
|
176 |
* @param description the value of field 'description'.
|
177 |
*/
|
178 |
public void setDescription(java.lang.String description) |
179 |
{ |
180 |
this._description = description;
|
181 |
} //-- void setDescription(java.lang.String)
|
182 |
|
183 |
/**
|
184 |
* Sets the value of field 'name'.
|
185 |
*
|
186 |
* @param name the value of field 'name'.
|
187 |
*/
|
188 |
public void setName(java.lang.String name) |
189 |
{ |
190 |
this._name = name;
|
191 |
} //-- void setName(java.lang.String)
|
192 |
|
193 |
/**
|
194 |
* Sets the value of field 'resource'.
|
195 |
*
|
196 |
* @param resource the value of field 'resource'.
|
197 |
*/
|
198 |
public void setResource(java.lang.String resource) |
199 |
{ |
200 |
this._resource = resource;
|
201 |
} //-- void setResource(java.lang.String)
|
202 |
|
203 |
/**
|
204 |
* Sets the value of field 'version'.
|
205 |
*
|
206 |
* @param version the value of field 'version'.
|
207 |
*/
|
208 |
public void setVersion(java.lang.String version) |
209 |
{ |
210 |
this._version = version;
|
211 |
} //-- void setVersion(java.lang.String)
|
212 |
|
213 |
/**
|
214 |
* Method unmarshal
|
215 |
*
|
216 |
* @param reader
|
217 |
*/
|
218 |
public static java.lang.Object unmarshal(java.io.Reader reader) |
219 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
220 |
{ |
221 |
return (com.iver.andami.config.generate.IconTheme) Unmarshaller.unmarshal(com.iver.andami.config.generate.IconTheme.class, reader);
|
222 |
} //-- java.lang.Object unmarshal(java.io.Reader)
|
223 |
|
224 |
/**
|
225 |
* Method validate
|
226 |
*/
|
227 |
public void validate() |
228 |
throws org.exolab.castor.xml.ValidationException
|
229 |
{ |
230 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
|
231 |
validator.validate(this);
|
232 |
} //-- void validate()
|
233 |
|
234 |
} |