1
2
3
4
5
6
7
8 package org.astrogrid.registry.beans.cea;
9
10
11
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 ApplicationDefinitionDescriptor.
21 *
22 * @version $Revision: 1.21 $ $Date: 2007/01/04 16:26:36 $
23 */
24 public class ApplicationDefinitionDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {
25
26
27
28
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
54
55
56 public ApplicationDefinitionDescriptor() {
57 super();
58 nsURI = "http://www.ivoa.net/xml/CEAService/v0.1";
59 xmlName = "ApplicationDefinition";
60
61
62 setCompositorAsSequence();
63 org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
64 org.exolab.castor.xml.XMLFieldHandler handler = null;
65 org.exolab.castor.xml.FieldValidator fieldValidator = null;
66
67
68
69
70
71 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.astrogrid.applications.beans.v1.types.ApplicationKindType.class, "_applicationKind", "ApplicationKind", org.exolab.castor.xml.NodeType.Element);
72 handler = (new org.exolab.castor.xml.XMLFieldHandler() {
73 public java.lang.Object getValue( java.lang.Object object )
74 throws IllegalStateException
75 {
76 ApplicationDefinition target = (ApplicationDefinition) object;
77 return target.getApplicationKind();
78 }
79 public void setValue( java.lang.Object object, java.lang.Object value)
80 throws IllegalStateException, IllegalArgumentException
81 {
82 try {
83 ApplicationDefinition target = (ApplicationDefinition) object;
84 target.setApplicationKind( (org.astrogrid.applications.beans.v1.types.ApplicationKindType) value);
85 }
86 catch (java.lang.Exception ex) {
87 throw new IllegalStateException(ex.toString());
88 }
89 }
90 public java.lang.Object newInstance( java.lang.Object parent ) {
91 return null;
92 }
93 } );
94 desc.setHandler( new org.exolab.castor.xml.handlers.EnumFieldHandler(org.astrogrid.applications.beans.v1.types.ApplicationKindType.class, handler));
95 desc.setImmutable(true);
96 desc.setNameSpaceURI("http://www.ivoa.net/xml/CEAService/v0.1");
97 desc.setMultivalued(false);
98 addFieldDescriptor(desc);
99
100
101 fieldValidator = new org.exolab.castor.xml.FieldValidator();
102 {
103 }
104 desc.setValidator(fieldValidator);
105
106 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.astrogrid.registry.beans.cea.Parameters.class, "_parameters", "Parameters", org.exolab.castor.xml.NodeType.Element);
107 handler = (new org.exolab.castor.xml.XMLFieldHandler() {
108 public java.lang.Object getValue( java.lang.Object object )
109 throws IllegalStateException
110 {
111 ApplicationDefinition target = (ApplicationDefinition) object;
112 return target.getParameters();
113 }
114 public void setValue( java.lang.Object object, java.lang.Object value)
115 throws IllegalStateException, IllegalArgumentException
116 {
117 try {
118 ApplicationDefinition target = (ApplicationDefinition) object;
119 target.setParameters( (org.astrogrid.registry.beans.cea.Parameters) 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 org.astrogrid.registry.beans.cea.Parameters();
127 }
128 } );
129 desc.setHandler(handler);
130 desc.setNameSpaceURI("http://www.ivoa.net/xml/CEAService/v0.1");
131 desc.setRequired(true);
132 desc.setMultivalued(false);
133 addFieldDescriptor(desc);
134
135
136 fieldValidator = new org.exolab.castor.xml.FieldValidator();
137 fieldValidator.setMinOccurs(1);
138 {
139 }
140 desc.setValidator(fieldValidator);
141
142 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.astrogrid.applications.beans.v1.InterfacesType.class, "_interfaces", "Interfaces", org.exolab.castor.xml.NodeType.Element);
143 handler = (new org.exolab.castor.xml.XMLFieldHandler() {
144 public java.lang.Object getValue( java.lang.Object object )
145 throws IllegalStateException
146 {
147 ApplicationDefinition target = (ApplicationDefinition) object;
148 return target.getInterfaces();
149 }
150 public void setValue( java.lang.Object object, java.lang.Object value)
151 throws IllegalStateException, IllegalArgumentException
152 {
153 try {
154 ApplicationDefinition target = (ApplicationDefinition) object;
155 target.setInterfaces( (org.astrogrid.applications.beans.v1.InterfacesType) value);
156 }
157 catch (java.lang.Exception ex) {
158 throw new IllegalStateException(ex.toString());
159 }
160 }
161 public java.lang.Object newInstance( java.lang.Object parent ) {
162 return new org.astrogrid.applications.beans.v1.InterfacesType();
163 }
164 } );
165 desc.setHandler(handler);
166 desc.setNameSpaceURI("http://www.ivoa.net/xml/CEAService/v0.1");
167 desc.setRequired(true);
168 desc.setMultivalued(false);
169 addFieldDescriptor(desc);
170
171
172 fieldValidator = new org.exolab.castor.xml.FieldValidator();
173 fieldValidator.setMinOccurs(1);
174 {
175 }
176 desc.setValidator(fieldValidator);
177 }
178
179
180
181
182
183
184 /***
185 * Method getAccessMode
186 */
187 public org.exolab.castor.mapping.AccessMode getAccessMode()
188 {
189 return null;
190 }
191
192 /***
193 * Method getExtends
194 */
195 public org.exolab.castor.mapping.ClassDescriptor getExtends()
196 {
197 return null;
198 }
199
200 /***
201 * Method getIdentity
202 */
203 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
204 {
205 return identity;
206 }
207
208 /***
209 * Method getJavaClass
210 */
211 public java.lang.Class getJavaClass()
212 {
213 return org.astrogrid.registry.beans.cea.ApplicationDefinition.class;
214 }
215
216 /***
217 * Method getNameSpacePrefix
218 */
219 public java.lang.String getNameSpacePrefix()
220 {
221 return nsPrefix;
222 }
223
224 /***
225 * Method getNameSpaceURI
226 */
227 public java.lang.String getNameSpaceURI()
228 {
229 return nsURI;
230 }
231
232 /***
233 * Method getValidator
234 */
235 public org.exolab.castor.xml.TypeValidator getValidator()
236 {
237 return this;
238 }
239
240 /***
241 * Method getXMLName
242 */
243 public java.lang.String getXMLName()
244 {
245 return xmlName;
246 }
247
248 }