svn-gvsig-desktop / trunk / frameworks / _fwAndami / src / com / iver / andami / plugins / config / generate / ExtensionsDescriptor.java @ 6431
History | View | Annotate | Download (6.4 KB)
1 | 598 | fernando | /*
|
---|---|---|---|
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 | 6431 | cesar | 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 | 598 | fernando | |
19 | /**
|
||
20 | * Class ExtensionsDescriptor.
|
||
21 | *
|
||
22 | * @version $Revision$ $Date$
|
||
23 | */
|
||
24 | public class ExtensionsDescriptor 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 ExtensionsDescriptor() {
|
||
57 | super();
|
||
58 | xmlName = "extensions";
|
||
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 | //-- _extensionList
|
||
70 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.plugins.config.generate.Extension.class, "_extensionList", "extension", 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 | Extensions target = (Extensions) object; |
||
76 | return target.getExtension();
|
||
77 | } |
||
78 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
79 | throws IllegalStateException, IllegalArgumentException |
||
80 | { |
||
81 | try {
|
||
82 | Extensions target = (Extensions) object; |
||
83 | target.addExtension( (com.iver.andami.plugins.config.generate.Extension) 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.plugins.config.generate.Extension(); |
||
91 | } |
||
92 | } ); |
||
93 | desc.setHandler(handler); |
||
94 | desc.setRequired(true);
|
||
95 | desc.setMultivalued(true);
|
||
96 | addFieldDescriptor(desc); |
||
97 | |||
98 | //-- validation code for: _extensionList
|
||
99 | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
||
100 | fieldValidator.setMinOccurs(1);
|
||
101 | { //-- local scope
|
||
102 | } |
||
103 | desc.setValidator(fieldValidator); |
||
104 | //-- _skinExtension
|
||
105 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.plugins.config.generate.SkinExtension.class, "_skinExtension", "skin-extension", org.exolab.castor.xml.NodeType.Element); |
||
106 | handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
||
107 | public java.lang.Object getValue( java.lang.Object object )
|
||
108 | throws IllegalStateException |
||
109 | { |
||
110 | Extensions target = (Extensions) object; |
||
111 | return target.getSkinExtension();
|
||
112 | } |
||
113 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
114 | throws IllegalStateException, IllegalArgumentException |
||
115 | { |
||
116 | try {
|
||
117 | Extensions target = (Extensions) object; |
||
118 | target.setSkinExtension( (com.iver.andami.plugins.config.generate.SkinExtension) value); |
||
119 | } |
||
120 | catch (java.lang.Exception ex) {
|
||
121 | throw new IllegalStateException(ex.toString()); |
||
122 | } |
||
123 | } |
||
124 | public java.lang.Object newInstance( java.lang.Object parent ) {
|
||
125 | return new com.iver.andami.plugins.config.generate.SkinExtension(); |
||
126 | } |
||
127 | } ); |
||
128 | desc.setHandler(handler); |
||
129 | desc.setMultivalued(false);
|
||
130 | addFieldDescriptor(desc); |
||
131 | |||
132 | //-- validation code for: _skinExtension
|
||
133 | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
||
134 | { //-- local scope
|
||
135 | } |
||
136 | desc.setValidator(fieldValidator); |
||
137 | } //-- com.iver.andami.plugins.config.generate.ExtensionsDescriptor()
|
||
138 | |||
139 | |||
140 | //-----------/
|
||
141 | //- Methods -/
|
||
142 | //-----------/
|
||
143 | |||
144 | /**
|
||
145 | * Method getAccessMode
|
||
146 | */
|
||
147 | public org.exolab.castor.mapping.AccessMode getAccessMode()
|
||
148 | { |
||
149 | return null; |
||
150 | } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
|
||
151 | |||
152 | /**
|
||
153 | * Method getExtends
|
||
154 | */
|
||
155 | public org.exolab.castor.mapping.ClassDescriptor getExtends()
|
||
156 | { |
||
157 | return null; |
||
158 | } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
|
||
159 | |||
160 | /**
|
||
161 | * Method getIdentity
|
||
162 | */
|
||
163 | public org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
||
164 | { |
||
165 | return identity;
|
||
166 | } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
||
167 | |||
168 | /**
|
||
169 | * Method getJavaClass
|
||
170 | */
|
||
171 | public java.lang.Class getJavaClass()
|
||
172 | { |
||
173 | return com.iver.andami.plugins.config.generate.Extensions.class;
|
||
174 | } //-- java.lang.Class getJavaClass()
|
||
175 | |||
176 | /**
|
||
177 | * Method getNameSpacePrefix
|
||
178 | */
|
||
179 | public java.lang.String getNameSpacePrefix()
|
||
180 | { |
||
181 | return nsPrefix;
|
||
182 | } //-- java.lang.String getNameSpacePrefix()
|
||
183 | |||
184 | /**
|
||
185 | * Method getNameSpaceURI
|
||
186 | */
|
||
187 | public java.lang.String getNameSpaceURI()
|
||
188 | { |
||
189 | return nsURI;
|
||
190 | } //-- java.lang.String getNameSpaceURI()
|
||
191 | |||
192 | /**
|
||
193 | * Method getValidator
|
||
194 | */
|
||
195 | public org.exolab.castor.xml.TypeValidator getValidator()
|
||
196 | { |
||
197 | return this; |
||
198 | } //-- org.exolab.castor.xml.TypeValidator getValidator()
|
||
199 | |||
200 | /**
|
||
201 | * Method getXMLName
|
||
202 | */
|
||
203 | public java.lang.String getXMLName()
|
||
204 | { |
||
205 | return xmlName;
|
||
206 | } //-- java.lang.String getXMLName()
|
||
207 | |||
208 | } |