svn-gvsig-desktop / trunk / frameworks / _fwAndami / src / com / iver / andami / plugins / config / generate / ComboButtonElementDescriptor.java @ 6431
History | View | Annotate | Download (6.19 KB)
1 | 6431 | cesar | /*
|
---|---|---|---|
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 | 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 ComboButtonElementDescriptor.
|
||
21 | *
|
||
22 | * @version $Revision$ $Date$
|
||
23 | */
|
||
24 | public class ComboButtonElementDescriptor 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 ComboButtonElementDescriptor() {
|
||
57 | super();
|
||
58 | xmlName = "combo-button-element";
|
||
59 | org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
|
||
60 | org.exolab.castor.xml.XMLFieldHandler handler = null;
|
||
61 | org.exolab.castor.xml.FieldValidator fieldValidator = null;
|
||
62 | //-- initialize attribute descriptors
|
||
63 | |||
64 | //-- _icon
|
||
65 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_icon", "icon", org.exolab.castor.xml.NodeType.Attribute); |
||
66 | handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
||
67 | public java.lang.Object getValue( java.lang.Object object )
|
||
68 | throws IllegalStateException |
||
69 | { |
||
70 | ComboButtonElement target = (ComboButtonElement) object; |
||
71 | return target.getIcon();
|
||
72 | } |
||
73 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
74 | throws IllegalStateException, IllegalArgumentException |
||
75 | { |
||
76 | try {
|
||
77 | ComboButtonElement target = (ComboButtonElement) object; |
||
78 | target.setIcon( (java.lang.Object) value); |
||
79 | } |
||
80 | catch (java.lang.Exception ex) {
|
||
81 | throw new IllegalStateException(ex.toString()); |
||
82 | } |
||
83 | } |
||
84 | public java.lang.Object newInstance( java.lang.Object parent ) {
|
||
85 | return new java.lang.Object(); |
||
86 | } |
||
87 | } ); |
||
88 | desc.setHandler(handler); |
||
89 | desc.setRequired(true);
|
||
90 | addFieldDescriptor(desc); |
||
91 | |||
92 | //-- validation code for: _icon
|
||
93 | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
||
94 | fieldValidator.setMinOccurs(1);
|
||
95 | { //-- local scope
|
||
96 | } |
||
97 | desc.setValidator(fieldValidator); |
||
98 | //-- _actionCommand
|
||
99 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_actionCommand", "action-command", org.exolab.castor.xml.NodeType.Attribute); |
||
100 | handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
||
101 | public java.lang.Object getValue( java.lang.Object object )
|
||
102 | throws IllegalStateException |
||
103 | { |
||
104 | ComboButtonElement target = (ComboButtonElement) object; |
||
105 | return target.getActionCommand();
|
||
106 | } |
||
107 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
108 | throws IllegalStateException, IllegalArgumentException |
||
109 | { |
||
110 | try {
|
||
111 | ComboButtonElement target = (ComboButtonElement) object; |
||
112 | target.setActionCommand( (java.lang.Object) value); |
||
113 | } |
||
114 | catch (java.lang.Exception ex) {
|
||
115 | throw new IllegalStateException(ex.toString()); |
||
116 | } |
||
117 | } |
||
118 | public java.lang.Object newInstance( java.lang.Object parent ) {
|
||
119 | return new java.lang.Object(); |
||
120 | } |
||
121 | } ); |
||
122 | desc.setHandler(handler); |
||
123 | desc.setRequired(true);
|
||
124 | addFieldDescriptor(desc); |
||
125 | |||
126 | //-- validation code for: _actionCommand
|
||
127 | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
||
128 | fieldValidator.setMinOccurs(1);
|
||
129 | { //-- local scope
|
||
130 | } |
||
131 | desc.setValidator(fieldValidator); |
||
132 | //-- initialize element descriptors
|
||
133 | |||
134 | } //-- com.iver.andami.plugins.config.generate.ComboButtonElementDescriptor()
|
||
135 | |||
136 | |||
137 | //-----------/
|
||
138 | //- Methods -/
|
||
139 | //-----------/
|
||
140 | |||
141 | /**
|
||
142 | * Method getAccessMode
|
||
143 | */
|
||
144 | public org.exolab.castor.mapping.AccessMode getAccessMode()
|
||
145 | { |
||
146 | return null; |
||
147 | } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
|
||
148 | |||
149 | /**
|
||
150 | * Method getExtends
|
||
151 | */
|
||
152 | public org.exolab.castor.mapping.ClassDescriptor getExtends()
|
||
153 | { |
||
154 | return null; |
||
155 | } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
|
||
156 | |||
157 | /**
|
||
158 | * Method getIdentity
|
||
159 | */
|
||
160 | public org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
||
161 | { |
||
162 | return identity;
|
||
163 | } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
||
164 | |||
165 | /**
|
||
166 | * Method getJavaClass
|
||
167 | */
|
||
168 | public java.lang.Class getJavaClass()
|
||
169 | { |
||
170 | return com.iver.andami.plugins.config.generate.ComboButtonElement.class;
|
||
171 | } //-- java.lang.Class getJavaClass()
|
||
172 | |||
173 | /**
|
||
174 | * Method getNameSpacePrefix
|
||
175 | */
|
||
176 | public java.lang.String getNameSpacePrefix()
|
||
177 | { |
||
178 | return nsPrefix;
|
||
179 | } //-- java.lang.String getNameSpacePrefix()
|
||
180 | |||
181 | /**
|
||
182 | * Method getNameSpaceURI
|
||
183 | */
|
||
184 | public java.lang.String getNameSpaceURI()
|
||
185 | { |
||
186 | return nsURI;
|
||
187 | } //-- java.lang.String getNameSpaceURI()
|
||
188 | |||
189 | /**
|
||
190 | * Method getValidator
|
||
191 | */
|
||
192 | public org.exolab.castor.xml.TypeValidator getValidator()
|
||
193 | { |
||
194 | return this; |
||
195 | } //-- org.exolab.castor.xml.TypeValidator getValidator()
|
||
196 | |||
197 | /**
|
||
198 | * Method getXMLName
|
||
199 | */
|
||
200 | public java.lang.String getXMLName()
|
||
201 | { |
||
202 | return xmlName;
|
||
203 | } //-- java.lang.String getXMLName()
|
||
204 | |||
205 | } |