added a pollUpdate method to kick the vamsas Document watcher thread when the applica...
[vamsas.git] / src / org / vamsas / objects / core / SequenceSetAnnotationsDescriptor.java
1 /*
2  * This class was automatically generated with 
3  * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML
4  * Schema.
5  * $Id$
6  */
7
8 package org.vamsas.objects.core;
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 SequenceSetAnnotationsDescriptor.
21  * 
22  * @version $Revision$ $Date$
23  */
24 public class SequenceSetAnnotationsDescriptor 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 SequenceSetAnnotationsDescriptor() 
57      {
58         super();
59         nsURI = "http://www.vamsas.org";
60         xmlName = "SequenceSetAnnotations";
61         
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
68         
69         //-- _type
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
75             {
76                 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
77                 return target.getType();
78             }
79             public void setValue( java.lang.Object object, java.lang.Object value) 
80                 throws IllegalStateException, IllegalArgumentException
81             {
82                 try {
83                     SequenceSetAnnotations target = (SequenceSetAnnotations) object;
84                     target.setType( (java.lang.String) value);
85                 }
86                 catch (java.lang.Exception ex) {
87                     throw new IllegalStateException(ex.toString());
88                 }
89             }
90             public java.lang.Object newInstance( java.lang.Object parent ) {
91                 return null;
92             }
93         };
94         desc.setHandler(handler);
95         desc.setRequired(true);
96         desc.setMultivalued(false);
97         addFieldDescriptor(desc);
98         
99         //-- validation code for: _type
100         fieldValidator = new org.exolab.castor.xml.FieldValidator();
101         fieldValidator.setMinOccurs(1);
102         { //-- local scope
103             StringValidator typeValidator = new StringValidator();
104             typeValidator.setWhiteSpace("preserve");
105             fieldValidator.setValidator(typeValidator);
106         }
107         desc.setValidator(fieldValidator);
108         //-- _end
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
114             {
115                 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
116                 return target.getEnd();
117             }
118             public void setValue( java.lang.Object object, java.lang.Object value) 
119                 throws IllegalStateException, IllegalArgumentException
120             {
121                 try {
122                     SequenceSetAnnotations target = (SequenceSetAnnotations) object;
123                     target.setEnd( (java.lang.String) value);
124                 }
125                 catch (java.lang.Exception ex) {
126                     throw new IllegalStateException(ex.toString());
127                 }
128             }
129             public java.lang.Object newInstance( java.lang.Object parent ) {
130                 return null;
131             }
132         };
133         desc.setHandler(handler);
134         desc.setRequired(true);
135         desc.setMultivalued(false);
136         addFieldDescriptor(desc);
137         
138         //-- validation code for: _end
139         fieldValidator = new org.exolab.castor.xml.FieldValidator();
140         fieldValidator.setMinOccurs(1);
141         { //-- local scope
142             StringValidator typeValidator = new StringValidator();
143             typeValidator.setWhiteSpace("preserve");
144             fieldValidator.setValidator(typeValidator);
145         }
146         desc.setValidator(fieldValidator);
147         //-- _begin
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
153             {
154                 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
155                 return target.getBegin();
156             }
157             public void setValue( java.lang.Object object, java.lang.Object value) 
158                 throws IllegalStateException, IllegalArgumentException
159             {
160                 try {
161                     SequenceSetAnnotations target = (SequenceSetAnnotations) object;
162                     target.setBegin( (java.lang.String) value);
163                 }
164                 catch (java.lang.Exception ex) {
165                     throw new IllegalStateException(ex.toString());
166                 }
167             }
168             public java.lang.Object newInstance( java.lang.Object parent ) {
169                 return null;
170             }
171         };
172         desc.setHandler(handler);
173         desc.setRequired(true);
174         desc.setMultivalued(false);
175         addFieldDescriptor(desc);
176         
177         //-- validation code for: _begin
178         fieldValidator = new org.exolab.castor.xml.FieldValidator();
179         fieldValidator.setMinOccurs(1);
180         { //-- local scope
181             StringValidator typeValidator = new StringValidator();
182             typeValidator.setWhiteSpace("preserve");
183             fieldValidator.setValidator(typeValidator);
184         }
185         desc.setValidator(fieldValidator);
186         //-- _seqRef
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
192             {
193                 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
194                 return target.getSeqRef();
195             }
196             public void setValue( java.lang.Object object, java.lang.Object value) 
197                 throws IllegalStateException, IllegalArgumentException
198             {
199                 try {
200                     SequenceSetAnnotations target = (SequenceSetAnnotations) object;
201                     target.setSeqRef( (java.lang.Object) value);
202                 }
203                 catch (java.lang.Exception ex) {
204                     throw new IllegalStateException(ex.toString());
205                 }
206             }
207             public java.lang.Object newInstance( java.lang.Object parent ) {
208                 return new java.lang.Object();
209             }
210         };
211         desc.setHandler(handler);
212         desc.setRequired(true);
213         desc.setMultivalued(false);
214         addFieldDescriptor(desc);
215         
216         //-- validation code for: _seqRef
217         fieldValidator = new org.exolab.castor.xml.FieldValidator();
218         fieldValidator.setMinOccurs(1);
219         { //-- local scope
220         }
221         desc.setValidator(fieldValidator);
222         //-- _id
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
228             {
229                 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
230                 return target.getId();
231             }
232             public void setValue( java.lang.Object object, java.lang.Object value) 
233                 throws IllegalStateException, IllegalArgumentException
234             {
235                 try {
236                     SequenceSetAnnotations target = (SequenceSetAnnotations) object;
237                     target.setId( (java.lang.String) value);
238                 }
239                 catch (java.lang.Exception ex) {
240                     throw new IllegalStateException(ex.toString());
241                 }
242             }
243             public java.lang.Object newInstance( java.lang.Object parent ) {
244                 return new java.lang.String();
245             }
246         };
247         desc.setHandler(handler);
248         desc.setMultivalued(false);
249         addFieldDescriptor(desc);
250         
251         //-- validation code for: _id
252         fieldValidator = new org.exolab.castor.xml.FieldValidator();
253         { //-- local scope
254         }
255         desc.setValidator(fieldValidator);
256         //-- initialize element descriptors
257         
258         //-- _description
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
264             {
265                 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
266                 return target.getDescription();
267             }
268             public void setValue( java.lang.Object object, java.lang.Object value) 
269                 throws IllegalStateException, IllegalArgumentException
270             {
271                 try {
272                     SequenceSetAnnotations target = (SequenceSetAnnotations) object;
273                     target.setDescription( (java.lang.String) value);
274                 }
275                 catch (java.lang.Exception ex) {
276                     throw new IllegalStateException(ex.toString());
277                 }
278             }
279             public java.lang.Object newInstance( java.lang.Object parent ) {
280                 return null;
281             }
282         };
283         desc.setHandler(handler);
284         desc.setNameSpaceURI("http://www.vamsas.org");
285         desc.setMultivalued(false);
286         addFieldDescriptor(desc);
287         
288         //-- validation code for: _description
289         fieldValidator = new org.exolab.castor.xml.FieldValidator();
290         { //-- local scope
291             StringValidator typeValidator = new StringValidator();
292             typeValidator.setWhiteSpace("preserve");
293             fieldValidator.setValidator(typeValidator);
294         }
295         desc.setValidator(fieldValidator);
296         //-- _status
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
302             {
303                 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
304                 return target.getStatus();
305             }
306             public void setValue( java.lang.Object object, java.lang.Object value) 
307                 throws IllegalStateException, IllegalArgumentException
308             {
309                 try {
310                     SequenceSetAnnotations target = (SequenceSetAnnotations) object;
311                     target.setStatus( (java.lang.String) value);
312                 }
313                 catch (java.lang.Exception ex) {
314                     throw new IllegalStateException(ex.toString());
315                 }
316             }
317             public java.lang.Object newInstance( java.lang.Object parent ) {
318                 return null;
319             }
320         };
321         desc.setHandler(handler);
322         desc.setNameSpaceURI("http://www.vamsas.org");
323         desc.setMultivalued(false);
324         addFieldDescriptor(desc);
325         
326         //-- validation code for: _status
327         fieldValidator = new org.exolab.castor.xml.FieldValidator();
328         { //-- local scope
329             StringValidator typeValidator = new StringValidator();
330             typeValidator.setWhiteSpace("preserve");
331             fieldValidator.setValidator(typeValidator);
332         }
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
339             {
340                 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
341                 return target.getAnnotationElement();
342             }
343             public void setValue( java.lang.Object object, java.lang.Object value) 
344                 throws IllegalStateException, IllegalArgumentException
345             {
346                 try {
347                     SequenceSetAnnotations target = (SequenceSetAnnotations) object;
348                     target.addAnnotationElement( (org.vamsas.objects.core.AnnotationElement) value);
349                 }
350                 catch (java.lang.Exception ex) {
351                     throw new IllegalStateException(ex.toString());
352                 }
353             }
354             public java.lang.Object newInstance( java.lang.Object parent ) {
355                 return new org.vamsas.objects.core.AnnotationElement();
356             }
357         };
358         desc.setHandler(handler);
359         desc.setNameSpaceURI("http://www.vamsas.org");
360         desc.setMultivalued(true);
361         addFieldDescriptor(desc);
362         
363         //-- validation code for: _annotationElementList
364         fieldValidator = new org.exolab.castor.xml.FieldValidator();
365         fieldValidator.setMinOccurs(0);
366         { //-- local scope
367         }
368         desc.setValidator(fieldValidator);
369         //-- _provenanceList
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
374             {
375                 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
376                 return target.getProvenance();
377             }
378             public void setValue( java.lang.Object object, java.lang.Object value) 
379                 throws IllegalStateException, IllegalArgumentException
380             {
381                 try {
382                     SequenceSetAnnotations target = (SequenceSetAnnotations) object;
383                     target.addProvenance( (org.vamsas.objects.core.Provenance) value);
384                 }
385                 catch (java.lang.Exception ex) {
386                     throw new IllegalStateException(ex.toString());
387                 }
388             }
389             public java.lang.Object newInstance( java.lang.Object parent ) {
390                 return new org.vamsas.objects.core.Provenance();
391             }
392         };
393         desc.setHandler(handler);
394         desc.setNameSpaceURI("http://www.vamsas.org");
395         desc.setMultivalued(true);
396         addFieldDescriptor(desc);
397         
398         //-- validation code for: _provenanceList
399         fieldValidator = new org.exolab.castor.xml.FieldValidator();
400         fieldValidator.setMinOccurs(0);
401         { //-- local scope
402         }
403         desc.setValidator(fieldValidator);
404     } //-- org.vamsas.objects.core.SequenceSetAnnotationsDescriptor()
405
406
407       //-----------/
408      //- Methods -/
409     //-----------/
410
411     /**
412      * Method getAccessMode
413      * 
414      * 
415      * 
416      * @return AccessMode
417      */
418     public org.exolab.castor.mapping.AccessMode getAccessMode()
419     {
420         return null;
421     } //-- org.exolab.castor.mapping.AccessMode getAccessMode() 
422
423     /**
424      * Method getExtends
425      * 
426      * 
427      * 
428      * @return ClassDescriptor
429      */
430     public org.exolab.castor.mapping.ClassDescriptor getExtends()
431     {
432         return null;
433     } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
434
435     /**
436      * Method getIdentity
437      * 
438      * 
439      * 
440      * @return FieldDescriptor
441      */
442     public org.exolab.castor.mapping.FieldDescriptor getIdentity()
443     {
444         return identity;
445     } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
446
447     /**
448      * Method getJavaClass
449      * 
450      * 
451      * 
452      * @return Class
453      */
454     public java.lang.Class getJavaClass()
455     {
456         return org.vamsas.objects.core.SequenceSetAnnotations.class;
457     } //-- java.lang.Class getJavaClass() 
458
459     /**
460      * Method getNameSpacePrefix
461      * 
462      * 
463      * 
464      * @return String
465      */
466     public java.lang.String getNameSpacePrefix()
467     {
468         return nsPrefix;
469     } //-- java.lang.String getNameSpacePrefix() 
470
471     /**
472      * Method getNameSpaceURI
473      * 
474      * 
475      * 
476      * @return String
477      */
478     public java.lang.String getNameSpaceURI()
479     {
480         return nsURI;
481     } //-- java.lang.String getNameSpaceURI() 
482
483     /**
484      * Method getValidator
485      * 
486      * 
487      * 
488      * @return TypeValidator
489      */
490     public org.exolab.castor.xml.TypeValidator getValidator()
491     {
492         return this;
493     } //-- org.exolab.castor.xml.TypeValidator getValidator() 
494
495     /**
496      * Method getXMLName
497      * 
498      * 
499      * 
500      * @return String
501      */
502     public java.lang.String getXMLName()
503     {
504         return xmlName;
505     } //-- java.lang.String getXMLName() 
506
507 }