root / branches / v2_0_0_prep / frameworks / _fwAndami / src / org / gvsig / andami / plugins / config / generate / ComboButtonDescriptor.java @ 29593
History | View | Annotate | Download (7.91 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: ComboButtonDescriptor.java 29593 2009-06-29 15:54:31Z jpiera $
|
6 |
*/
|
7 |
|
8 |
package org.gvsig.andami.plugins.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 ComboButtonDescriptor.
|
21 |
*
|
22 |
* @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (Mon, 29 Jun 2009) $
|
23 |
*/
|
24 |
public class ComboButtonDescriptor 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 ComboButtonDescriptor() {
|
57 |
super();
|
58 |
xmlName = "combo-button";
|
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 |
//-- _name
|
68 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute); |
69 |
desc.setImmutable(true);
|
70 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
71 |
public java.lang.Object getValue( java.lang.Object object )
|
72 |
throws IllegalStateException |
73 |
{ |
74 |
ComboButton target = (ComboButton) object; |
75 |
return target.getName();
|
76 |
} |
77 |
public void setValue( java.lang.Object object, java.lang.Object value) |
78 |
throws IllegalStateException, IllegalArgumentException |
79 |
{ |
80 |
try {
|
81 |
ComboButton target = (ComboButton) object; |
82 |
target.setName( (java.lang.String) value); |
83 |
} |
84 |
catch (java.lang.Exception ex) {
|
85 |
throw new IllegalStateException(ex.toString()); |
86 |
} |
87 |
} |
88 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
89 |
return null; |
90 |
} |
91 |
} ); |
92 |
desc.setHandler(handler); |
93 |
desc.setRequired(true);
|
94 |
addFieldDescriptor(desc); |
95 |
|
96 |
//-- validation code for: _name
|
97 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
98 |
fieldValidator.setMinOccurs(1);
|
99 |
{ //-- local scope
|
100 |
StringValidator typeValidator = new StringValidator();
|
101 |
typeValidator.setWhiteSpace("preserve");
|
102 |
fieldValidator.setValidator(typeValidator); |
103 |
} |
104 |
desc.setValidator(fieldValidator); |
105 |
//-- _position
|
106 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_position", "position", org.exolab.castor.xml.NodeType.Attribute); |
107 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
108 |
public java.lang.Object getValue( java.lang.Object object )
|
109 |
throws IllegalStateException |
110 |
{ |
111 |
ComboButton target = (ComboButton) object; |
112 |
return target.getPosition();
|
113 |
} |
114 |
public void setValue( java.lang.Object object, java.lang.Object value) |
115 |
throws IllegalStateException, IllegalArgumentException |
116 |
{ |
117 |
try {
|
118 |
ComboButton target = (ComboButton) object; |
119 |
target.setPosition( (java.lang.Object) value); |
120 |
} |
121 |
catch (java.lang.Exception ex) {
|
122 |
throw new IllegalStateException(ex.toString()); |
123 |
} |
124 |
} |
125 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
126 |
return new java.lang.Object(); |
127 |
} |
128 |
} ); |
129 |
desc.setHandler(handler); |
130 |
addFieldDescriptor(desc); |
131 |
|
132 |
//-- validation code for: _position
|
133 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
134 |
{ //-- local scope
|
135 |
} |
136 |
desc.setValidator(fieldValidator); |
137 |
//-- initialize element descriptors
|
138 |
|
139 |
//-- _comboButtonElementList
|
140 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.gvsig.andami.plugins.config.generate.ComboButtonElement.class, "_comboButtonElementList", "combo-button-element", org.exolab.castor.xml.NodeType.Element); |
141 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
142 |
public java.lang.Object getValue( java.lang.Object object )
|
143 |
throws IllegalStateException |
144 |
{ |
145 |
ComboButton target = (ComboButton) object; |
146 |
return target.getComboButtonElement();
|
147 |
} |
148 |
public void setValue( java.lang.Object object, java.lang.Object value) |
149 |
throws IllegalStateException, IllegalArgumentException |
150 |
{ |
151 |
try {
|
152 |
ComboButton target = (ComboButton) object; |
153 |
target.addComboButtonElement( (org.gvsig.andami.plugins.config.generate.ComboButtonElement) value); |
154 |
} |
155 |
catch (java.lang.Exception ex) {
|
156 |
throw new IllegalStateException(ex.toString()); |
157 |
} |
158 |
} |
159 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
160 |
return new org.gvsig.andami.plugins.config.generate.ComboButtonElement(); |
161 |
} |
162 |
} ); |
163 |
desc.setHandler(handler); |
164 |
desc.setMultivalued(true);
|
165 |
addFieldDescriptor(desc); |
166 |
|
167 |
//-- validation code for: _comboButtonElementList
|
168 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
169 |
fieldValidator.setMinOccurs(0);
|
170 |
{ //-- local scope
|
171 |
} |
172 |
desc.setValidator(fieldValidator); |
173 |
} //-- com.iver.andami.plugins.config.generate.ComboButtonDescriptor()
|
174 |
|
175 |
|
176 |
//-----------/
|
177 |
//- Methods -/
|
178 |
//-----------/
|
179 |
|
180 |
/**
|
181 |
* Method getAccessMode
|
182 |
*/
|
183 |
public org.exolab.castor.mapping.AccessMode getAccessMode()
|
184 |
{ |
185 |
return null; |
186 |
} //-- org.exolab.castor.mapping.AccessMode getAccessMode()
|
187 |
|
188 |
/**
|
189 |
* Method getExtends
|
190 |
*/
|
191 |
public org.exolab.castor.mapping.ClassDescriptor getExtends()
|
192 |
{ |
193 |
return null; |
194 |
} //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
|
195 |
|
196 |
/**
|
197 |
* Method getIdentity
|
198 |
*/
|
199 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
200 |
{ |
201 |
return identity;
|
202 |
} //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
203 |
|
204 |
/**
|
205 |
* Method getJavaClass
|
206 |
*/
|
207 |
public java.lang.Class getJavaClass()
|
208 |
{ |
209 |
return org.gvsig.andami.plugins.config.generate.ComboButton.class;
|
210 |
} //-- java.lang.Class getJavaClass()
|
211 |
|
212 |
/**
|
213 |
* Method getNameSpacePrefix
|
214 |
*/
|
215 |
public java.lang.String getNameSpacePrefix()
|
216 |
{ |
217 |
return nsPrefix;
|
218 |
} //-- java.lang.String getNameSpacePrefix()
|
219 |
|
220 |
/**
|
221 |
* Method getNameSpaceURI
|
222 |
*/
|
223 |
public java.lang.String getNameSpaceURI()
|
224 |
{ |
225 |
return nsURI;
|
226 |
} //-- java.lang.String getNameSpaceURI()
|
227 |
|
228 |
/**
|
229 |
* Method getValidator
|
230 |
*/
|
231 |
public org.exolab.castor.xml.TypeValidator getValidator()
|
232 |
{ |
233 |
return this; |
234 |
} //-- org.exolab.castor.xml.TypeValidator getValidator()
|
235 |
|
236 |
/**
|
237 |
* Method getXMLName
|
238 |
*/
|
239 |
public java.lang.String getXMLName()
|
240 |
{ |
241 |
return xmlName;
|
242 |
} //-- java.lang.String getXMLName()
|
243 |
|
244 |
} |