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 VAMSASDescriptor.
22 * @version $Revision$ $Date$
24 public class VAMSASDescriptor 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 VAMSASDescriptor()
59 nsURI = "http://www.vamsas.org";
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(java.lang.String.class, "_treeList", "Tree", org.exolab.castor.xml.NodeType.Element);
73 desc.setImmutable(true);
74 handler = new org.exolab.castor.xml.XMLFieldHandler() {
75 public java.lang.Object getValue( java.lang.Object object )
76 throws IllegalStateException
78 VAMSAS target = (VAMSAS) object;
79 return target.getTree();
81 public void setValue( java.lang.Object object, java.lang.Object value)
82 throws IllegalStateException, IllegalArgumentException
85 VAMSAS target = (VAMSAS) object;
86 target.addTree( (java.lang.String) value);
88 catch (java.lang.Exception ex) {
89 throw new IllegalStateException(ex.toString());
92 public java.lang.Object newInstance( java.lang.Object parent ) {
96 desc.setHandler(handler);
97 desc.setNameSpaceURI("http://www.vamsas.org");
98 desc.setMultivalued(true);
99 addFieldDescriptor(desc);
101 //-- validation code for: _treeList
102 fieldValidator = new org.exolab.castor.xml.FieldValidator();
103 fieldValidator.setMinOccurs(0);
105 StringValidator typeValidator = new StringValidator();
106 typeValidator.setWhiteSpace("preserve");
107 fieldValidator.setValidator(typeValidator);
109 desc.setValidator(fieldValidator);
110 //-- _sequenceSetList
111 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.SequenceSet.class, "_sequenceSetList", "SequenceSet", org.exolab.castor.xml.NodeType.Element);
112 handler = new org.exolab.castor.xml.XMLFieldHandler() {
113 public java.lang.Object getValue( java.lang.Object object )
114 throws IllegalStateException
116 VAMSAS target = (VAMSAS) object;
117 return target.getSequenceSet();
119 public void setValue( java.lang.Object object, java.lang.Object value)
120 throws IllegalStateException, IllegalArgumentException
123 VAMSAS target = (VAMSAS) object;
124 target.addSequenceSet( (org.vamsas.objects.core.SequenceSet) value);
126 catch (java.lang.Exception ex) {
127 throw new IllegalStateException(ex.toString());
130 public java.lang.Object newInstance( java.lang.Object parent ) {
131 return new org.vamsas.objects.core.SequenceSet();
134 desc.setHandler(handler);
135 desc.setNameSpaceURI("http://www.vamsas.org");
136 desc.setMultivalued(true);
137 addFieldDescriptor(desc);
139 //-- validation code for: _sequenceSetList
140 fieldValidator = new org.exolab.castor.xml.FieldValidator();
141 fieldValidator.setMinOccurs(0);
144 desc.setValidator(fieldValidator);
145 } //-- org.vamsas.objects.core.VAMSASDescriptor()
153 * Method getAccessMode
159 public org.exolab.castor.mapping.AccessMode getAccessMode()
162 } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
169 * @return ClassDescriptor
171 public org.exolab.castor.mapping.ClassDescriptor getExtends()
174 } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
181 * @return FieldDescriptor
183 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
186 } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
189 * Method getJavaClass
195 public java.lang.Class getJavaClass()
197 return org.vamsas.objects.core.VAMSAS.class;
198 } //-- java.lang.Class getJavaClass()
201 * Method getNameSpacePrefix
207 public java.lang.String getNameSpacePrefix()
210 } //-- java.lang.String getNameSpacePrefix()
213 * Method getNameSpaceURI
219 public java.lang.String getNameSpaceURI()
222 } //-- java.lang.String getNameSpaceURI()
225 * Method getValidator
229 * @return TypeValidator
231 public org.exolab.castor.xml.TypeValidator getValidator()
234 } //-- org.exolab.castor.xml.TypeValidator getValidator()
243 public java.lang.String getXMLName()
246 } //-- java.lang.String getXMLName()