2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 0.9.9M1</a>, using an XML
8 package org.vamsas.objects.core;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
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.*;
20 * Class ApplicationDescriptor.
22 * @version $Revision$ $Date$
24 public class ApplicationDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {
27 //--------------------------/
28 //- Class/Member Variables -/
29 //--------------------------/
34 private java.lang.String nsPrefix;
39 private java.lang.String nsURI;
44 private java.lang.String xmlName;
49 private org.exolab.castor.xml.XMLFieldDescriptor identity;
56 public ApplicationDescriptor()
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
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
72 Application target = (Application) object;
73 return target.getVersion();
75 public void setValue( java.lang.Object object, java.lang.Object value)
76 throws IllegalStateException, IllegalArgumentException
79 Application target = (Application) object;
80 target.setVersion( (java.lang.Object) value);
82 catch (java.lang.Exception ex) {
83 throw new IllegalStateException(ex.toString());
86 public java.lang.Object newInstance( java.lang.Object parent ) {
87 return new java.lang.Object();
90 desc.setHandler(handler);
91 desc.setMultivalued(false);
92 addFieldDescriptor(desc);
94 //-- validation code for: _version
95 fieldValidator = new org.exolab.castor.xml.FieldValidator();
98 desc.setValidator(fieldValidator);
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
105 Application target = (Application) object;
106 return target.getName();
108 public void setValue( java.lang.Object object, java.lang.Object value)
109 throws IllegalStateException, IllegalArgumentException
112 Application target = (Application) object;
113 target.setName( (java.lang.Object) value);
115 catch (java.lang.Exception ex) {
116 throw new IllegalStateException(ex.toString());
119 public java.lang.Object newInstance( java.lang.Object parent ) {
120 return new java.lang.Object();
123 desc.setHandler(handler);
124 desc.setMultivalued(false);
125 addFieldDescriptor(desc);
127 //-- validation code for: _name
128 fieldValidator = new org.exolab.castor.xml.FieldValidator();
131 desc.setValidator(fieldValidator);
132 //-- initialize element descriptors
134 } //-- org.vamsas.objects.core.ApplicationDescriptor()
142 * Method getAccessMode
148 public org.exolab.castor.mapping.AccessMode getAccessMode()
151 } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
158 * @return ClassDescriptor
160 public org.exolab.castor.mapping.ClassDescriptor getExtends()
163 } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
170 * @return FieldDescriptor
172 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
175 } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
178 * Method getJavaClass
184 public java.lang.Class getJavaClass()
186 return org.vamsas.objects.core.Application.class;
187 } //-- java.lang.Class getJavaClass()
190 * Method getNameSpacePrefix
196 public java.lang.String getNameSpacePrefix()
199 } //-- java.lang.String getNameSpacePrefix()
202 * Method getNameSpaceURI
208 public java.lang.String getNameSpaceURI()
211 } //-- java.lang.String getNameSpaceURI()
214 * Method getValidator
218 * @return TypeValidator
220 public org.exolab.castor.xml.TypeValidator getValidator()
223 } //-- org.exolab.castor.xml.TypeValidator getValidator()
232 public java.lang.String getXMLName()
235 } //-- java.lang.String getXMLName()