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 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);
222 //-- initialize element descriptors
225 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_description", "description", org.exolab.castor.xml.NodeType.Element);
226 desc.setImmutable(true);
227 handler = new org.exolab.castor.xml.XMLFieldHandler() {
228 public java.lang.Object getValue( java.lang.Object object )
229 throws IllegalStateException
231 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
232 return target.getDescription();
234 public void setValue( java.lang.Object object, java.lang.Object value)
235 throws IllegalStateException, IllegalArgumentException
238 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
239 target.setDescription( (java.lang.String) value);
241 catch (java.lang.Exception ex) {
242 throw new IllegalStateException(ex.toString());
245 public java.lang.Object newInstance( java.lang.Object parent ) {
249 desc.setHandler(handler);
250 desc.setNameSpaceURI("http://www.vamsas.org");
251 desc.setMultivalued(false);
252 addFieldDescriptor(desc);
254 //-- validation code for: _description
255 fieldValidator = new org.exolab.castor.xml.FieldValidator();
257 StringValidator typeValidator = new StringValidator();
258 typeValidator.setWhiteSpace("preserve");
259 fieldValidator.setValidator(typeValidator);
261 desc.setValidator(fieldValidator);
263 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_status", "status", org.exolab.castor.xml.NodeType.Element);
264 desc.setImmutable(true);
265 handler = new org.exolab.castor.xml.XMLFieldHandler() {
266 public java.lang.Object getValue( java.lang.Object object )
267 throws IllegalStateException
269 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
270 return target.getStatus();
272 public void setValue( java.lang.Object object, java.lang.Object value)
273 throws IllegalStateException, IllegalArgumentException
276 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
277 target.setStatus( (java.lang.String) value);
279 catch (java.lang.Exception ex) {
280 throw new IllegalStateException(ex.toString());
283 public java.lang.Object newInstance( java.lang.Object parent ) {
287 desc.setHandler(handler);
288 desc.setNameSpaceURI("http://www.vamsas.org");
289 desc.setMultivalued(false);
290 addFieldDescriptor(desc);
292 //-- validation code for: _status
293 fieldValidator = new org.exolab.castor.xml.FieldValidator();
295 StringValidator typeValidator = new StringValidator();
296 typeValidator.setWhiteSpace("preserve");
297 fieldValidator.setValidator(typeValidator);
299 desc.setValidator(fieldValidator);
300 //-- _annotationElementList
301 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.AnnotationElement.class, "_annotationElementList", "annotationElement", org.exolab.castor.xml.NodeType.Element);
302 handler = new org.exolab.castor.xml.XMLFieldHandler() {
303 public java.lang.Object getValue( java.lang.Object object )
304 throws IllegalStateException
306 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
307 return target.getAnnotationElement();
309 public void setValue( java.lang.Object object, java.lang.Object value)
310 throws IllegalStateException, IllegalArgumentException
313 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
314 target.addAnnotationElement( (org.vamsas.objects.core.AnnotationElement) value);
316 catch (java.lang.Exception ex) {
317 throw new IllegalStateException(ex.toString());
320 public java.lang.Object newInstance( java.lang.Object parent ) {
321 return new org.vamsas.objects.core.AnnotationElement();
324 desc.setHandler(handler);
325 desc.setNameSpaceURI("http://www.vamsas.org");
326 desc.setMultivalued(true);
327 addFieldDescriptor(desc);
329 //-- validation code for: _annotationElementList
330 fieldValidator = new org.exolab.castor.xml.FieldValidator();
331 fieldValidator.setMinOccurs(0);
334 desc.setValidator(fieldValidator);
336 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Provenance.class, "_provenance", "Provenance", org.exolab.castor.xml.NodeType.Element);
337 handler = new org.exolab.castor.xml.XMLFieldHandler() {
338 public java.lang.Object getValue( java.lang.Object object )
339 throws IllegalStateException
341 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
342 return target.getProvenance();
344 public void setValue( java.lang.Object object, java.lang.Object value)
345 throws IllegalStateException, IllegalArgumentException
348 SequenceSetAnnotations target = (SequenceSetAnnotations) object;
349 target.setProvenance( (org.vamsas.objects.core.Provenance) value);
351 catch (java.lang.Exception ex) {
352 throw new IllegalStateException(ex.toString());
355 public java.lang.Object newInstance( java.lang.Object parent ) {
356 return new org.vamsas.objects.core.Provenance();
359 desc.setHandler(handler);
360 desc.setNameSpaceURI("http://www.vamsas.org");
361 desc.setRequired(true);
362 desc.setMultivalued(false);
363 addFieldDescriptor(desc);
365 //-- validation code for: _provenance
366 fieldValidator = new org.exolab.castor.xml.FieldValidator();
367 fieldValidator.setMinOccurs(1);
370 desc.setValidator(fieldValidator);
371 } //-- org.vamsas.objects.core.SequenceSetAnnotationsDescriptor()
379 * Method getAccessMode
385 public org.exolab.castor.mapping.AccessMode getAccessMode()
388 } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
395 * @return ClassDescriptor
397 public org.exolab.castor.mapping.ClassDescriptor getExtends()
400 } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
407 * @return FieldDescriptor
409 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
412 } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
415 * Method getJavaClass
421 public java.lang.Class getJavaClass()
423 return org.vamsas.objects.core.SequenceSetAnnotations.class;
424 } //-- java.lang.Class getJavaClass()
427 * Method getNameSpacePrefix
433 public java.lang.String getNameSpacePrefix()
436 } //-- java.lang.String getNameSpacePrefix()
439 * Method getNameSpaceURI
445 public java.lang.String getNameSpaceURI()
448 } //-- java.lang.String getNameSpaceURI()
451 * Method getValidator
455 * @return TypeValidator
457 public org.exolab.castor.xml.TypeValidator getValidator()
460 } //-- org.exolab.castor.xml.TypeValidator getValidator()
469 public java.lang.String getXMLName()
472 } //-- java.lang.String getXMLName()