Revision 40403 branches/v2_0_0_prep/frameworks/_fwAndami/src/org/gvsig/andami/plugins/config/generate/PluginConfigDescriptor.java
PluginConfigDescriptor.java | ||
---|---|---|
135 | 135 |
{ //-- local scope |
136 | 136 |
} |
137 | 137 |
desc.setValidator(fieldValidator); |
138 |
|
|
139 |
|
|
140 |
|
|
138 | 141 |
//-- _dependsList |
139 | 142 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.gvsig.andami.plugins.config.generate.Depends.class, "_dependsList", "depends", org.exolab.castor.xml.NodeType.Element); |
140 | 143 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() { |
... | ... | |
168 | 171 |
fieldValidator.setMinOccurs(0); |
169 | 172 |
{ //-- local scope |
170 | 173 |
} |
174 |
|
|
175 |
//-- _alternativeNamesList |
|
176 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.gvsig.andami.plugins.config.generate.AlternativeNames.class, "alternativeNames", "alternativeName", org.exolab.castor.xml.NodeType.Element); |
|
177 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() { |
|
178 |
public java.lang.Object getValue( java.lang.Object object ) |
|
179 |
throws IllegalStateException |
|
180 |
{ |
|
181 |
PluginConfig target = (PluginConfig) object; |
|
182 |
return target.getAlternativeNames(); |
|
183 |
} |
|
184 |
public void setValue( java.lang.Object object, java.lang.Object value) |
|
185 |
throws IllegalStateException, IllegalArgumentException |
|
186 |
{ |
|
187 |
try { |
|
188 |
PluginConfig target = (PluginConfig) object; |
|
189 |
target.addAlternativeNames( (org.gvsig.andami.plugins.config.generate.AlternativeNames) value); |
|
190 |
} |
|
191 |
catch (java.lang.Exception ex) { |
|
192 |
throw new IllegalStateException(ex.toString()); |
|
193 |
} |
|
194 |
} |
|
195 |
public java.lang.Object newInstance( java.lang.Object parent ) { |
|
196 |
return new org.gvsig.andami.plugins.config.generate.AlternativeNames(); |
|
197 |
} |
|
198 |
} ); |
|
199 |
desc.setHandler(handler); |
|
200 |
desc.setMultivalued(true); |
|
201 |
addFieldDescriptor(desc); |
|
202 |
|
|
203 |
//-- validation code for: _alternativeNamesList |
|
204 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
|
205 |
fieldValidator.setMinOccurs(0); |
|
206 |
{ //-- local scope |
|
207 |
} |
|
208 |
|
|
171 | 209 |
desc.setValidator(fieldValidator); |
172 | 210 |
//-- _resourceBundle |
173 | 211 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.gvsig.andami.plugins.config.generate.ResourceBundle.class, "_resourceBundle", "resourceBundle", org.exolab.castor.xml.NodeType.Element); |
Also available in: Unified diff