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 SequenceSetAnnotationsDescriptor.
22 * @version $Revision$ $Date$
24 public class SequenceSetAnnotationsDescriptor 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 SequenceSetAnnotationsDescriptor()
59 nsURI = "http://www.vamsas.org";
60 xmlName = "SequenceSetAnnotations";
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
70 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_type", "type", org.exolab.castor.xml.NodeType.Attribute);
71 desc.setImmutable(true);
72 handler = new org.exolab.castor.xml.XMLFieldHandler() {
73 public java.lang.Object getValue( java.lang.Object object )
74 throws IllegalStateException
76 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
77 return target.getType();
79 public void setValue( java.lang.Object object, java.lang.Object value)
80 throws IllegalStateException, IllegalArgumentException
83 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
84 target.setType( (java.lang.String) value);
86 catch (java.lang.Exception ex) {
87 throw new IllegalStateException(ex.toString());
90 public java.lang.Object newInstance( java.lang.Object parent ) {
94 desc.setHandler(handler);
95 desc.setRequired(true);
96 desc.setMultivalued(false);
97 addFieldDescriptor(desc);
99 //-- validation code for: _type
100 fieldValidator = new org.exolab.castor.xml.FieldValidator();
101 fieldValidator.setMinOccurs(1);
103 StringValidator typeValidator = new StringValidator();
104 typeValidator.setWhiteSpace("preserve");
105 fieldValidator.setValidator(typeValidator);
107 desc.setValidator(fieldValidator);
109 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_end", "end", org.exolab.castor.xml.NodeType.Attribute);
110 desc.setImmutable(true);
111 handler = new org.exolab.castor.xml.XMLFieldHandler() {
112 public java.lang.Object getValue( java.lang.Object object )
113 throws IllegalStateException
115 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
116 return target.getEnd();
118 public void setValue( java.lang.Object object, java.lang.Object value)
119 throws IllegalStateException, IllegalArgumentException
122 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
123 target.setEnd( (java.lang.String) value);
125 catch (java.lang.Exception ex) {
126 throw new IllegalStateException(ex.toString());
129 public java.lang.Object newInstance( java.lang.Object parent ) {
133 desc.setHandler(handler);
134 desc.setRequired(true);
135 desc.setMultivalued(false);
136 addFieldDescriptor(desc);
138 //-- validation code for: _end
139 fieldValidator = new org.exolab.castor.xml.FieldValidator();
140 fieldValidator.setMinOccurs(1);
142 StringValidator typeValidator = new StringValidator();
143 typeValidator.setWhiteSpace("preserve");
144 fieldValidator.setValidator(typeValidator);
146 desc.setValidator(fieldValidator);
148 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_begin", "begin", org.exolab.castor.xml.NodeType.Attribute);
149 desc.setImmutable(true);
150 handler = new org.exolab.castor.xml.XMLFieldHandler() {
151 public java.lang.Object getValue( java.lang.Object object )
152 throws IllegalStateException
154 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
155 return target.getBegin();
157 public void setValue( java.lang.Object object, java.lang.Object value)
158 throws IllegalStateException, IllegalArgumentException
161 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
162 target.setBegin( (java.lang.String) value);
164 catch (java.lang.Exception ex) {
165 throw new IllegalStateException(ex.toString());
168 public java.lang.Object newInstance( java.lang.Object parent ) {
172 desc.setHandler(handler);
173 desc.setRequired(true);
174 desc.setMultivalued(false);
175 addFieldDescriptor(desc);
177 //-- validation code for: _begin
178 fieldValidator = new org.exolab.castor.xml.FieldValidator();
179 fieldValidator.setMinOccurs(1);
181 StringValidator typeValidator = new StringValidator();
182 typeValidator.setWhiteSpace("preserve");
183 fieldValidator.setValidator(typeValidator);
185 desc.setValidator(fieldValidator);
187 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_seqRef", "seqRef", org.exolab.castor.xml.NodeType.Attribute);
188 desc.setReference(true);
189 handler = new org.exolab.castor.xml.XMLFieldHandler() {
190 public java.lang.Object getValue( java.lang.Object object )
191 throws IllegalStateException
193 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
194 return target.getSeqRef();
196 public void setValue( java.lang.Object object, java.lang.Object value)
197 throws IllegalStateException, IllegalArgumentException
200 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
201 target.setSeqRef( (java.lang.Object) value);
203 catch (java.lang.Exception ex) {
204 throw new IllegalStateException(ex.toString());
207 public java.lang.Object newInstance( java.lang.Object parent ) {
208 return new java.lang.Object();
211 desc.setHandler(handler);
212 desc.setRequired(true);
213 desc.setMultivalued(false);
214 addFieldDescriptor(desc);
216 //-- validation code for: _seqRef
217 fieldValidator = new org.exolab.castor.xml.FieldValidator();
218 fieldValidator.setMinOccurs(1);
221 desc.setValidator(fieldValidator);
223 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_id", "id", org.exolab.castor.xml.NodeType.Attribute);
224 this.identity = desc;
225 handler = new org.exolab.castor.xml.XMLFieldHandler() {
226 public java.lang.Object getValue( java.lang.Object object )
227 throws IllegalStateException
229 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
230 return target.getId();
232 public void setValue( java.lang.Object object, java.lang.Object value)
233 throws IllegalStateException, IllegalArgumentException
236 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
237 target.setId( (java.lang.String) value);
239 catch (java.lang.Exception ex) {
240 throw new IllegalStateException(ex.toString());
243 public java.lang.Object newInstance( java.lang.Object parent ) {
244 return new java.lang.String();
247 desc.setHandler(handler);
248 desc.setMultivalued(false);
249 addFieldDescriptor(desc);
251 //-- validation code for: _id
252 fieldValidator = new org.exolab.castor.xml.FieldValidator();
255 desc.setValidator(fieldValidator);
256 //-- initialize element descriptors
259 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_description", "description", org.exolab.castor.xml.NodeType.Element);
260 desc.setImmutable(true);
261 handler = new org.exolab.castor.xml.XMLFieldHandler() {
262 public java.lang.Object getValue( java.lang.Object object )
263 throws IllegalStateException
265 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
266 return target.getDescription();
268 public void setValue( java.lang.Object object, java.lang.Object value)
269 throws IllegalStateException, IllegalArgumentException
272 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
273 target.setDescription( (java.lang.String) value);
275 catch (java.lang.Exception ex) {
276 throw new IllegalStateException(ex.toString());
279 public java.lang.Object newInstance( java.lang.Object parent ) {
283 desc.setHandler(handler);
284 desc.setNameSpaceURI("http://www.vamsas.org");
285 desc.setMultivalued(false);
286 addFieldDescriptor(desc);
288 //-- validation code for: _description
289 fieldValidator = new org.exolab.castor.xml.FieldValidator();
291 StringValidator typeValidator = new StringValidator();
292 typeValidator.setWhiteSpace("preserve");
293 fieldValidator.setValidator(typeValidator);
295 desc.setValidator(fieldValidator);
297 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_status", "status", org.exolab.castor.xml.NodeType.Element);
298 desc.setImmutable(true);
299 handler = new org.exolab.castor.xml.XMLFieldHandler() {
300 public java.lang.Object getValue( java.lang.Object object )
301 throws IllegalStateException
303 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
304 return target.getStatus();
306 public void setValue( java.lang.Object object, java.lang.Object value)
307 throws IllegalStateException, IllegalArgumentException
310 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
311 target.setStatus( (java.lang.String) value);
313 catch (java.lang.Exception ex) {
314 throw new IllegalStateException(ex.toString());
317 public java.lang.Object newInstance( java.lang.Object parent ) {
321 desc.setHandler(handler);
322 desc.setNameSpaceURI("http://www.vamsas.org");
323 desc.setMultivalued(false);
324 addFieldDescriptor(desc);
326 //-- validation code for: _status
327 fieldValidator = new org.exolab.castor.xml.FieldValidator();
329 StringValidator typeValidator = new StringValidator();
330 typeValidator.setWhiteSpace("preserve");
331 fieldValidator.setValidator(typeValidator);
333 desc.setValidator(fieldValidator);
334 //-- _annotationElementList
335 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.AnnotationElement.class, "_annotationElementList", "annotationElement", org.exolab.castor.xml.NodeType.Element);
336 handler = new org.exolab.castor.xml.XMLFieldHandler() {
337 public java.lang.Object getValue( java.lang.Object object )
338 throws IllegalStateException
340 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
341 return target.getAnnotationElement();
343 public void setValue( java.lang.Object object, java.lang.Object value)
344 throws IllegalStateException, IllegalArgumentException
347 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
348 target.addAnnotationElement( (org.vamsas.objects.core.AnnotationElement) value);
350 catch (java.lang.Exception ex) {
351 throw new IllegalStateException(ex.toString());
354 public java.lang.Object newInstance( java.lang.Object parent ) {
355 return new org.vamsas.objects.core.AnnotationElement();
358 desc.setHandler(handler);
359 desc.setNameSpaceURI("http://www.vamsas.org");
360 desc.setMultivalued(true);
361 addFieldDescriptor(desc);
363 //-- validation code for: _annotationElementList
364 fieldValidator = new org.exolab.castor.xml.FieldValidator();
365 fieldValidator.setMinOccurs(0);
368 desc.setValidator(fieldValidator);
370 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Provenance.class, "_provenanceList", "Provenance", org.exolab.castor.xml.NodeType.Element);
371 handler = new org.exolab.castor.xml.XMLFieldHandler() {
372 public java.lang.Object getValue( java.lang.Object object )
373 throws IllegalStateException
375 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
376 return target.getProvenance();
378 public void setValue( java.lang.Object object, java.lang.Object value)
379 throws IllegalStateException, IllegalArgumentException
382 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
383 target.addProvenance( (org.vamsas.objects.core.Provenance) value);
385 catch (java.lang.Exception ex) {
386 throw new IllegalStateException(ex.toString());
389 public java.lang.Object newInstance( java.lang.Object parent ) {
390 return new org.vamsas.objects.core.Provenance();
393 desc.setHandler(handler);
394 desc.setNameSpaceURI("http://www.vamsas.org");
395 desc.setMultivalued(true);
396 addFieldDescriptor(desc);
398 //-- validation code for: _provenanceList
399 fieldValidator = new org.exolab.castor.xml.FieldValidator();
400 fieldValidator.setMinOccurs(0);
403 desc.setValidator(fieldValidator);
404 } //-- org.vamsas.objects.core.SequenceSetAnnotationsDescriptor()
412 * Method getAccessMode
418 public org.exolab.castor.mapping.AccessMode getAccessMode()
421 } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
428 * @return ClassDescriptor
430 public org.exolab.castor.mapping.ClassDescriptor getExtends()
433 } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
440 * @return FieldDescriptor
442 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
445 } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
448 * Method getJavaClass
454 public java.lang.Class getJavaClass()
456 return org.vamsas.objects.core.SequenceSetAnnotations.class;
457 } //-- java.lang.Class getJavaClass()
460 * Method getNameSpacePrefix
466 public java.lang.String getNameSpacePrefix()
469 } //-- java.lang.String getNameSpacePrefix()
472 * Method getNameSpaceURI
478 public java.lang.String getNameSpaceURI()
481 } //-- java.lang.String getNameSpaceURI()
484 * Method getValidator
488 * @return TypeValidator
490 public org.exolab.castor.xml.TypeValidator getValidator()
493 } //-- org.exolab.castor.xml.TypeValidator getValidator()
502 public java.lang.String getXMLName()
505 } //-- java.lang.String getXMLName()