2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 0.9.9M2</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 ApplicationDataDescriptor.
22 * @version $Revision$ $Date$
24 public class ApplicationDataDescriptor 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 ApplicationDataDescriptor()
59 nsURI = "http://www.vamsas.org";
60 xmlName = "ApplicationData";
62 //-- set grouping compositor
63 setCompositorAsSequence();
64 org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
65 org.exolab.castor.mapping.FieldHandler handler = null;
66 org.exolab.castor.xml.FieldValidator fieldValidator = null;
67 //-- initialize attribute descriptors
69 //-- initialize element descriptors
72 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Application.class, "_applicationList", "Application", org.exolab.castor.xml.NodeType.Element);
73 handler = new org.exolab.castor.xml.XMLFieldHandler() {
74 public java.lang.Object getValue( java.lang.Object object )
75 throws IllegalStateException
77 ApplicationData target = (ApplicationData) object;
78 return target.getApplication();
80 public void setValue( java.lang.Object object, java.lang.Object value)
81 throws IllegalStateException, IllegalArgumentException
84 ApplicationData target = (ApplicationData) object;
85 target.addApplication( (org.vamsas.objects.core.Application) value);
87 catch (java.lang.Exception ex) {
88 throw new IllegalStateException(ex.toString());
91 public java.lang.Object newInstance( java.lang.Object parent ) {
92 return new org.vamsas.objects.core.Application();
95 desc.setHandler(handler);
96 desc.setNameSpaceURI("http://www.vamsas.org");
97 desc.setMultivalued(true);
98 addFieldDescriptor(desc);
100 //-- validation code for: _applicationList
101 fieldValidator = new org.exolab.castor.xml.FieldValidator();
102 fieldValidator.setMinOccurs(0);
105 desc.setValidator(fieldValidator);
106 } //-- org.vamsas.objects.core.ApplicationDataDescriptor()
114 * Method getAccessMode
120 public org.exolab.castor.mapping.AccessMode getAccessMode()
123 } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
130 * @return ClassDescriptor
132 public org.exolab.castor.mapping.ClassDescriptor getExtends()
135 } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
142 * @return FieldDescriptor
144 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
147 } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
150 * Method getJavaClass
156 public java.lang.Class getJavaClass()
158 return org.vamsas.objects.core.ApplicationData.class;
159 } //-- java.lang.Class getJavaClass()
162 * Method getNameSpacePrefix
168 public java.lang.String getNameSpacePrefix()
171 } //-- java.lang.String getNameSpacePrefix()
174 * Method getNameSpaceURI
180 public java.lang.String getNameSpaceURI()
183 } //-- java.lang.String getNameSpaceURI()
186 * Method getValidator
190 * @return TypeValidator
192 public org.exolab.castor.xml.TypeValidator getValidator()
195 } //-- org.exolab.castor.xml.TypeValidator getValidator()
204 public java.lang.String getXMLName()
207 } //-- java.lang.String getXMLName()