View Javadoc

1   /*
2    * This class was automatically generated with 
3    * <a href="http://www.castor.org">Castor 0.9.4.3</a>, using an XML
4    * Schema.
5    * $Id: ExecutionSummaryTypeDescriptor.java,v 1.13 2007/01/04 16:26:32 clq2 Exp $
6    */
7   
8   package org.astrogrid.applications.beans.v1.cea.castor;
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 ExecutionSummaryTypeDescriptor.
21   * 
22   * @version $Revision: 1.13 $ $Date: 2007/01/04 16:26:32 $
23   */
24  public class ExecutionSummaryTypeDescriptor 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 ExecutionSummaryTypeDescriptor() {
57          super();
58          nsURI = "http://www.astrogrid.org/schema/CEATypes/v1";
59          xmlName = "execution-summary-type";
60          org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;
61          org.exolab.castor.xml.XMLFieldHandler              handler        = null;
62          org.exolab.castor.xml.FieldValidator               fieldValidator = null;
63          //-- initialize attribute descriptors
64          
65          //-- initialize element descriptors
66          
67          //-- _applicationName
68          desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_applicationName", "application-name", org.exolab.castor.xml.NodeType.Element);
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                  ExecutionSummaryType target = (ExecutionSummaryType) object;
75                  return target.getApplicationName();
76              }
77              public void setValue( java.lang.Object object, java.lang.Object value) 
78                  throws IllegalStateException, IllegalArgumentException
79              {
80                  try {
81                      ExecutionSummaryType target = (ExecutionSummaryType) object;
82                      target.setApplicationName( (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.setNameSpaceURI("http://www.astrogrid.org/schema/CEATypes/v1");
94          desc.setRequired(true);
95          desc.setMultivalued(false);
96          addFieldDescriptor(desc);
97          
98          //-- validation code for: _applicationName
99          fieldValidator = new org.exolab.castor.xml.FieldValidator();
100         fieldValidator.setMinOccurs(1);
101         { //-- local scope
102             StringValidator typeValidator = new StringValidator();
103             typeValidator.setWhiteSpace("preserve");
104             fieldValidator.setValidator(typeValidator);
105         }
106         desc.setValidator(fieldValidator);
107         //-- _executionId
108         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_executionId", "execution-id", org.exolab.castor.xml.NodeType.Element);
109         desc.setImmutable(true);
110         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
111             public java.lang.Object getValue( java.lang.Object object ) 
112                 throws IllegalStateException
113             {
114                 ExecutionSummaryType target = (ExecutionSummaryType) object;
115                 return target.getExecutionId();
116             }
117             public void setValue( java.lang.Object object, java.lang.Object value) 
118                 throws IllegalStateException, IllegalArgumentException
119             {
120                 try {
121                     ExecutionSummaryType target = (ExecutionSummaryType) object;
122                     target.setExecutionId( (java.lang.String) value);
123                 }
124                 catch (java.lang.Exception ex) {
125                     throw new IllegalStateException(ex.toString());
126                 }
127             }
128             public java.lang.Object newInstance( java.lang.Object parent ) {
129                 return null;
130             }
131         } );
132         desc.setHandler(handler);
133         desc.setNameSpaceURI("http://www.astrogrid.org/schema/CEATypes/v1");
134         desc.setRequired(true);
135         desc.setMultivalued(false);
136         addFieldDescriptor(desc);
137         
138         //-- validation code for: _executionId
139         fieldValidator = new org.exolab.castor.xml.FieldValidator();
140         fieldValidator.setMinOccurs(1);
141         { //-- local scope
142             StringValidator typeValidator = new StringValidator();
143             typeValidator.setWhiteSpace("preserve");
144             fieldValidator.setValidator(typeValidator);
145         }
146         desc.setValidator(fieldValidator);
147         //-- _inputList
148         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.astrogrid.applications.beans.v1.cea.castor.InputListType.class, "_inputList", "input-list", org.exolab.castor.xml.NodeType.Element);
149         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
150             public java.lang.Object getValue( java.lang.Object object ) 
151                 throws IllegalStateException
152             {
153                 ExecutionSummaryType target = (ExecutionSummaryType) object;
154                 return target.getInputList();
155             }
156             public void setValue( java.lang.Object object, java.lang.Object value) 
157                 throws IllegalStateException, IllegalArgumentException
158             {
159                 try {
160                     ExecutionSummaryType target = (ExecutionSummaryType) object;
161                     target.setInputList( (org.astrogrid.applications.beans.v1.cea.castor.InputListType) value);
162                 }
163                 catch (java.lang.Exception ex) {
164                     throw new IllegalStateException(ex.toString());
165                 }
166             }
167             public java.lang.Object newInstance( java.lang.Object parent ) {
168                 return new org.astrogrid.applications.beans.v1.cea.castor.InputListType();
169             }
170         } );
171         desc.setHandler(handler);
172         desc.setNameSpaceURI("http://www.astrogrid.org/schema/CEATypes/v1");
173         desc.setRequired(true);
174         desc.setMultivalued(false);
175         addFieldDescriptor(desc);
176         
177         //-- validation code for: _inputList
178         fieldValidator = new org.exolab.castor.xml.FieldValidator();
179         fieldValidator.setMinOccurs(1);
180         { //-- local scope
181         }
182         desc.setValidator(fieldValidator);
183         //-- _resultList
184         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.astrogrid.applications.beans.v1.cea.castor.ResultListType.class, "_resultList", "result-list", org.exolab.castor.xml.NodeType.Element);
185         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
186             public java.lang.Object getValue( java.lang.Object object ) 
187                 throws IllegalStateException
188             {
189                 ExecutionSummaryType target = (ExecutionSummaryType) object;
190                 return target.getResultList();
191             }
192             public void setValue( java.lang.Object object, java.lang.Object value) 
193                 throws IllegalStateException, IllegalArgumentException
194             {
195                 try {
196                     ExecutionSummaryType target = (ExecutionSummaryType) object;
197                     target.setResultList( (org.astrogrid.applications.beans.v1.cea.castor.ResultListType) value);
198                 }
199                 catch (java.lang.Exception ex) {
200                     throw new IllegalStateException(ex.toString());
201                 }
202             }
203             public java.lang.Object newInstance( java.lang.Object parent ) {
204                 return new org.astrogrid.applications.beans.v1.cea.castor.ResultListType();
205             }
206         } );
207         desc.setHandler(handler);
208         desc.setNameSpaceURI("http://www.astrogrid.org/schema/CEATypes/v1");
209         desc.setMultivalued(false);
210         addFieldDescriptor(desc);
211         
212         //-- validation code for: _resultList
213         fieldValidator = new org.exolab.castor.xml.FieldValidator();
214         { //-- local scope
215         }
216         desc.setValidator(fieldValidator);
217         //-- _status
218         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.astrogrid.applications.beans.v1.cea.castor.types.ExecutionPhase.class, "_status", "status", org.exolab.castor.xml.NodeType.Element);
219         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
220             public java.lang.Object getValue( java.lang.Object object ) 
221                 throws IllegalStateException
222             {
223                 ExecutionSummaryType target = (ExecutionSummaryType) object;
224                 return target.getStatus();
225             }
226             public void setValue( java.lang.Object object, java.lang.Object value) 
227                 throws IllegalStateException, IllegalArgumentException
228             {
229                 try {
230                     ExecutionSummaryType target = (ExecutionSummaryType) object;
231                     target.setStatus( (org.astrogrid.applications.beans.v1.cea.castor.types.ExecutionPhase) value);
232                 }
233                 catch (java.lang.Exception ex) {
234                     throw new IllegalStateException(ex.toString());
235                 }
236             }
237             public java.lang.Object newInstance( java.lang.Object parent ) {
238                 return null;
239             }
240         } );
241         desc.setHandler( new org.exolab.castor.xml.handlers.EnumFieldHandler(org.astrogrid.applications.beans.v1.cea.castor.types.ExecutionPhase.class, handler));
242         desc.setImmutable(true);
243         desc.setNameSpaceURI("http://www.astrogrid.org/schema/CEATypes/v1");
244         desc.setRequired(true);
245         desc.setMultivalued(false);
246         addFieldDescriptor(desc);
247         
248         //-- validation code for: _status
249         fieldValidator = new org.exolab.castor.xml.FieldValidator();
250         fieldValidator.setMinOccurs(1);
251         { //-- local scope
252         }
253         desc.setValidator(fieldValidator);
254     } //-- org.astrogrid.applications.beans.v1.cea.castor.ExecutionSummaryTypeDescriptor()
255 
256 
257       //-----------/
258      //- Methods -/
259     //-----------/
260 
261     /***
262      * Method getAccessMode
263      */
264     public org.exolab.castor.mapping.AccessMode getAccessMode()
265     {
266         return null;
267     } //-- org.exolab.castor.mapping.AccessMode getAccessMode() 
268 
269     /***
270      * Method getExtends
271      */
272     public org.exolab.castor.mapping.ClassDescriptor getExtends()
273     {
274         return null;
275     } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
276 
277     /***
278      * Method getIdentity
279      */
280     public org.exolab.castor.mapping.FieldDescriptor getIdentity()
281     {
282         return identity;
283     } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
284 
285     /***
286      * Method getJavaClass
287      */
288     public java.lang.Class getJavaClass()
289     {
290         return org.astrogrid.applications.beans.v1.cea.castor.ExecutionSummaryType.class;
291     } //-- java.lang.Class getJavaClass() 
292 
293     /***
294      * Method getNameSpacePrefix
295      */
296     public java.lang.String getNameSpacePrefix()
297     {
298         return nsPrefix;
299     } //-- java.lang.String getNameSpacePrefix() 
300 
301     /***
302      * Method getNameSpaceURI
303      */
304     public java.lang.String getNameSpaceURI()
305     {
306         return nsURI;
307     } //-- java.lang.String getNameSpaceURI() 
308 
309     /***
310      * Method getValidator
311      */
312     public org.exolab.castor.xml.TypeValidator getValidator()
313     {
314         return this;
315     } //-- org.exolab.castor.xml.TypeValidator getValidator() 
316 
317     /***
318      * Method getXMLName
319      */
320     public java.lang.String getXMLName()
321     {
322         return xmlName;
323     } //-- java.lang.String getXMLName() 
324 
325 }