first attempt at object build.
[vamsas.git] / src / org / vamsas / client / objects / ApplicationDescriptor.java
1 /*
2  * This class was automatically generated with 
3  * <a href="http://www.castor.org">Castor 0.9.9M1</a>, using an XML
4  * Schema.
5  * $Id$
6  */
7
8 package org.vamsas.client.objects;
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 ApplicationDescriptor.
21  * 
22  * @version $Revision$ $Date$
23  */
24 public class ApplicationDescriptor 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 ApplicationDescriptor() 
57      {
58         super();
59         nsURI = "http://www.vamsas.org";
60         xmlName = "Application";
61         org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;
62         org.exolab.castor.mapping.FieldHandler             handler        = null;
63         org.exolab.castor.xml.FieldValidator               fieldValidator = null;
64         //-- initialize attribute descriptors
65         
66         //-- _version
67         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_version", "version", org.exolab.castor.xml.NodeType.Attribute);
68         handler = new org.exolab.castor.xml.XMLFieldHandler() {
69             public java.lang.Object getValue( java.lang.Object object ) 
70                 throws IllegalStateException
71             {
72                 Application target = (Application) object;
73                 return target.getVersion();
74             }
75             public void setValue( java.lang.Object object, java.lang.Object value) 
76                 throws IllegalStateException, IllegalArgumentException
77             {
78                 try {
79                     Application target = (Application) object;
80                     target.setVersion( (java.lang.Object) value);
81                 }
82                 catch (java.lang.Exception ex) {
83                     throw new IllegalStateException(ex.toString());
84                 }
85             }
86             public java.lang.Object newInstance( java.lang.Object parent ) {
87                 return new java.lang.Object();
88             }
89         };
90         desc.setHandler(handler);
91         desc.setMultivalued(false);
92         addFieldDescriptor(desc);
93         
94         //-- validation code for: _version
95         fieldValidator = new org.exolab.castor.xml.FieldValidator();
96         { //-- local scope
97         }
98         desc.setValidator(fieldValidator);
99         //-- _name
100         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute);
101         handler = new org.exolab.castor.xml.XMLFieldHandler() {
102             public java.lang.Object getValue( java.lang.Object object ) 
103                 throws IllegalStateException
104             {
105                 Application target = (Application) object;
106                 return target.getName();
107             }
108             public void setValue( java.lang.Object object, java.lang.Object value) 
109                 throws IllegalStateException, IllegalArgumentException
110             {
111                 try {
112                     Application target = (Application) object;
113                     target.setName( (java.lang.Object) value);
114                 }
115                 catch (java.lang.Exception ex) {
116                     throw new IllegalStateException(ex.toString());
117                 }
118             }
119             public java.lang.Object newInstance( java.lang.Object parent ) {
120                 return new java.lang.Object();
121             }
122         };
123         desc.setHandler(handler);
124         desc.setMultivalued(false);
125         addFieldDescriptor(desc);
126         
127         //-- validation code for: _name
128         fieldValidator = new org.exolab.castor.xml.FieldValidator();
129         { //-- local scope
130         }
131         desc.setValidator(fieldValidator);
132         //-- initialize element descriptors
133         
134     } //-- org.vamsas.client.objects.ApplicationDescriptor()
135
136
137       //-----------/
138      //- Methods -/
139     //-----------/
140
141     /**
142      * Method getAccessMode
143      * 
144      * 
145      * 
146      * @return AccessMode
147      */
148     public org.exolab.castor.mapping.AccessMode getAccessMode()
149     {
150         return null;
151     } //-- org.exolab.castor.mapping.AccessMode getAccessMode() 
152
153     /**
154      * Method getExtends
155      * 
156      * 
157      * 
158      * @return ClassDescriptor
159      */
160     public org.exolab.castor.mapping.ClassDescriptor getExtends()
161     {
162         return null;
163     } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
164
165     /**
166      * Method getIdentity
167      * 
168      * 
169      * 
170      * @return FieldDescriptor
171      */
172     public org.exolab.castor.mapping.FieldDescriptor getIdentity()
173     {
174         return identity;
175     } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
176
177     /**
178      * Method getJavaClass
179      * 
180      * 
181      * 
182      * @return Class
183      */
184     public java.lang.Class getJavaClass()
185     {
186         return org.vamsas.client.objects.Application.class;
187     } //-- java.lang.Class getJavaClass() 
188
189     /**
190      * Method getNameSpacePrefix
191      * 
192      * 
193      * 
194      * @return String
195      */
196     public java.lang.String getNameSpacePrefix()
197     {
198         return nsPrefix;
199     } //-- java.lang.String getNameSpacePrefix() 
200
201     /**
202      * Method getNameSpaceURI
203      * 
204      * 
205      * 
206      * @return String
207      */
208     public java.lang.String getNameSpaceURI()
209     {
210         return nsURI;
211     } //-- java.lang.String getNameSpaceURI() 
212
213     /**
214      * Method getValidator
215      * 
216      * 
217      * 
218      * @return TypeValidator
219      */
220     public org.exolab.castor.xml.TypeValidator getValidator()
221     {
222         return this;
223     } //-- org.exolab.castor.xml.TypeValidator getValidator() 
224
225     /**
226      * Method getXMLName
227      * 
228      * 
229      * 
230      * @return String
231      */
232     public java.lang.String getXMLName()
233     {
234         return xmlName;
235     } //-- java.lang.String getXMLName() 
236
237 }