added a pollUpdate method to kick the vamsas Document watcher thread when the applica...
[vamsas.git] / src / org / vamsas / objects / core / SequenceSetDescriptor.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 SequenceSetDescriptor.
21  * 
22  * @version $Revision$ $Date$
23  */
24 public class SequenceSetDescriptor 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 SequenceSetDescriptor() 
57      {
58         super();
59         nsURI = "http://www.vamsas.org";
60         xmlName = "SequenceSet";
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         //-- _id
70         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_id", "id", org.exolab.castor.xml.NodeType.Attribute);
71         this.identity = desc;
72         handler = new org.exolab.castor.xml.XMLFieldHandler() {
73             public java.lang.Object getValue( java.lang.Object object ) 
74                 throws IllegalStateException
75             {
76                 SequenceSet target = (SequenceSet) object;
77                 return target.getId();
78             }
79             public void setValue( java.lang.Object object, java.lang.Object value) 
80                 throws IllegalStateException, IllegalArgumentException
81             {
82                 try {
83                     SequenceSet target = (SequenceSet) object;
84                     target.setId( (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 new java.lang.String();
92             }
93         };
94         desc.setHandler(handler);
95         desc.setMultivalued(false);
96         addFieldDescriptor(desc);
97         
98         //-- validation code for: _id
99         fieldValidator = new org.exolab.castor.xml.FieldValidator();
100         { //-- local scope
101         }
102         desc.setValidator(fieldValidator);
103         //-- initialize element descriptors
104         
105         //-- _sequenceList
106         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Sequence.class, "_sequenceList", "Sequence", org.exolab.castor.xml.NodeType.Element);
107         handler = new org.exolab.castor.xml.XMLFieldHandler() {
108             public java.lang.Object getValue( java.lang.Object object ) 
109                 throws IllegalStateException
110             {
111                 SequenceSet target = (SequenceSet) object;
112                 return target.getSequence();
113             }
114             public void setValue( java.lang.Object object, java.lang.Object value) 
115                 throws IllegalStateException, IllegalArgumentException
116             {
117                 try {
118                     SequenceSet target = (SequenceSet) object;
119                     target.addSequence( (org.vamsas.objects.core.Sequence) value);
120                 }
121                 catch (java.lang.Exception ex) {
122                     throw new IllegalStateException(ex.toString());
123                 }
124             }
125             public java.lang.Object newInstance( java.lang.Object parent ) {
126                 return new org.vamsas.objects.core.Sequence();
127             }
128         };
129         desc.setHandler(handler);
130         desc.setNameSpaceURI("http://www.vamsas.org");
131         desc.setRequired(true);
132         desc.setMultivalued(true);
133         addFieldDescriptor(desc);
134         
135         //-- validation code for: _sequenceList
136         fieldValidator = new org.exolab.castor.xml.FieldValidator();
137         fieldValidator.setMinOccurs(1);
138         { //-- local scope
139         }
140         desc.setValidator(fieldValidator);
141         //-- _sequenceSetAnnotationsList
142         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.SequenceSetAnnotations.class, "_sequenceSetAnnotationsList", "SequenceSetAnnotations", org.exolab.castor.xml.NodeType.Element);
143         handler = new org.exolab.castor.xml.XMLFieldHandler() {
144             public java.lang.Object getValue( java.lang.Object object ) 
145                 throws IllegalStateException
146             {
147                 SequenceSet target = (SequenceSet) object;
148                 return target.getSequenceSetAnnotations();
149             }
150             public void setValue( java.lang.Object object, java.lang.Object value) 
151                 throws IllegalStateException, IllegalArgumentException
152             {
153                 try {
154                     SequenceSet target = (SequenceSet) object;
155                     target.addSequenceSetAnnotations( (org.vamsas.objects.core.SequenceSetAnnotations) value);
156                 }
157                 catch (java.lang.Exception ex) {
158                     throw new IllegalStateException(ex.toString());
159                 }
160             }
161             public java.lang.Object newInstance( java.lang.Object parent ) {
162                 return new org.vamsas.objects.core.SequenceSetAnnotations();
163             }
164         };
165         desc.setHandler(handler);
166         desc.setNameSpaceURI("http://www.vamsas.org");
167         desc.setMultivalued(true);
168         addFieldDescriptor(desc);
169         
170         //-- validation code for: _sequenceSetAnnotationsList
171         fieldValidator = new org.exolab.castor.xml.FieldValidator();
172         fieldValidator.setMinOccurs(0);
173         { //-- local scope
174         }
175         desc.setValidator(fieldValidator);
176         //-- _alignmentList
177         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Alignment.class, "_alignmentList", "Alignment", org.exolab.castor.xml.NodeType.Element);
178         handler = new org.exolab.castor.xml.XMLFieldHandler() {
179             public java.lang.Object getValue( java.lang.Object object ) 
180                 throws IllegalStateException
181             {
182                 SequenceSet target = (SequenceSet) object;
183                 return target.getAlignment();
184             }
185             public void setValue( java.lang.Object object, java.lang.Object value) 
186                 throws IllegalStateException, IllegalArgumentException
187             {
188                 try {
189                     SequenceSet target = (SequenceSet) object;
190                     target.addAlignment( (org.vamsas.objects.core.Alignment) value);
191                 }
192                 catch (java.lang.Exception ex) {
193                     throw new IllegalStateException(ex.toString());
194                 }
195             }
196             public java.lang.Object newInstance( java.lang.Object parent ) {
197                 return new org.vamsas.objects.core.Alignment();
198             }
199         };
200         desc.setHandler(handler);
201         desc.setNameSpaceURI("http://www.vamsas.org");
202         desc.setMultivalued(true);
203         addFieldDescriptor(desc);
204         
205         //-- validation code for: _alignmentList
206         fieldValidator = new org.exolab.castor.xml.FieldValidator();
207         fieldValidator.setMinOccurs(0);
208         { //-- local scope
209         }
210         desc.setValidator(fieldValidator);
211         //-- _treeList
212         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Tree.class, "_treeList", "Tree", org.exolab.castor.xml.NodeType.Element);
213         handler = new org.exolab.castor.xml.XMLFieldHandler() {
214             public java.lang.Object getValue( java.lang.Object object ) 
215                 throws IllegalStateException
216             {
217                 SequenceSet target = (SequenceSet) object;
218                 return target.getTree();
219             }
220             public void setValue( java.lang.Object object, java.lang.Object value) 
221                 throws IllegalStateException, IllegalArgumentException
222             {
223                 try {
224                     SequenceSet target = (SequenceSet) object;
225                     target.addTree( (org.vamsas.objects.core.Tree) value);
226                 }
227                 catch (java.lang.Exception ex) {
228                     throw new IllegalStateException(ex.toString());
229                 }
230             }
231             public java.lang.Object newInstance( java.lang.Object parent ) {
232                 return new org.vamsas.objects.core.Tree();
233             }
234         };
235         desc.setHandler(handler);
236         desc.setNameSpaceURI("http://www.vamsas.org");
237         desc.setMultivalued(true);
238         addFieldDescriptor(desc);
239         
240         //-- validation code for: _treeList
241         fieldValidator = new org.exolab.castor.xml.FieldValidator();
242         fieldValidator.setMinOccurs(0);
243         { //-- local scope
244         }
245         desc.setValidator(fieldValidator);
246         //-- _provenanceList
247         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Provenance.class, "_provenanceList", "Provenance", org.exolab.castor.xml.NodeType.Element);
248         handler = new org.exolab.castor.xml.XMLFieldHandler() {
249             public java.lang.Object getValue( java.lang.Object object ) 
250                 throws IllegalStateException
251             {
252                 SequenceSet target = (SequenceSet) object;
253                 return target.getProvenance();
254             }
255             public void setValue( java.lang.Object object, java.lang.Object value) 
256                 throws IllegalStateException, IllegalArgumentException
257             {
258                 try {
259                     SequenceSet target = (SequenceSet) object;
260                     target.addProvenance( (org.vamsas.objects.core.Provenance) value);
261                 }
262                 catch (java.lang.Exception ex) {
263                     throw new IllegalStateException(ex.toString());
264                 }
265             }
266             public java.lang.Object newInstance( java.lang.Object parent ) {
267                 return new org.vamsas.objects.core.Provenance();
268             }
269         };
270         desc.setHandler(handler);
271         desc.setNameSpaceURI("http://www.vamsas.org");
272         desc.setRequired(true);
273         desc.setMultivalued(true);
274         addFieldDescriptor(desc);
275         
276         //-- validation code for: _provenanceList
277         fieldValidator = new org.exolab.castor.xml.FieldValidator();
278         fieldValidator.setMinOccurs(1);
279         { //-- local scope
280         }
281         desc.setValidator(fieldValidator);
282     } //-- org.vamsas.objects.core.SequenceSetDescriptor()
283
284
285       //-----------/
286      //- Methods -/
287     //-----------/
288
289     /**
290      * Method getAccessMode
291      * 
292      * 
293      * 
294      * @return AccessMode
295      */
296     public org.exolab.castor.mapping.AccessMode getAccessMode()
297     {
298         return null;
299     } //-- org.exolab.castor.mapping.AccessMode getAccessMode() 
300
301     /**
302      * Method getExtends
303      * 
304      * 
305      * 
306      * @return ClassDescriptor
307      */
308     public org.exolab.castor.mapping.ClassDescriptor getExtends()
309     {
310         return null;
311     } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
312
313     /**
314      * Method getIdentity
315      * 
316      * 
317      * 
318      * @return FieldDescriptor
319      */
320     public org.exolab.castor.mapping.FieldDescriptor getIdentity()
321     {
322         return identity;
323     } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
324
325     /**
326      * Method getJavaClass
327      * 
328      * 
329      * 
330      * @return Class
331      */
332     public java.lang.Class getJavaClass()
333     {
334         return org.vamsas.objects.core.SequenceSet.class;
335     } //-- java.lang.Class getJavaClass() 
336
337     /**
338      * Method getNameSpacePrefix
339      * 
340      * 
341      * 
342      * @return String
343      */
344     public java.lang.String getNameSpacePrefix()
345     {
346         return nsPrefix;
347     } //-- java.lang.String getNameSpacePrefix() 
348
349     /**
350      * Method getNameSpaceURI
351      * 
352      * 
353      * 
354      * @return String
355      */
356     public java.lang.String getNameSpaceURI()
357     {
358         return nsURI;
359     } //-- java.lang.String getNameSpaceURI() 
360
361     /**
362      * Method getValidator
363      * 
364      * 
365      * 
366      * @return TypeValidator
367      */
368     public org.exolab.castor.xml.TypeValidator getValidator()
369     {
370         return this;
371     } //-- org.exolab.castor.xml.TypeValidator getValidator() 
372
373     /**
374      * Method getXMLName
375      * 
376      * 
377      * 
378      * @return String
379      */
380     public java.lang.String getXMLName()
381     {
382         return xmlName;
383     } //-- java.lang.String getXMLName() 
384
385 }