Clover icon

jalviewX

  1. Project Clover database Wed Oct 31 2018 15:13:58 GMT
  2. Package jalview.schemabinding.version2.descriptors

File AnnotationDescriptor.java

 

Coverage histogram

../../../../img/srcFileCovDistChart8.png
19% of files have more coverage

Code metrics

68
486
77
1
1,298
1,068
135
0.28
6.31
77
1.75

Classes

Class Line # Actions
AnnotationDescriptor 21 486 135 147
0.7670364476.7%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    /*
2    * This class was automatically generated with
3    * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
4    * Schema.
5    * $Id$
6    */
7   
8    package jalview.schemabinding.version2.descriptors;
9   
10    //---------------------------------/
11    //- Imported classes and packages -/
12    //---------------------------------/
13   
14    import jalview.schemabinding.version2.Annotation;
15   
16    /**
17    * Class AnnotationDescriptor.
18    *
19    * @version $Revision$ $Date$
20    */
 
21    public class AnnotationDescriptor extends
22    org.exolab.castor.xml.util.XMLClassDescriptorImpl
23    {
24   
25    // --------------------------/
26    // - Class/Member Variables -/
27    // --------------------------/
28   
29    /**
30    * Field _elementDefinition.
31    */
32    private boolean _elementDefinition;
33   
34    /**
35    * Field _nsPrefix.
36    */
37    private java.lang.String _nsPrefix;
38   
39    /**
40    * Field _nsURI.
41    */
42    private java.lang.String _nsURI;
43   
44    /**
45    * Field _xmlName.
46    */
47    private java.lang.String _xmlName;
48   
49    // ----------------/
50    // - Constructors -/
51    // ----------------/
52   
 
53  1155 toggle public AnnotationDescriptor()
54    {
55  1155 super();
56  1155 _nsURI = "www.vamsas.ac.uk/jalview/version2";
57  1155 _xmlName = "Annotation";
58  1155 _elementDefinition = true;
59   
60    // -- set grouping compositor
61  1155 setCompositorAsSequence();
62  1155 org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
63  1155 org.exolab.castor.mapping.FieldHandler handler = null;
64  1155 org.exolab.castor.xml.FieldValidator fieldValidator = null;
65    // -- initialize attribute descriptors
66   
67    // -- _graph
68  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
69    java.lang.Boolean.TYPE, "_graph", "graph",
70    org.exolab.castor.xml.NodeType.Attribute);
71  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
72    {
 
73  610 toggle public java.lang.Object getValue(java.lang.Object object)
74    throws IllegalStateException
75    {
76  610 Annotation target = (Annotation) object;
77  610 if (!target.hasGraph())
78    {
79  0 return null;
80    }
81  610 return (target.getGraph() ? java.lang.Boolean.TRUE
82    : java.lang.Boolean.FALSE);
83    }
84   
 
85  545 toggle public void setValue(java.lang.Object object, java.lang.Object value)
86    throws IllegalStateException, IllegalArgumentException
87    {
88  545 try
89    {
90  545 Annotation target = (Annotation) object;
91    // ignore null values for non optional primitives
92  545 if (value == null)
93    {
94  0 return;
95    }
96   
97  545 target.setGraph(((java.lang.Boolean) value).booleanValue());
98    } catch (java.lang.Exception ex)
99    {
100  0 throw new IllegalStateException(ex.toString());
101    }
102    }
103   
 
104  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
105    {
106  0 return null;
107    }
108    };
109  1155 desc.setHandler(handler);
110  1155 desc.setRequired(true);
111  1155 desc.setMultivalued(false);
112  1155 addFieldDescriptor(desc);
113   
114    // -- validation code for: _graph
115  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
116  1155 fieldValidator.setMinOccurs(1);
117    { // -- local scope
118  1155 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
119  1155 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
120  1155 fieldValidator.setValidator(typeValidator);
121    }
122  1155 desc.setValidator(fieldValidator);
123    // -- _graphType
124  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
125    java.lang.Integer.TYPE, "_graphType", "graphType",
126    org.exolab.castor.xml.NodeType.Attribute);
127  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
128    {
 
129  610 toggle public java.lang.Object getValue(java.lang.Object object)
130    throws IllegalStateException
131    {
132  610 Annotation target = (Annotation) object;
133  610 if (!target.hasGraphType())
134    {
135  302 return null;
136    }
137  308 return new java.lang.Integer(target.getGraphType());
138    }
139   
 
140  354 toggle public void setValue(java.lang.Object object, java.lang.Object value)
141    throws IllegalStateException, IllegalArgumentException
142    {
143  354 try
144    {
145  354 Annotation target = (Annotation) object;
146    // if null, use delete method for optional primitives
147  354 if (value == null)
148    {
149  0 target.deleteGraphType();
150  0 return;
151    }
152  354 target.setGraphType(((java.lang.Integer) value).intValue());
153    } catch (java.lang.Exception ex)
154    {
155  0 throw new IllegalStateException(ex.toString());
156    }
157    }
158   
 
159  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
160    {
161  0 return null;
162    }
163    };
164  1155 desc.setHandler(handler);
165  1155 desc.setMultivalued(false);
166  1155 addFieldDescriptor(desc);
167   
168    // -- validation code for: _graphType
169  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
170    { // -- local scope
171  1155 org.exolab.castor.xml.validators.IntValidator typeValidator;
172  1155 typeValidator = new org.exolab.castor.xml.validators.IntValidator();
173  1155 fieldValidator.setValidator(typeValidator);
174  1155 typeValidator.setMinInclusive(-2147483648);
175  1155 typeValidator.setMaxInclusive(2147483647);
176    }
177  1155 desc.setValidator(fieldValidator);
178    // -- _sequenceRef
179  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
180    java.lang.String.class, "_sequenceRef", "sequenceRef",
181    org.exolab.castor.xml.NodeType.Attribute);
182  1155 desc.setImmutable(true);
183  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
184    {
 
185  610 toggle public java.lang.Object getValue(java.lang.Object object)
186    throws IllegalStateException
187    {
188  610 Annotation target = (Annotation) object;
189  610 return target.getSequenceRef();
190    }
191   
 
192  203 toggle public void setValue(java.lang.Object object, java.lang.Object value)
193    throws IllegalStateException, IllegalArgumentException
194    {
195  203 try
196    {
197  203 Annotation target = (Annotation) object;
198  203 target.setSequenceRef((java.lang.String) value);
199    } catch (java.lang.Exception ex)
200    {
201  0 throw new IllegalStateException(ex.toString());
202    }
203    }
204   
 
205  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
206    {
207  0 return null;
208    }
209    };
210  1155 desc.setHandler(handler);
211  1155 desc.setMultivalued(false);
212  1155 addFieldDescriptor(desc);
213   
214    // -- validation code for: _sequenceRef
215  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
216    { // -- local scope
217  1155 org.exolab.castor.xml.validators.StringValidator typeValidator;
218  1155 typeValidator = new org.exolab.castor.xml.validators.StringValidator();
219  1155 fieldValidator.setValidator(typeValidator);
220  1155 typeValidator.setWhiteSpace("preserve");
221    }
222  1155 desc.setValidator(fieldValidator);
223    // -- _groupRef
224  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
225    java.lang.String.class, "_groupRef", "groupRef",
226    org.exolab.castor.xml.NodeType.Attribute);
227  1155 desc.setImmutable(true);
228  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
229    {
 
230  610 toggle public java.lang.Object getValue(java.lang.Object object)
231    throws IllegalStateException
232    {
233  610 Annotation target = (Annotation) object;
234  610 return target.getGroupRef();
235    }
236   
 
237  36 toggle public void setValue(java.lang.Object object, java.lang.Object value)
238    throws IllegalStateException, IllegalArgumentException
239    {
240  36 try
241    {
242  36 Annotation target = (Annotation) object;
243  36 target.setGroupRef((java.lang.String) value);
244    } catch (java.lang.Exception ex)
245    {
246  0 throw new IllegalStateException(ex.toString());
247    }
248    }
249   
 
250  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
251    {
252  0 return null;
253    }
254    };
255  1155 desc.setHandler(handler);
256  1155 desc.setMultivalued(false);
257  1155 addFieldDescriptor(desc);
258   
259    // -- validation code for: _groupRef
260  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
261    { // -- local scope
262  1155 org.exolab.castor.xml.validators.StringValidator typeValidator;
263  1155 typeValidator = new org.exolab.castor.xml.validators.StringValidator();
264  1155 fieldValidator.setValidator(typeValidator);
265  1155 typeValidator.setWhiteSpace("preserve");
266    }
267  1155 desc.setValidator(fieldValidator);
268    // -- _graphColour
269  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
270    java.lang.Integer.TYPE, "_graphColour", "graphColour",
271    org.exolab.castor.xml.NodeType.Attribute);
272  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
273    {
 
274  610 toggle public java.lang.Object getValue(java.lang.Object object)
275    throws IllegalStateException
276    {
277  610 Annotation target = (Annotation) object;
278  610 if (!target.hasGraphColour())
279    {
280  610 return null;
281    }
282  0 return new java.lang.Integer(target.getGraphColour());
283    }
284   
 
285  0 toggle public void setValue(java.lang.Object object, java.lang.Object value)
286    throws IllegalStateException, IllegalArgumentException
287    {
288  0 try
289    {
290  0 Annotation target = (Annotation) object;
291    // if null, use delete method for optional primitives
292  0 if (value == null)
293    {
294  0 target.deleteGraphColour();
295  0 return;
296    }
297  0 target.setGraphColour(((java.lang.Integer) value).intValue());
298    } catch (java.lang.Exception ex)
299    {
300  0 throw new IllegalStateException(ex.toString());
301    }
302    }
303   
 
304  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
305    {
306  0 return null;
307    }
308    };
309  1155 desc.setHandler(handler);
310  1155 desc.setMultivalued(false);
311  1155 addFieldDescriptor(desc);
312   
313    // -- validation code for: _graphColour
314  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
315    { // -- local scope
316  1155 org.exolab.castor.xml.validators.IntValidator typeValidator;
317  1155 typeValidator = new org.exolab.castor.xml.validators.IntValidator();
318  1155 fieldValidator.setValidator(typeValidator);
319  1155 typeValidator.setMinInclusive(-2147483648);
320  1155 typeValidator.setMaxInclusive(2147483647);
321    }
322  1155 desc.setValidator(fieldValidator);
323    // -- _graphGroup
324  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
325    java.lang.Integer.TYPE, "_graphGroup", "graphGroup",
326    org.exolab.castor.xml.NodeType.Attribute);
327  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
328    {
 
329  610 toggle public java.lang.Object getValue(java.lang.Object object)
330    throws IllegalStateException
331    {
332  610 Annotation target = (Annotation) object;
333  610 if (!target.hasGraphGroup())
334    {
335  302 return null;
336    }
337  308 return new java.lang.Integer(target.getGraphGroup());
338    }
339   
 
340  354 toggle public void setValue(java.lang.Object object, java.lang.Object value)
341    throws IllegalStateException, IllegalArgumentException
342    {
343  354 try
344    {
345  354 Annotation target = (Annotation) object;
346    // if null, use delete method for optional primitives
347  354 if (value == null)
348    {
349  0 target.deleteGraphGroup();
350  0 return;
351    }
352  354 target.setGraphGroup(((java.lang.Integer) value).intValue());
353    } catch (java.lang.Exception ex)
354    {
355  0 throw new IllegalStateException(ex.toString());
356    }
357    }
358   
 
359  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
360    {
361  0 return null;
362    }
363    };
364  1155 desc.setHandler(handler);
365  1155 desc.setMultivalued(false);
366  1155 addFieldDescriptor(desc);
367   
368    // -- validation code for: _graphGroup
369  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
370    { // -- local scope
371  1155 org.exolab.castor.xml.validators.IntValidator typeValidator;
372  1155 typeValidator = new org.exolab.castor.xml.validators.IntValidator();
373  1155 fieldValidator.setValidator(typeValidator);
374  1155 typeValidator.setMinInclusive(-2147483648);
375  1155 typeValidator.setMaxInclusive(2147483647);
376    }
377  1155 desc.setValidator(fieldValidator);
378    // -- _graphHeight
379  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
380    java.lang.Integer.TYPE, "_graphHeight", "graphHeight",
381    org.exolab.castor.xml.NodeType.Attribute);
382  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
383    {
 
384  610 toggle public java.lang.Object getValue(java.lang.Object object)
385    throws IllegalStateException
386    {
387  610 Annotation target = (Annotation) object;
388  610 if (!target.hasGraphHeight())
389    {
390  0 return null;
391    }
392  610 return new java.lang.Integer(target.getGraphHeight());
393    }
394   
 
395  545 toggle public void setValue(java.lang.Object object, java.lang.Object value)
396    throws IllegalStateException, IllegalArgumentException
397    {
398  545 try
399    {
400  545 Annotation target = (Annotation) object;
401    // if null, use delete method for optional primitives
402  545 if (value == null)
403    {
404  0 target.deleteGraphHeight();
405  0 return;
406    }
407  545 target.setGraphHeight(((java.lang.Integer) value).intValue());
408    } catch (java.lang.Exception ex)
409    {
410  0 throw new IllegalStateException(ex.toString());
411    }
412    }
413   
 
414  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
415    {
416  0 return null;
417    }
418    };
419  1155 desc.setHandler(handler);
420  1155 desc.setMultivalued(false);
421  1155 addFieldDescriptor(desc);
422   
423    // -- validation code for: _graphHeight
424  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
425    { // -- local scope
426  1155 org.exolab.castor.xml.validators.IntValidator typeValidator;
427  1155 typeValidator = new org.exolab.castor.xml.validators.IntValidator();
428  1155 fieldValidator.setValidator(typeValidator);
429  1155 typeValidator.setMinInclusive(-2147483648);
430  1155 typeValidator.setMaxInclusive(2147483647);
431    }
432  1155 desc.setValidator(fieldValidator);
433    // -- _id
434  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
435    java.lang.String.class, "_id", "id",
436    org.exolab.castor.xml.NodeType.Attribute);
437  1155 desc.setImmutable(true);
438  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
439    {
 
440  610 toggle public java.lang.Object getValue(java.lang.Object object)
441    throws IllegalStateException
442    {
443  610 Annotation target = (Annotation) object;
444  610 return target.getId();
445    }
446   
 
447  545 toggle public void setValue(java.lang.Object object, java.lang.Object value)
448    throws IllegalStateException, IllegalArgumentException
449    {
450  545 try
451    {
452  545 Annotation target = (Annotation) object;
453  545 target.setId((java.lang.String) value);
454    } catch (java.lang.Exception ex)
455    {
456  0 throw new IllegalStateException(ex.toString());
457    }
458    }
459   
 
460  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
461    {
462  0 return null;
463    }
464    };
465  1155 desc.setHandler(handler);
466  1155 desc.setMultivalued(false);
467  1155 addFieldDescriptor(desc);
468   
469    // -- validation code for: _id
470  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
471    { // -- local scope
472  1155 org.exolab.castor.xml.validators.StringValidator typeValidator;
473  1155 typeValidator = new org.exolab.castor.xml.validators.StringValidator();
474  1155 fieldValidator.setValidator(typeValidator);
475  1155 typeValidator.setWhiteSpace("preserve");
476    }
477  1155 desc.setValidator(fieldValidator);
478    // -- _scoreOnly
479  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
480    java.lang.Boolean.TYPE, "_scoreOnly", "scoreOnly",
481    org.exolab.castor.xml.NodeType.Attribute);
482  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
483    {
 
484  610 toggle public java.lang.Object getValue(java.lang.Object object)
485    throws IllegalStateException
486    {
487  610 Annotation target = (Annotation) object;
488  610 if (!target.hasScoreOnly())
489    {
490  0 return null;
491    }
492  610 return (target.getScoreOnly() ? java.lang.Boolean.TRUE
493    : java.lang.Boolean.FALSE);
494    }
495   
 
496  545 toggle public void setValue(java.lang.Object object, java.lang.Object value)
497    throws IllegalStateException, IllegalArgumentException
498    {
499  545 try
500    {
501  545 Annotation target = (Annotation) object;
502    // if null, use delete method for optional primitives
503  545 if (value == null)
504    {
505  0 target.deleteScoreOnly();
506  0 return;
507    }
508  545 target.setScoreOnly(((java.lang.Boolean) value).booleanValue());
509    } catch (java.lang.Exception ex)
510    {
511  0 throw new IllegalStateException(ex.toString());
512    }
513    }
514   
 
515  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
516    {
517  0 return null;
518    }
519    };
520  1155 desc.setHandler(handler);
521  1155 desc.setMultivalued(false);
522  1155 addFieldDescriptor(desc);
523   
524    // -- validation code for: _scoreOnly
525  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
526    { // -- local scope
527  1155 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
528  1155 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
529  1155 fieldValidator.setValidator(typeValidator);
530    }
531  1155 desc.setValidator(fieldValidator);
532    // -- _score
533  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
534    java.lang.Double.TYPE, "_score", "score",
535    org.exolab.castor.xml.NodeType.Attribute);
536  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
537    {
 
538  610 toggle public java.lang.Object getValue(java.lang.Object object)
539    throws IllegalStateException
540    {
541  610 Annotation target = (Annotation) object;
542  610 if (!target.hasScore())
543    {
544  332 return null;
545    }
546  278 return new java.lang.Double(target.getScore());
547    }
548   
 
549  139 toggle public void setValue(java.lang.Object object, java.lang.Object value)
550    throws IllegalStateException, IllegalArgumentException
551    {
552  139 try
553    {
554  139 Annotation target = (Annotation) object;
555    // if null, use delete method for optional primitives
556  139 if (value == null)
557    {
558  0 target.deleteScore();
559  0 return;
560    }
561  139 target.setScore(((java.lang.Double) value).doubleValue());
562    } catch (java.lang.Exception ex)
563    {
564  0 throw new IllegalStateException(ex.toString());
565    }
566    }
567   
 
568  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
569    {
570  0 return null;
571    }
572    };
573  1155 desc.setHandler(handler);
574  1155 desc.setMultivalued(false);
575  1155 addFieldDescriptor(desc);
576   
577    // -- validation code for: _score
578  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
579    { // -- local scope
580  1155 org.exolab.castor.xml.validators.DoubleValidator typeValidator;
581  1155 typeValidator = new org.exolab.castor.xml.validators.DoubleValidator();
582  1155 fieldValidator.setValidator(typeValidator);
583  1155 typeValidator.setMinInclusive(-1.7976931348623157E308);
584  1155 typeValidator.setMaxInclusive(1.7976931348623157E308);
585    }
586  1155 desc.setValidator(fieldValidator);
587    // -- _visible
588  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
589    java.lang.Boolean.TYPE, "_visible", "visible",
590    org.exolab.castor.xml.NodeType.Attribute);
591  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
592    {
 
593  610 toggle public java.lang.Object getValue(java.lang.Object object)
594    throws IllegalStateException
595    {
596  610 Annotation target = (Annotation) object;
597  610 if (!target.hasVisible())
598    {
599  0 return null;
600    }
601  610 return (target.getVisible() ? java.lang.Boolean.TRUE
602    : java.lang.Boolean.FALSE);
603    }
604   
 
605  545 toggle public void setValue(java.lang.Object object, java.lang.Object value)
606    throws IllegalStateException, IllegalArgumentException
607    {
608  545 try
609    {
610  545 Annotation target = (Annotation) object;
611    // if null, use delete method for optional primitives
612  545 if (value == null)
613    {
614  0 target.deleteVisible();
615  0 return;
616    }
617  545 target.setVisible(((java.lang.Boolean) value).booleanValue());
618    } catch (java.lang.Exception ex)
619    {
620  0 throw new IllegalStateException(ex.toString());
621    }
622    }
623   
 
624  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
625    {
626  0 return null;
627    }
628    };
629  1155 desc.setHandler(handler);
630  1155 desc.setMultivalued(false);
631  1155 addFieldDescriptor(desc);
632   
633    // -- validation code for: _visible
634  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
635    { // -- local scope
636  1155 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
637  1155 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
638  1155 fieldValidator.setValidator(typeValidator);
639    }
640  1155 desc.setValidator(fieldValidator);
641    // -- _centreColLabels
642  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
643    java.lang.Boolean.TYPE, "_centreColLabels", "centreColLabels",
644    org.exolab.castor.xml.NodeType.Attribute);
645  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
646    {
 
647  610 toggle public java.lang.Object getValue(java.lang.Object object)
648    throws IllegalStateException
649    {
650  610 Annotation target = (Annotation) object;
651  610 if (!target.hasCentreColLabels())
652    {
653  0 return null;
654    }
655  610 return (target.getCentreColLabels() ? java.lang.Boolean.TRUE
656    : java.lang.Boolean.FALSE);
657    }
658   
 
659  545 toggle public void setValue(java.lang.Object object, java.lang.Object value)
660    throws IllegalStateException, IllegalArgumentException
661    {
662  545 try
663    {
664  545 Annotation target = (Annotation) object;
665    // if null, use delete method for optional primitives
666  545 if (value == null)
667    {
668  0 target.deleteCentreColLabels();
669  0 return;
670    }
671  545 target.setCentreColLabels(((java.lang.Boolean) value)
672    .booleanValue());
673    } catch (java.lang.Exception ex)
674    {
675  0 throw new IllegalStateException(ex.toString());
676    }
677    }
678   
 
679  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
680    {
681  0 return null;
682    }
683    };
684  1155 desc.setHandler(handler);
685  1155 desc.setMultivalued(false);
686  1155 addFieldDescriptor(desc);
687   
688    // -- validation code for: _centreColLabels
689  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
690    { // -- local scope
691  1155 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
692  1155 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
693  1155 fieldValidator.setValidator(typeValidator);
694    }
695  1155 desc.setValidator(fieldValidator);
696    // -- _scaleColLabels
697  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
698    java.lang.Boolean.TYPE, "_scaleColLabels", "scaleColLabels",
699    org.exolab.castor.xml.NodeType.Attribute);
700  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
701    {
 
702  610 toggle public java.lang.Object getValue(java.lang.Object object)
703    throws IllegalStateException
704    {
705  610 Annotation target = (Annotation) object;
706  610 if (!target.hasScaleColLabels())
707    {
708  0 return null;
709    }
710  610 return (target.getScaleColLabels() ? java.lang.Boolean.TRUE
711    : java.lang.Boolean.FALSE);
712    }
713   
 
714  545 toggle public void setValue(java.lang.Object object, java.lang.Object value)
715    throws IllegalStateException, IllegalArgumentException
716    {
717  545 try
718    {
719  545 Annotation target = (Annotation) object;
720    // if null, use delete method for optional primitives
721  545 if (value == null)
722    {
723  0 target.deleteScaleColLabels();
724  0 return;
725    }
726  545 target.setScaleColLabels(((java.lang.Boolean) value)
727    .booleanValue());
728    } catch (java.lang.Exception ex)
729    {
730  0 throw new IllegalStateException(ex.toString());
731    }
732    }
733   
 
734  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
735    {
736  0 return null;
737    }
738    };
739  1155 desc.setHandler(handler);
740  1155 desc.setMultivalued(false);
741  1155 addFieldDescriptor(desc);
742   
743    // -- validation code for: _scaleColLabels
744  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
745    { // -- local scope
746  1155 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
747  1155 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
748  1155 fieldValidator.setValidator(typeValidator);
749    }
750  1155 desc.setValidator(fieldValidator);
751    // -- _showAllColLabels
752  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
753    java.lang.Boolean.TYPE, "_showAllColLabels",
754    "showAllColLabels", org.exolab.castor.xml.NodeType.Attribute);
755  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
756    {
 
757  610 toggle public java.lang.Object getValue(java.lang.Object object)
758    throws IllegalStateException
759    {
760  610 Annotation target = (Annotation) object;
761  610 if (!target.hasShowAllColLabels())
762    {
763  0 return null;
764    }
765  610 return (target.getShowAllColLabels() ? java.lang.Boolean.TRUE
766    : java.lang.Boolean.FALSE);
767    }
768   
 
769  545 toggle public void setValue(java.lang.Object object, java.lang.Object value)
770    throws IllegalStateException, IllegalArgumentException
771    {
772  545 try
773    {
774  545 Annotation target = (Annotation) object;
775    // if null, use delete method for optional primitives
776  545 if (value == null)
777    {
778  0 target.deleteShowAllColLabels();
779  0 return;
780    }
781  545 target.setShowAllColLabels(((java.lang.Boolean) value)
782    .booleanValue());
783    } catch (java.lang.Exception ex)
784    {
785  0 throw new IllegalStateException(ex.toString());
786    }
787    }
788   
 
789  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
790    {
791  0 return null;
792    }
793    };
794  1155 desc.setHandler(handler);
795  1155 desc.setMultivalued(false);
796  1155 addFieldDescriptor(desc);
797   
798    // -- validation code for: _showAllColLabels
799  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
800    { // -- local scope
801  1155 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
802  1155 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
803  1155 fieldValidator.setValidator(typeValidator);
804    }
805  1155 desc.setValidator(fieldValidator);
806    // -- _autoCalculated
807  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
808    java.lang.Boolean.TYPE, "_autoCalculated", "autoCalculated",
809    org.exolab.castor.xml.NodeType.Attribute);
810  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
811    {
 
812  610 toggle public java.lang.Object getValue(java.lang.Object object)
813    throws IllegalStateException
814    {
815  610 Annotation target = (Annotation) object;
816  610 if (!target.hasAutoCalculated())
817    {
818  448 return null;
819    }
820  162 return (target.getAutoCalculated() ? java.lang.Boolean.TRUE
821    : java.lang.Boolean.FALSE);
822    }
823   
 
824  231 toggle public void setValue(java.lang.Object object, java.lang.Object value)
825    throws IllegalStateException, IllegalArgumentException
826    {
827  231 try
828    {
829  231 Annotation target = (Annotation) object;
830    // if null, use delete method for optional primitives
831  231 if (value == null)
832    {
833  0 target.deleteAutoCalculated();
834  0 return;
835    }
836  231 target.setAutoCalculated(((java.lang.Boolean) value)
837    .booleanValue());
838    } catch (java.lang.Exception ex)
839    {
840  0 throw new IllegalStateException(ex.toString());
841    }
842    }
843   
 
844  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
845    {
846  0 return null;
847    }
848    };
849  1155 desc.setHandler(handler);
850  1155 desc.setMultivalued(false);
851  1155 addFieldDescriptor(desc);
852   
853    // -- validation code for: _autoCalculated
854  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
855    { // -- local scope
856  1155 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
857  1155 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
858  1155 fieldValidator.setValidator(typeValidator);
859    }
860  1155 desc.setValidator(fieldValidator);
861    // -- _belowAlignment
862  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
863    java.lang.Boolean.TYPE, "_belowAlignment", "belowAlignment",
864    org.exolab.castor.xml.NodeType.Attribute);
865  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
866    {
 
867  610 toggle public java.lang.Object getValue(java.lang.Object object)
868    throws IllegalStateException
869    {
870  610 Annotation target = (Annotation) object;
871  610 if (!target.hasBelowAlignment())
872    {
873  0 return null;
874    }
875  610 return (target.getBelowAlignment() ? java.lang.Boolean.TRUE
876    : java.lang.Boolean.FALSE);
877    }
878   
 
879  305 toggle public void setValue(java.lang.Object object, java.lang.Object value)
880    throws IllegalStateException, IllegalArgumentException
881    {
882  305 try
883    {
884  305 Annotation target = (Annotation) object;
885    // if null, use delete method for optional primitives
886  305 if (value == null)
887    {
888  0 target.deleteBelowAlignment();
889  0 return;
890    }
891  305 target.setBelowAlignment(((java.lang.Boolean) value)
892    .booleanValue());
893    } catch (java.lang.Exception ex)
894    {
895  0 throw new IllegalStateException(ex.toString());
896    }
897    }
898   
 
899  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
900    {
901  0 return null;
902    }
903    };
904  1155 desc.setHandler(handler);
905  1155 desc.setMultivalued(false);
906  1155 addFieldDescriptor(desc);
907   
908    // -- validation code for: _belowAlignment
909  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
910    { // -- local scope
911  1155 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
912  1155 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
913  1155 fieldValidator.setValidator(typeValidator);
914    }
915  1155 desc.setValidator(fieldValidator);
916    // -- _calcId
917  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
918    java.lang.String.class, "_calcId", "calcId",
919    org.exolab.castor.xml.NodeType.Attribute);
920  1155 desc.setImmutable(true);
921  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
922    {
 
923  610 toggle public java.lang.Object getValue(java.lang.Object object)
924    throws IllegalStateException
925    {
926  610 Annotation target = (Annotation) object;
927  610 return target.getCalcId();
928    }
929   
 
930  281 toggle public void setValue(java.lang.Object object, java.lang.Object value)
931    throws IllegalStateException, IllegalArgumentException
932    {
933  281 try
934    {
935  281 Annotation target = (Annotation) object;
936  281 target.setCalcId((java.lang.String) value);
937    } catch (java.lang.Exception ex)
938    {
939  0 throw new IllegalStateException(ex.toString());
940    }
941    }
942   
 
943  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
944    {
945  0 return null;
946    }
947    };
948  1155 desc.setHandler(handler);
949  1155 desc.setMultivalued(false);
950  1155 addFieldDescriptor(desc);
951   
952    // -- validation code for: _calcId
953  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
954    { // -- local scope
955  1155 org.exolab.castor.xml.validators.StringValidator typeValidator;
956  1155 typeValidator = new org.exolab.castor.xml.validators.StringValidator();
957  1155 fieldValidator.setValidator(typeValidator);
958  1155 typeValidator.setWhiteSpace("preserve");
959    }
960  1155 desc.setValidator(fieldValidator);
961    // -- initialize element descriptors
962   
963    // -- _annotationElementList
964  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
965    jalview.schemabinding.version2.AnnotationElement.class,
966    "_annotationElementList", "annotationElement",
967    org.exolab.castor.xml.NodeType.Element);
968  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
969    {
 
970  610 toggle public java.lang.Object getValue(java.lang.Object object)
971    throws IllegalStateException
972    {
973  610 Annotation target = (Annotation) object;
974  610 return target.getAnnotationElement();
975    }
976   
 
977  62363 toggle public void setValue(java.lang.Object object, java.lang.Object value)
978    throws IllegalStateException, IllegalArgumentException
979    {
980  62363 try
981    {
982  62363 Annotation target = (Annotation) object;
983  62363 target.addAnnotationElement((jalview.schemabinding.version2.AnnotationElement) value);
984    } catch (java.lang.Exception ex)
985    {
986  0 throw new IllegalStateException(ex.toString());
987    }
988    }
989   
 
990  0 toggle public void resetValue(Object object) throws IllegalStateException,
991    IllegalArgumentException
992    {
993  0 try
994    {
995  0 Annotation target = (Annotation) object;
996  0 target.removeAllAnnotationElement();
997    } catch (java.lang.Exception ex)
998    {
999  0 throw new IllegalStateException(ex.toString());
1000    }
1001    }
1002   
 
1003  62363 toggle public java.lang.Object newInstance(java.lang.Object parent)
1004    {
1005  62363 return new jalview.schemabinding.version2.AnnotationElement();
1006    }
1007    };
1008  1155 desc.setHandler(handler);
1009  1155 desc.setNameSpaceURI("www.vamsas.ac.uk/jalview/version2");
1010  1155 desc.setMultivalued(true);
1011  1155 addFieldDescriptor(desc);
1012   
1013    // -- validation code for: _annotationElementList
1014  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
1015  1155 fieldValidator.setMinOccurs(0);
1016    { // -- local scope
1017    }
1018  1155 desc.setValidator(fieldValidator);
1019    // -- _label
1020  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
1021    java.lang.String.class, "_label", "label",
1022    org.exolab.castor.xml.NodeType.Element);
1023  1155 desc.setImmutable(true);
1024  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
1025    {
 
1026  610 toggle public java.lang.Object getValue(java.lang.Object object)
1027    throws IllegalStateException
1028    {
1029  610 Annotation target = (Annotation) object;
1030  610 return target.getLabel();
1031    }
1032   
 
1033  545 toggle public void setValue(java.lang.Object object, java.lang.Object value)
1034    throws IllegalStateException, IllegalArgumentException
1035    {
1036  545 try
1037    {
1038  545 Annotation target = (Annotation) object;
1039  545 target.setLabel((java.lang.String) value);
1040    } catch (java.lang.Exception ex)
1041    {
1042  0 throw new IllegalStateException(ex.toString());
1043    }
1044    }
1045   
 
1046  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
1047    {
1048  0 return null;
1049    }
1050    };
1051  1155 desc.setHandler(handler);
1052  1155 desc.setNameSpaceURI("www.vamsas.ac.uk/jalview/version2");
1053  1155 desc.setRequired(true);
1054  1155 desc.setMultivalued(false);
1055  1155 addFieldDescriptor(desc);
1056   
1057    // -- validation code for: _label
1058  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
1059  1155 fieldValidator.setMinOccurs(1);
1060    { // -- local scope
1061  1155 org.exolab.castor.xml.validators.StringValidator typeValidator;
1062  1155 typeValidator = new org.exolab.castor.xml.validators.StringValidator();
1063  1155 fieldValidator.setValidator(typeValidator);
1064  1155 typeValidator.setWhiteSpace("preserve");
1065    }
1066  1155 desc.setValidator(fieldValidator);
1067    // -- _description
1068  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
1069    java.lang.String.class, "_description", "description",
1070    org.exolab.castor.xml.NodeType.Element);
1071  1155 desc.setImmutable(true);
1072  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
1073    {
 
1074  610 toggle public java.lang.Object getValue(java.lang.Object object)
1075    throws IllegalStateException
1076    {
1077  610 Annotation target = (Annotation) object;
1078  610 return target.getDescription();
1079    }
1080   
 
1081  545 toggle public void setValue(java.lang.Object object, java.lang.Object value)
1082    throws IllegalStateException, IllegalArgumentException
1083    {
1084  545 try
1085    {
1086  545 Annotation target = (Annotation) object;
1087  545 target.setDescription((java.lang.String) value);
1088    } catch (java.lang.Exception ex)
1089    {
1090  0 throw new IllegalStateException(ex.toString());
1091    }
1092    }
1093   
 
1094  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
1095    {
1096  0 return null;
1097    }
1098    };
1099  1155 desc.setHandler(handler);
1100  1155 desc.setNameSpaceURI("www.vamsas.ac.uk/jalview/version2");
1101  1155 desc.setMultivalued(false);
1102  1155 addFieldDescriptor(desc);
1103   
1104    // -- validation code for: _description
1105  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
1106    { // -- local scope
1107  1155 org.exolab.castor.xml.validators.StringValidator typeValidator;
1108  1155 typeValidator = new org.exolab.castor.xml.validators.StringValidator();
1109  1155 fieldValidator.setValidator(typeValidator);
1110  1155 typeValidator.setWhiteSpace("preserve");
1111    }
1112  1155 desc.setValidator(fieldValidator);
1113    // -- _thresholdLine
1114  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
1115    jalview.schemabinding.version2.ThresholdLine.class,
1116    "_thresholdLine", "thresholdLine",
1117    org.exolab.castor.xml.NodeType.Element);
1118  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
1119    {
 
1120  610 toggle public java.lang.Object getValue(java.lang.Object object)
1121    throws IllegalStateException
1122    {
1123  610 Annotation target = (Annotation) object;
1124  610 return target.getThresholdLine();
1125    }
1126   
 
1127  30 toggle public void setValue(java.lang.Object object, java.lang.Object value)
1128    throws IllegalStateException, IllegalArgumentException
1129    {
1130  30 try
1131    {
1132  30 Annotation target = (Annotation) object;
1133  30 target.setThresholdLine((jalview.schemabinding.version2.ThresholdLine) value);
1134    } catch (java.lang.Exception ex)
1135    {
1136  0 throw new IllegalStateException(ex.toString());
1137    }
1138    }
1139   
 
1140  30 toggle public java.lang.Object newInstance(java.lang.Object parent)
1141    {
1142  30 return new jalview.schemabinding.version2.ThresholdLine();
1143    }
1144    };
1145  1155 desc.setHandler(handler);
1146  1155 desc.setNameSpaceURI("www.vamsas.ac.uk/jalview/version2");
1147  1155 desc.setMultivalued(false);
1148  1155 addFieldDescriptor(desc);
1149   
1150    // -- validation code for: _thresholdLine
1151  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
1152    { // -- local scope
1153    }
1154  1155 desc.setValidator(fieldValidator);
1155    // -- _propertyList
1156  1155 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
1157    jalview.schemabinding.version2.Property.class, "_propertyList",
1158    "property", org.exolab.castor.xml.NodeType.Element);
1159  1155 handler = new org.exolab.castor.xml.XMLFieldHandler()
1160    {
 
1161  610 toggle public java.lang.Object getValue(java.lang.Object object)
1162    throws IllegalStateException
1163    {
1164  610 Annotation target = (Annotation) object;
1165  610 return target.getProperty();
1166    }
1167   
 
1168  0 toggle public void setValue(java.lang.Object object, java.lang.Object value)
1169    throws IllegalStateException, IllegalArgumentException
1170    {
1171  0 try
1172    {
1173  0 Annotation target = (Annotation) object;
1174  0 target.addProperty((jalview.schemabinding.version2.Property) value);
1175    } catch (java.lang.Exception ex)
1176    {
1177  0 throw new IllegalStateException(ex.toString());
1178    }
1179    }
1180   
 
1181  0 toggle public void resetValue(Object object) throws IllegalStateException,
1182    IllegalArgumentException
1183    {
1184  0 try
1185    {
1186  0 Annotation target = (Annotation) object;
1187  0 target.removeAllProperty();
1188    } catch (java.lang.Exception ex)
1189    {
1190  0 throw new IllegalStateException(ex.toString());
1191    }
1192    }
1193   
 
1194  0 toggle public java.lang.Object newInstance(java.lang.Object parent)
1195    {
1196  0 return new jalview.schemabinding.version2.Property();
1197    }
1198    };
1199  1155 desc.setHandler(handler);
1200  1155 desc.setNameSpaceURI("www.vamsas.ac.uk/jalview/version2");
1201  1155 desc.setMultivalued(true);
1202  1155 addFieldDescriptor(desc);
1203   
1204    // -- validation code for: _propertyList
1205  1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
1206  1155 fieldValidator.setMinOccurs(0);
1207    { // -- local scope
1208    }
1209  1155 desc.setValidator(fieldValidator);
1210    }
1211   
1212    // -----------/
1213    // - Methods -/
1214    // -----------/
1215   
1216    /**
1217    * Method getAccessMode.
1218    *
1219    * @return the access mode specified for this class.
1220    */
 
