svn-gvsig-desktop / trunk / frameworks / _fwAndami / src / com / iver / andami / config / generate / AndamiOptionsDescriptor.java @ 11032
History | View | Annotate | Download (6.28 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 org.exolab.castor.mapping.AccessMode; |
15 |
import org.exolab.castor.xml.TypeValidator; |
16 |
import org.exolab.castor.xml.XMLFieldDescriptor; |
17 |
import org.exolab.castor.xml.validators.*; |
18 |
|
19 |
/**
|
20 |
* Class AndamiOptionsDescriptor.
|
21 |
*
|
22 |
* @version $Revision$ $Date$
|
23 |
*/
|
24 |
public class AndamiOptionsDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl { |
25 |
|
26 |
|
27 |
//--------------------------/
|
28 |
//- Class/Member Variables -/
|
29 |
//--------------------------/
|
30 |
|
31 |
/**
|
32 |
* Field nsPrefix
|
33 |
*/
|
34 |
private java.lang.String nsPrefix;
|
35 |
|
36 |
/**
|
37 |
* Field nsURI
|
38 |
*/
|
39 |
private java.lang.String nsURI;
|
40 |
|
41 |
/**
|
42 |
* Field xmlName
|
43 |
*/
|
44 |
private java.lang.String xmlName;
|
45 |
|
46 |
/**
|
47 |
* Field identity
|
48 |
*/
|
49 |
private org.exolab.castor.xml.XMLFieldDescriptor identity;
|
50 |
|
51 |
|
52 |
//----------------/
|
53 |
//- Constructors -/
|
54 |
//----------------/
|
55 |
|
56 |
public AndamiOptionsDescriptor() {
|
57 |
super();
|
58 |
xmlName = "andami-options";
|
59 |
|
60 |
//-- set grouping compositor
|
61 |
setCompositorAsSequence(); |
62 |
org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
|
63 |
org.exolab.castor.xml.XMLFieldHandler handler = null;
|
64 |
org.exolab.castor.xml.FieldValidator fieldValidator = null;
|
65 |
//-- initialize attribute descriptors
|
66 |
|
67 |
//-- initialize element descriptors
|
68 |
|
69 |
//-- _optionList
|
70 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.config.generate.Option.class, "_optionList", "option", org.exolab.castor.xml.NodeType.Element); |
71 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
72 |
public java.lang.Object getValue( java.lang.Object object )
|
73 |
throws IllegalStateException |
74 |
{ |
75 |
AndamiOptions target = (AndamiOptions) object; |
76 |
return target.getOption();
|
77 |
} |
78 |
public void setValue( java.lang.Object object, java.lang.Object value) |
79 |
throws IllegalStateException, IllegalArgumentException |
80 |
{ |
81 |
try {
|
82 |
AndamiOptions target = (AndamiOptions) object; |
83 |
target.addOption( (com.iver.andami.config.generate.Option) value); |
84 |
} |
85 |
catch (java.lang.Exception ex) {
|
86 |
throw new IllegalStateException(ex.toString()); |
87 |
} |
88 |
} |
89 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
90 |
return new com.iver.andami.config.generate.Option(); |
91 |
} |
92 |
} ); |
93 |
desc.setHandler(handler); |
94 |
desc.setMultivalued(true);
|
95 |
addFieldDescriptor(desc); |
96 |
|
97 |
//-- validation code for: _optionList
|
98 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
99 |
fieldValidator.setMinOccurs(0);
|
100 |
{ //-- local scope
|
101 |
} |
102 |
desc.setValidator(fieldValidator); |
103 |
//-- _iconTheme
|
104 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.config.generate.IconTheme.class, "_iconTheme", "icon-theme", org.exolab.castor.xml.NodeType.Element); |
105 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
106 |
public java.lang.Object getValue( java.lang.Object object )
|
107 |
throws IllegalStateException |
108 |
{ |
109 |
AndamiOptions target = (AndamiOptions) object; |
110 |
return target.getIconTheme();
|
111 |
} |
112 |
public void setValue( java.lang.Object object, java.lang.Object value) |
113 |
throws IllegalStateException, IllegalArgumentException |
114 |
{ |
115 |
try {
|
116 |
AndamiOptions target = (AndamiOptions) object; |
117 |
target.setIconTheme( (com.iver.andami.config.generate.IconTheme) value); |
118 |
} |
119 |
catch (java.lang.Exception ex) {
|
120 |
throw new IllegalStateException(ex.toString()); |
121 |
} |
122 |
} |
123 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
124 |
return new com.iver.andami.config.generate.IconTheme(); |
125 |
} |
126 |
} ); |
127 |
desc.setHandler(handler); |
128 |
desc.setMultivalued(false);
|
129 |
addFieldDescriptor(desc); |
130 |
|
131 |
//-- validation code for: _iconTheme
|
132 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
133 |
{ //-- local scope
|
134 |
} |
135 |
desc.setValidator(fieldValidator); |
136 |
} //-- com.iver.andami.config.generate.AndamiOptionsDescriptor()
|
137 |
|
138 |
|
139 |
//-----------/
|
140 |
//- Methods -/
|
141 |
//-----------/
|
142 |
|
143 |
/**
|
144 |
* Method getAccessMode
|
145 |
*/
|
146 |
public org.exolab.castor.mapping.AccessMode getAccessMode()
|
147 |
{ |
148 |
return null; |
149 |
} //-- org.exolab.castor.mapping.AccessMode getAccessMode()
|
150 |
|
151 |
/**
|
152 |
* Method getExtends
|
153 |
*/
|
154 |
public org.exolab.castor.mapping.ClassDescriptor getExtends()
|
155 |
{ |
156 |
return null; |
157 |
} //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
|
158 |
|
159 |
/**
|
160 |
* Method getIdentity
|
161 |
*/
|
162 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
163 |
{ |
164 |
return identity;
|
165 |
} //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
166 |
|
167 |
/**
|
168 |
* Method getJavaClass
|
169 |
*/
|
170 |
public java.lang.Class getJavaClass()
|
171 |
{ |
172 |
return com.iver.andami.config.generate.AndamiOptions.class;
|
173 |
} //-- java.lang.Class getJavaClass()
|
174 |
|
175 |
/**
|
176 |
* Method getNameSpacePrefix
|
177 |
*/
|
178 |
public java.lang.String getNameSpacePrefix()
|
179 |
{ |
180 |
return nsPrefix;
|
181 |
} //-- java.lang.String getNameSpacePrefix()
|
182 |
|
183 |
/**
|
184 |
* Method getNameSpaceURI
|
185 |
*/
|
186 |
public java.lang.String getNameSpaceURI()
|
187 |
{ |
188 |
return nsURI;
|
189 |
} //-- java.lang.String getNameSpaceURI()
|
190 |
|
191 |
/**
|
192 |
* Method getValidator
|
193 |
*/
|
194 |
public org.exolab.castor.xml.TypeValidator getValidator()
|
195 |
{ |
196 |
return this; |
197 |
} //-- org.exolab.castor.xml.TypeValidator getValidator()
|
198 |
|
199 |
/**
|
200 |
* Method getXMLName
|
201 |
*/
|
202 |
public java.lang.String getXMLName()
|
203 |
{ |
204 |
return xmlName;
|
205 |
} //-- java.lang.String getXMLName()
|
206 |
|
207 |
} |