Clover icon

jalviewX

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

File JGroupDescriptor.java

 

Coverage histogram

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

Code metrics

80
482
73
1
1,275
1,049
135
0.28
6.6
73
1.85

Classes

Class Line # Actions
JGroupDescriptor 21 482 135 154
0.757480375.7%
 

Contributing tests

This file is covered by 8 tests. .

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