1221  0 toggle public org.exolab.castor.mapping.AccessMode getAccessMode()
1222    {
1223  0 return null;
1224    }
1225   
1226    /**
1227    * Method getIdentity.
1228    *
1229    * @return the identity field, null if this class has no identity.
1230    */
 
1231  7688 toggle public org.exolab.castor.mapping.FieldDescriptor getIdentity()
1232    {
1233  7688 return super.getIdentity();
1234    }
1235   
1236    /**
1237    * Method getJavaClass.
1238    *
1239    * @return the Java class represented by this descriptor.
1240    */
 
1241  850 toggle public java.lang.Class getJavaClass()
1242    {
1243  850 return jalview.schemabinding.version2.Annotation.class;
1244    }
1245   
1246    /**
1247    * Method getNameSpacePrefix.
1248    *
1249    * @return the namespace prefix to use when marshaling as XML.
1250    */
 
1251  305 toggle public java.lang.String getNameSpacePrefix()
1252    {
1253  305 return _nsPrefix;
1254    }
1255   
1256    /**
1257    * Method getNameSpaceURI.
1258    *
1259    * @return the namespace URI used when marshaling and unmarshaling as XML.
1260    */
 
1261  0 toggle public java.lang.String getNameSpaceURI()
1262    {
1263  0 return _nsURI;
1264    }
1265   
1266    /**
1267    * Method getValidator.
1268    *
1269    * @return a specific validator for the class described by this
1270    * ClassDescriptor.
1271    */
 
1272  305 toggle public org.exolab.castor.xml.TypeValidator getValidator()
1273    {
1274  305 return this;
1275    }
1276   
1277    /**
1278    * Method getXMLName.
1279    *
1280    * @return the XML Name for the Class being described.
1281    */
 
1282  2310 toggle public java.lang.String getXMLName()
1283    {
1284  2310 return _xmlName;
1285    }
1286   
1287    /**
1288    * Method isElementDefinition.
1289    *
1290    * @return true if XML schema definition of this Class is that of a global
1291    * element or element with anonymous type definition.
1292    */
 
1293  0 toggle public boolean isElementDefinition()
1294    {
1295  0 return _elementDefinition;
1296    }
1297   
1298    }