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: JobURNDescriptor.java,v 1.32 2007/01/04 16:26:08 clq2 Exp $
6    */
7   
8   package org.astrogrid.workflow.beans.v1.execution;
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 JobURNDescriptor.
21   * 
22   * @version $Revision: 1.32 $ $Date: 2007/01/04 16:26:08 $
23   */
24  public class JobURNDescriptor 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 JobURNDescriptor() {
57          super();
58          nsURI = "http://www.astrogrid.org/schema/ExecutionRecord/v1";
59          xmlName = "jobURN";
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          //-- _content
64          desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);
65          handler = (new org.exolab.castor.xml.XMLFieldHandler() {
66              public java.lang.Object getValue( java.lang.Object object ) 
67                  throws IllegalStateException
68              {
69                  JobURN target = (JobURN) object;
70                  return target.getContent();
71              }
72              public void setValue( java.lang.Object object, java.lang.Object value) 
73                  throws IllegalStateException, IllegalArgumentException
74              {
75                  try {
76                      JobURN target = (JobURN) object;
77                      target.setContent( (java.lang.String) value);
78                  }
79                  catch (java.lang.Exception ex) {
80                      throw new IllegalStateException(ex.toString());
81                  }
82              }
83              public java.lang.Object newInstance( java.lang.Object parent ) {
84                  return new java.lang.String();
85              }
86          } );
87          desc.setHandler(handler);
88          addFieldDescriptor(desc);
89          
90          //-- validation code for: _content
91          fieldValidator = new org.exolab.castor.xml.FieldValidator();
92          { //-- local scope
93          }
94          desc.setValidator(fieldValidator);
95          //-- initialize attribute descriptors
96          
97          //-- initialize element descriptors
98          
99      } //-- org.astrogrid.workflow.beans.v1.execution.JobURNDescriptor()
100 
101 
102       //-----------/
103      //- Methods -/
104     //-----------/
105 
106     /***
107      * Method getAccessMode
108      */
109     public org.exolab.castor.mapping.AccessMode getAccessMode()
110     {
111         return null;
112     } //-- org.exolab.castor.mapping.AccessMode getAccessMode() 
113 
114     /***
115      * Method getExtends
116      */
117     public org.exolab.castor.mapping.ClassDescriptor getExtends()
118     {
119         return null;
120     } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
121 
122     /***
123      * Method getIdentity
124      */
125     public org.exolab.castor.mapping.FieldDescriptor getIdentity()
126     {
127         return identity;
128     } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
129 
130     /***
131      * Method getJavaClass
132      */
133     public java.lang.Class getJavaClass()
134     {
135         return org.astrogrid.workflow.beans.v1.execution.JobURN.class;
136     } //-- java.lang.Class getJavaClass() 
137 
138     /***
139      * Method getNameSpacePrefix
140      */
141     public java.lang.String getNameSpacePrefix()
142     {
143         return nsPrefix;
144     } //-- java.lang.String getNameSpacePrefix() 
145 
146     /***
147      * Method getNameSpaceURI
148      */
149     public java.lang.String getNameSpaceURI()
150     {
151         return nsURI;
152     } //-- java.lang.String getNameSpaceURI() 
153 
154     /***
155      * Method getValidator
156      */
157     public org.exolab.castor.xml.TypeValidator getValidator()
158     {
159         return this;
160     } //-- org.exolab.castor.xml.TypeValidator getValidator() 
161 
162     /***
163      * Method getXMLName
164      */
165     public java.lang.String getXMLName()
166     {
167         return xmlName;
168     } //-- java.lang.String getXMLName() 
169 
170 }