bfc0b8f40f28ba0a8352bea7d3aaec13467932f0
[jalview.git] / src / jalview / schemabinding / version2 / descriptors / JGroupDescriptor.java
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 org.exolab.castor.xml.util.XMLClassDescriptorImpl {
22
23
24       //--------------------------/
25      //- Class/Member Variables -/
26     //--------------------------/
27
28     /**
29      * Field _elementDefinition.
30      */
31     private boolean _elementDefinition;
32
33     /**
34      * Field _nsPrefix.
35      */
36     private java.lang.String _nsPrefix;
37
38     /**
39      * Field _nsURI.
40      */
41     private java.lang.String _nsURI;
42
43     /**
44      * Field _xmlName.
45      */
46     private java.lang.String _xmlName;
47
48
49       //----------------/
50      //- Constructors -/
51     //----------------/
52
53     public JGroupDescriptor() {
54         super();
55         _nsURI = "www.jalview.org";
56         _xmlName = "JGroup";
57         _elementDefinition = true;
58         
59         //-- set grouping compositor
60         setCompositorAsSequence();
61         org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;
62         org.exolab.castor.mapping.FieldHandler             handler        = null;
63         org.exolab.castor.xml.FieldValidator               fieldValidator = null;
64         //-- initialize attribute descriptors
65         
66         //-- _start
67         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_start", "start", org.exolab.castor.xml.NodeType.Attribute);
68         handler = new org.exolab.castor.xml.XMLFieldHandler() {
69             public java.lang.Object getValue( java.lang.Object object ) 
70                 throws IllegalStateException
71             {
72                 JGroup target = (JGroup) object;
73                 if (!target.hasStart()) { return null; }
74                 return new java.lang.Integer(target.getStart());
75             }
76             public void setValue( java.lang.Object object, java.lang.Object value) 
77                 throws IllegalStateException, IllegalArgumentException
78             {
79                 try {
80                     JGroup target = (JGroup) object;
81                     // if null, use delete method for optional primitives 
82                     if (value == null) {
83                         target.deleteStart();
84                         return;
85                     }
86                     target.setStart( ((java.lang.Integer) value).intValue());
87                 } catch (java.lang.Exception ex) {
88                     throw new IllegalStateException(ex.toString());
89                 }
90             }
91             public java.lang.Object newInstance(java.lang.Object parent) {
92                 return null;
93             }
94         };
95         desc.setHandler(handler);
96         desc.setMultivalued(false);
97         addFieldDescriptor(desc);
98         
99         //-- validation code for: _start
100         fieldValidator = new org.exolab.castor.xml.FieldValidator();
101         { //-- local scope
102             org.exolab.castor.xml.validators.IntValidator typeValidator;
103             typeValidator = new org.exolab.castor.xml.validators.IntValidator();
104             fieldValidator.setValidator(typeValidator);
105             typeValidator.setMinInclusive(-2147483648);
106             typeValidator.setMaxInclusive(2147483647);
107         }
108         desc.setValidator(fieldValidator);
109         //-- _end
110         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_end", "end", org.exolab.castor.xml.NodeType.Attribute);
111         handler = new org.exolab.castor.xml.XMLFieldHandler() {
112             public java.lang.Object getValue( java.lang.Object object ) 
113                 throws IllegalStateException
114             {
115                 JGroup target = (JGroup) object;
116                 if (!target.hasEnd()) { return null; }
117                 return new java.lang.Integer(target.getEnd());
118             }
119             public void setValue( java.lang.Object object, java.lang.Object value) 
120                 throws IllegalStateException, IllegalArgumentException
121             {
122                 try {
123                     JGroup target = (JGroup) object;
124                     // if null, use delete method for optional primitives 
125                     if (value == null) {
126                         target.deleteEnd();
127                         return;
128                     }
129                     target.setEnd( ((java.lang.Integer) value).intValue());
130                 } catch (java.lang.Exception ex) {
131                     throw new IllegalStateException(ex.toString());
132                 }
133             }
134             public java.lang.Object newInstance(java.lang.Object parent) {
135                 return null;
136             }
137         };
138         desc.setHandler(handler);
139         desc.setMultivalued(false);
140         addFieldDescriptor(desc);
141         
142         //-- validation code for: _end
143         fieldValidator = new org.exolab.castor.xml.FieldValidator();
144         { //-- local scope
145             org.exolab.castor.xml.validators.IntValidator typeValidator;
146             typeValidator = new org.exolab.castor.xml.validators.IntValidator();
147             fieldValidator.setValidator(typeValidator);
148             typeValidator.setMinInclusive(-2147483648);
149             typeValidator.setMaxInclusive(2147483647);
150         }
151         desc.setValidator(fieldValidator);
152         //-- _name
153         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute);
154         desc.setImmutable(true);
155         handler = new org.exolab.castor.xml.XMLFieldHandler() {
156             public java.lang.Object getValue( java.lang.Object object ) 
157                 throws IllegalStateException
158             {
159                 JGroup target = (JGroup) object;
160                 return target.getName();
161             }
162             public void setValue( java.lang.Object object, java.lang.Object value) 
163                 throws IllegalStateException, IllegalArgumentException
164             {
165                 try {
166                     JGroup target = (JGroup) object;
167                     target.setName( (java.lang.String) value);
168                 } catch (java.lang.Exception ex) {
169                     throw new IllegalStateException(ex.toString());
170                 }
171             }
172             public java.lang.Object newInstance(java.lang.Object parent) {
173                 return null;
174             }
175         };
176         desc.setHandler(handler);
177         desc.setMultivalued(false);
178         addFieldDescriptor(desc);
179         
180         //-- validation code for: _name
181         fieldValidator = new org.exolab.castor.xml.FieldValidator();
182         { //-- local scope
183             org.exolab.castor.xml.validators.StringValidator typeValidator;
184             typeValidator = new org.exolab.castor.xml.validators.StringValidator();
185             fieldValidator.setValidator(typeValidator);
186             typeValidator.setWhiteSpace("preserve");
187         }
188         desc.setValidator(fieldValidator);
189         //-- _colour
190         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_colour", "colour", org.exolab.castor.xml.NodeType.Attribute);
191         desc.setImmutable(true);
192         handler = new org.exolab.castor.xml.XMLFieldHandler() {
193             public java.lang.Object getValue( java.lang.Object object ) 
194                 throws IllegalStateException
195             {
196                 JGroup target = (JGroup) object;
197                 return target.getColour();
198             }
199             public void setValue( java.lang.Object object, java.lang.Object value) 
200                 throws IllegalStateException, IllegalArgumentException
201             {
202                 try {
203                     JGroup target = (JGroup) object;
204                     target.setColour( (java.lang.String) value);
205                 } catch (java.lang.Exception ex) {
206                     throw new IllegalStateException(ex.toString());
207                 }
208             }
209             public java.lang.Object newInstance(java.lang.Object parent) {
210                 return null;
211             }
212         };
213         desc.setHandler(handler);
214         desc.setMultivalued(false);
215         addFieldDescriptor(desc);
216         
217         //-- validation code for: _colour
218         fieldValidator = new org.exolab.castor.xml.FieldValidator();
219         { //-- local scope
220             org.exolab.castor.xml.validators.StringValidator typeValidator;
221             typeValidator = new org.exolab.castor.xml.validators.StringValidator();
222             fieldValidator.setValidator(typeValidator);
223             typeValidator.setWhiteSpace("preserve");
224         }
225         desc.setValidator(fieldValidator);
226         //-- _consThreshold
227         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_consThreshold", "consThreshold", org.exolab.castor.xml.NodeType.Attribute);
228         handler = new org.exolab.castor.xml.XMLFieldHandler() {
229             public java.lang.Object getValue( java.lang.Object object ) 
230                 throws IllegalStateException
231             {
232                 JGroup target = (JGroup) object;
233                 if (!target.hasConsThreshold()) { return null; }
234                 return new java.lang.Integer(target.getConsThreshold());
235             }
236             public void setValue( java.lang.Object object, java.lang.Object value) 
237                 throws IllegalStateException, IllegalArgumentException
238             {
239                 try {
240                     JGroup target = (JGroup) object;
241                     // if null, use delete method for optional primitives 
242                     if (value == null) {
243                         target.deleteConsThreshold();
244                         return;
245                     }
246                     target.setConsThreshold( ((java.lang.Integer) value).intValue());
247                 } catch (java.lang.Exception ex) {
248                     throw new IllegalStateException(ex.toString());
249                 }
250             }
251             public java.lang.Object newInstance(java.lang.Object parent) {
252                 return null;
253             }
254         };
255         desc.setHandler(handler);
256         desc.setMultivalued(false);
257         addFieldDescriptor(desc);
258         
259         //-- validation code for: _consThreshold
260         fieldValidator = new org.exolab.castor.xml.FieldValidator();
261         { //-- local scope
262             org.exolab.castor.xml.validators.IntValidator typeValidator;
263             typeValidator = new org.exolab.castor.xml.validators.IntValidator();
264             fieldValidator.setValidator(typeValidator);
265             typeValidator.setMinInclusive(-2147483648);
266             typeValidator.setMaxInclusive(2147483647);
267         }
268         desc.setValidator(fieldValidator);
269         //-- _pidThreshold
270         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_pidThreshold", "pidThreshold", org.exolab.castor.xml.NodeType.Attribute);
271         handler = new org.exolab.castor.xml.XMLFieldHandler() {
272             public java.lang.Object getValue( java.lang.Object object ) 
273                 throws IllegalStateException
274             {
275                 JGroup target = (JGroup) object;
276                 if (!target.hasPidThreshold()) { return null; }
277                 return new java.lang.Integer(target.getPidThreshold());
278             }
279             public void setValue( java.lang.Object object, java.lang.Object value) 
280                 throws IllegalStateException, IllegalArgumentException
281             {
282                 try {
283                     JGroup target = (JGroup) object;
284                     // if null, use delete method for optional primitives 
285                     if (value == null) {
286                         target.deletePidThreshold();
287                         return;
288                     }
289                     target.setPidThreshold( ((java.lang.Integer) value).intValue());
290                 } catch (java.lang.Exception ex) {
291                     throw new IllegalStateException(ex.toString());
292                 }
293             }
294             public java.lang.Object newInstance(java.lang.Object parent) {
295                 return null;
296             }
297         };
298         desc.setHandler(handler);
299         desc.setMultivalued(false);
300         addFieldDescriptor(desc);
301         
302         //-- validation code for: _pidThreshold
303         fieldValidator = new org.exolab.castor.xml.FieldValidator();
304         { //-- local scope
305             org.exolab.castor.xml.validators.IntValidator typeValidator;
306             typeValidator = new org.exolab.castor.xml.validators.IntValidator();
307             fieldValidator.setValidator(typeValidator);
308             typeValidator.setMinInclusive(-2147483648);
309             typeValidator.setMaxInclusive(2147483647);
310         }
311         desc.setValidator(fieldValidator);
312         //-- _outlineColour
313         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_outlineColour", "outlineColour", org.exolab.castor.xml.NodeType.Attribute);
314         handler = new org.exolab.castor.xml.XMLFieldHandler() {
315             public java.lang.Object getValue( java.lang.Object object ) 
316                 throws IllegalStateException
317             {
318                 JGroup target = (JGroup) object;
319                 if (!target.hasOutlineColour()) { return null; }
320                 return new java.lang.Integer(target.getOutlineColour());
321             }
322             public void setValue( java.lang.Object object, java.lang.Object value) 
323                 throws IllegalStateException, IllegalArgumentException
324             {
325                 try {
326                     JGroup target = (JGroup) object;
327                     // if null, use delete method for optional primitives 
328                     if (value == null) {
329                         target.deleteOutlineColour();
330                         return;
331                     }
332                     target.setOutlineColour( ((java.lang.Integer) value).intValue());
333                 } catch (java.lang.Exception ex) {
334                     throw new IllegalStateException(ex.toString());
335                 }
336             }
337             public java.lang.Object newInstance(java.lang.Object parent) {
338                 return null;
339             }
340         };
341         desc.setHandler(handler);
342         desc.setMultivalued(false);
343         addFieldDescriptor(desc);
344         
345         //-- validation code for: _outlineColour
346         fieldValidator = new org.exolab.castor.xml.FieldValidator();
347         { //-- local scope
348             org.exolab.castor.xml.validators.IntValidator typeValidator;
349             typeValidator = new org.exolab.castor.xml.validators.IntValidator();
350             fieldValidator.setValidator(typeValidator);
351             typeValidator.setMinInclusive(-2147483648);
352             typeValidator.setMaxInclusive(2147483647);
353         }
354         desc.setValidator(fieldValidator);
355         //-- _displayBoxes
356         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_displayBoxes", "displayBoxes", org.exolab.castor.xml.NodeType.Attribute);
357         handler = new org.exolab.castor.xml.XMLFieldHandler() {
358             public java.lang.Object getValue( java.lang.Object object ) 
359                 throws IllegalStateException
360             {
361                 JGroup target = (JGroup) object;
362                 if (!target.hasDisplayBoxes()) { return null; }
363                 return (target.getDisplayBoxes() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
364             }
365             public void setValue( java.lang.Object object, java.lang.Object value) 
366                 throws IllegalStateException, IllegalArgumentException
367             {
368                 try {
369                     JGroup target = (JGroup) object;
370                     // if null, use delete method for optional primitives 
371                     if (value == null) {
372                         target.deleteDisplayBoxes();
373                         return;
374                     }
375                     target.setDisplayBoxes( ((java.lang.Boolean) value).booleanValue());
376                 } catch (java.lang.Exception ex) {
377                     throw new IllegalStateException(ex.toString());
378                 }
379             }
380             public java.lang.Object newInstance(java.lang.Object parent) {
381                 return null;
382             }
383         };
384         desc.setHandler(handler);
385         desc.setMultivalued(false);
386         addFieldDescriptor(desc);
387         
388         //-- validation code for: _displayBoxes
389         fieldValidator = new org.exolab.castor.xml.FieldValidator();
390         { //-- local scope
391             org.exolab.castor.xml.validators.BooleanValidator typeValidator;
392             typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
393             fieldValidator.setValidator(typeValidator);
394         }
395         desc.setValidator(fieldValidator);
396         //-- _displayText
397         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_displayText", "displayText", org.exolab.castor.xml.NodeType.Attribute);
398         handler = new org.exolab.castor.xml.XMLFieldHandler() {
399             public java.lang.Object getValue( java.lang.Object object ) 
400                 throws IllegalStateException
401             {
402                 JGroup target = (JGroup) object;
403                 if (!target.hasDisplayText()) { return null; }
404                 return (target.getDisplayText() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
405             }
406             public void setValue( java.lang.Object object, java.lang.Object value) 
407                 throws IllegalStateException, IllegalArgumentException
408             {
409                 try {
410                     JGroup target = (JGroup) object;
411                     // if null, use delete method for optional primitives 
412                     if (value == null) {
413                         target.deleteDisplayText();
414                         return;
415                     }
416                     target.setDisplayText( ((java.lang.Boolean) value).booleanValue());
417                 } catch (java.lang.Exception ex) {
418                     throw new IllegalStateException(ex.toString());
419                 }
420             }
421             public java.lang.Object newInstance(java.lang.Object parent) {
422                 return null;
423             }
424         };
425         desc.setHandler(handler);
426         desc.setMultivalued(false);
427         addFieldDescriptor(desc);
428         
429         //-- validation code for: _displayText
430         fieldValidator = new org.exolab.castor.xml.FieldValidator();
431         { //-- local scope
432             org.exolab.castor.xml.validators.BooleanValidator typeValidator;
433             typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
434             fieldValidator.setValidator(typeValidator);
435         }
436         desc.setValidator(fieldValidator);
437         //-- _colourText
438         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_colourText", "colourText", org.exolab.castor.xml.NodeType.Attribute);
439         handler = new org.exolab.castor.xml.XMLFieldHandler() {
440             public java.lang.Object getValue( java.lang.Object object ) 
441                 throws IllegalStateException
442             {
443                 JGroup target = (JGroup) object;
444                 if (!target.hasColourText()) { return null; }
445                 return (target.getColourText() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
446             }
447             public void setValue( java.lang.Object object, java.lang.Object value) 
448                 throws IllegalStateException, IllegalArgumentException
449             {
450                 try {
451                     JGroup target = (JGroup) object;
452                     // if null, use delete method for optional primitives 
453                     if (value == null) {
454                         target.deleteColourText();
455                         return;
456                     }
457                     target.setColourText( ((java.lang.Boolean) value).booleanValue());
458                 } catch (java.lang.Exception ex) {
459                     throw new IllegalStateException(ex.toString());
460                 }
461             }
462             public java.lang.Object newInstance(java.lang.Object parent) {
463                 return null;
464             }
465         };
466         desc.setHandler(handler);
467         desc.setMultivalued(false);
468         addFieldDescriptor(desc);
469         
470         //-- validation code for: _colourText
471         fieldValidator = new org.exolab.castor.xml.FieldValidator();
472         { //-- local scope
473             org.exolab.castor.xml.validators.BooleanValidator typeValidator;
474             typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
475             fieldValidator.setValidator(typeValidator);
476         }
477         desc.setValidator(fieldValidator);
478         //-- _textCol1
479         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_textCol1", "textCol1", org.exolab.castor.xml.NodeType.Attribute);
480         handler = new org.exolab.castor.xml.XMLFieldHandler() {
481             public java.lang.Object getValue( java.lang.Object object ) 
482                 throws IllegalStateException
483             {
484                 JGroup target = (JGroup) object;
485                 if (!target.hasTextCol1()) { return null; }
486                 return new java.lang.Integer(target.getTextCol1());
487             }
488             public void setValue( java.lang.Object object, java.lang.Object value) 
489                 throws IllegalStateException, IllegalArgumentException
490             {
491                 try {
492                     JGroup target = (JGroup) object;
493                     // if null, use delete method for optional primitives 
494                     if (value == null) {
495                         target.deleteTextCol1();
496                         return;
497                     }
498                     target.setTextCol1( ((java.lang.Integer) value).intValue());
499                 } catch (java.lang.Exception ex) {
500                     throw new IllegalStateException(ex.toString());
501                 }
502             }
503             public java.lang.Object newInstance(java.lang.Object parent) {
504                 return null;
505             }
506         };
507         desc.setHandler(handler);
508         desc.setMultivalued(false);
509         addFieldDescriptor(desc);
510         
511         //-- validation code for: _textCol1
512         fieldValidator = new org.exolab.castor.xml.FieldValidator();
513         { //-- local scope
514             org.exolab.castor.xml.validators.IntValidator typeValidator;
515             typeValidator = new org.exolab.castor.xml.validators.IntValidator();
516             fieldValidator.setValidator(typeValidator);
517             typeValidator.setMinInclusive(-2147483648);
518             typeValidator.setMaxInclusive(2147483647);
519         }
520         desc.setValidator(fieldValidator);
521         //-- _textCol2
522         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_textCol2", "textCol2", org.exolab.castor.xml.NodeType.Attribute);
523         handler = new org.exolab.castor.xml.XMLFieldHandler() {
524             public java.lang.Object getValue( java.lang.Object object ) 
525                 throws IllegalStateException
526             {
527                 JGroup target = (JGroup) object;
528                 if (!target.hasTextCol2()) { return null; }
529                 return new java.lang.Integer(target.getTextCol2());
530             }
531             public void setValue( java.lang.Object object, java.lang.Object value) 
532                 throws IllegalStateException, IllegalArgumentException
533             {
534                 try {
535                     JGroup target = (JGroup) object;
536                     // if null, use delete method for optional primitives 
537                     if (value == null) {
538                         target.deleteTextCol2();
539                         return;
540                     }
541                     target.setTextCol2( ((java.lang.Integer) value).intValue());
542                 } catch (java.lang.Exception ex) {
543                     throw new IllegalStateException(ex.toString());
544                 }
545             }
546             public java.lang.Object newInstance(java.lang.Object parent) {
547                 return null;
548             }
549         };
550         desc.setHandler(handler);
551         desc.setMultivalued(false);
552         addFieldDescriptor(desc);
553         
554         //-- validation code for: _textCol2
555         fieldValidator = new org.exolab.castor.xml.FieldValidator();
556         { //-- local scope
557             org.exolab.castor.xml.validators.IntValidator typeValidator;
558             typeValidator = new org.exolab.castor.xml.validators.IntValidator();
559             fieldValidator.setValidator(typeValidator);
560             typeValidator.setMinInclusive(-2147483648);
561             typeValidator.setMaxInclusive(2147483647);
562         }
563         desc.setValidator(fieldValidator);
564         //-- _textColThreshold
565         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_textColThreshold", "textColThreshold", org.exolab.castor.xml.NodeType.Attribute);
566         handler = new org.exolab.castor.xml.XMLFieldHandler() {
567             public java.lang.Object getValue( java.lang.Object object ) 
568                 throws IllegalStateException
569             {
570                 JGroup target = (JGroup) object;
571                 if (!target.hasTextColThreshold()) { return null; }
572                 return new java.lang.Integer(target.getTextColThreshold());
573             }
574             public void setValue( java.lang.Object object, java.lang.Object value) 
575                 throws IllegalStateException, IllegalArgumentException
576             {
577                 try {
578                     JGroup target = (JGroup) object;
579                     // if null, use delete method for optional primitives 
580                     if (value == null) {
581                         target.deleteTextColThreshold();
582                         return;
583                     }
584                     target.setTextColThreshold( ((java.lang.Integer) value).intValue());
585                 } catch (java.lang.Exception ex) {
586                     throw new IllegalStateException(ex.toString());
587                 }
588             }
589             public java.lang.Object newInstance(java.lang.Object parent) {
590                 return null;
591             }
592         };
593         desc.setHandler(handler);
594         desc.setMultivalued(false);
595         addFieldDescriptor(desc);
596         
597         //-- validation code for: _textColThreshold
598         fieldValidator = new org.exolab.castor.xml.FieldValidator();
599         { //-- local scope
600             org.exolab.castor.xml.validators.IntValidator typeValidator;
601             typeValidator = new org.exolab.castor.xml.validators.IntValidator();
602             fieldValidator.setValidator(typeValidator);
603             typeValidator.setMinInclusive(-2147483648);
604             typeValidator.setMaxInclusive(2147483647);
605         }
606         desc.setValidator(fieldValidator);
607         //-- _showUnconserved
608         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_showUnconserved", "showUnconserved", org.exolab.castor.xml.NodeType.Attribute);
609         handler = new org.exolab.castor.xml.XMLFieldHandler() {
610             public java.lang.Object getValue( java.lang.Object object ) 
611                 throws IllegalStateException
612             {
613                 JGroup target = (JGroup) object;
614                 if (!target.hasShowUnconserved()) { return null; }
615                 return (target.getShowUnconserved() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
616             }
617             public void setValue( java.lang.Object object, java.lang.Object value) 
618                 throws IllegalStateException, IllegalArgumentException
619             {
620                 try {
621                     JGroup target = (JGroup) object;
622                     // if null, use delete method for optional primitives 
623                     if (value == null) {
624                         target.deleteShowUnconserved();
625                         return;
626                     }
627                     target.setShowUnconserved( ((java.lang.Boolean) value).booleanValue());
628                 } catch (java.lang.Exception ex) {
629                     throw new IllegalStateException(ex.toString());
630                 }
631             }
632             public java.lang.Object newInstance(java.lang.Object parent) {
633                 return null;
634             }
635         };
636         desc.setHandler(handler);
637         desc.setMultivalued(false);
638         addFieldDescriptor(desc);
639         
640         //-- validation code for: _showUnconserved
641         fieldValidator = new org.exolab.castor.xml.FieldValidator();
642         { //-- local scope
643             org.exolab.castor.xml.validators.BooleanValidator typeValidator;
644             typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
645             fieldValidator.setValidator(typeValidator);
646         }
647         desc.setValidator(fieldValidator);
648         //-- _ignoreGapsinConsensus
649         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_ignoreGapsinConsensus", "ignoreGapsinConsensus", org.exolab.castor.xml.NodeType.Attribute);
650         handler = new org.exolab.castor.xml.XMLFieldHandler() {
651             public java.lang.Object getValue( java.lang.Object object ) 
652                 throws IllegalStateException
653             {
654                 JGroup target = (JGroup) object;
655                 if (!target.hasIgnoreGapsinConsensus()) { return null; }
656                 return (target.getIgnoreGapsinConsensus() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
657             }
658             public void setValue( java.lang.Object object, java.lang.Object value) 
659                 throws IllegalStateException, IllegalArgumentException
660             {
661                 try {
662                     JGroup target = (JGroup) object;
663                     // if null, use delete method for optional primitives 
664                     if (value == null) {
665                         target.deleteIgnoreGapsinConsensus();
666                         return;
667                     }
668                     target.setIgnoreGapsinConsensus( ((java.lang.Boolean) value).booleanValue());
669                 } catch (java.lang.Exception ex) {
670                     throw new IllegalStateException(ex.toString());
671                 }
672             }
673             public java.lang.Object newInstance(java.lang.Object parent) {
674                 return null;
675             }
676         };
677         desc.setHandler(handler);
678         desc.setMultivalued(false);
679         addFieldDescriptor(desc);
680         
681         //-- validation code for: _ignoreGapsinConsensus
682         fieldValidator = new org.exolab.castor.xml.FieldValidator();
683         { //-- local scope
684             org.exolab.castor.xml.validators.BooleanValidator typeValidator;
685             typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
686             fieldValidator.setValidator(typeValidator);
687         }
688         desc.setValidator(fieldValidator);
689         //-- _showConsensusHistogram
690         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_showConsensusHistogram", "showConsensusHistogram", org.exolab.castor.xml.NodeType.Attribute);
691         handler = new org.exolab.castor.xml.XMLFieldHandler() {
692             public java.lang.Object getValue( java.lang.Object object ) 
693                 throws IllegalStateException
694             {
695                 JGroup target = (JGroup) object;
696                 if (!target.hasShowConsensusHistogram()) { return null; }
697                 return (target.getShowConsensusHistogram() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
698             }
699             public void setValue( java.lang.Object object, java.lang.Object value) 
700                 throws IllegalStateException, IllegalArgumentException
701             {
702                 try {
703                     JGroup target = (JGroup) object;
704                     // if null, use delete method for optional primitives 
705                     if (value == null) {
706                         target.deleteShowConsensusHistogram();
707                         return;
708                     }
709                     target.setShowConsensusHistogram( ((java.lang.Boolean) value).booleanValue());
710                 } catch (java.lang.Exception ex) {
711                     throw new IllegalStateException(ex.toString());
712                 }
713             }
714             public java.lang.Object newInstance(java.lang.Object parent) {
715                 return null;
716             }
717         };
718         desc.setHandler(handler);
719         desc.setMultivalued(false);
720         addFieldDescriptor(desc);
721         
722         //-- validation code for: _showConsensusHistogram
723         fieldValidator = new org.exolab.castor.xml.FieldValidator();
724         { //-- local scope
725             org.exolab.castor.xml.validators.BooleanValidator typeValidator;
726             typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
727             fieldValidator.setValidator(typeValidator);
728         }
729         desc.setValidator(fieldValidator);
730         //-- _showSequenceLogo
731         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_showSequenceLogo", "showSequenceLogo", org.exolab.castor.xml.NodeType.Attribute);
732         handler = new org.exolab.castor.xml.XMLFieldHandler() {
733             public java.lang.Object getValue( java.lang.Object object ) 
734                 throws IllegalStateException
735             {
736                 JGroup target = (JGroup) object;
737                 if (!target.hasShowSequenceLogo()) { return null; }
738                 return (target.getShowSequenceLogo() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
739             }
740             public void setValue( java.lang.Object object, java.lang.Object value) 
741                 throws IllegalStateException, IllegalArgumentException
742             {
743                 try {
744                     JGroup target = (JGroup) object;
745                     // if null, use delete method for optional primitives 
746                     if (value == null) {
747                         target.deleteShowSequenceLogo();
748                         return;
749                     }
750                     target.setShowSequenceLogo( ((java.lang.Boolean) value).booleanValue());
751                 } catch (java.lang.Exception ex) {
752                     throw new IllegalStateException(ex.toString());
753                 }
754             }
755             public java.lang.Object newInstance(java.lang.Object parent) {
756                 return null;
757             }
758         };
759         desc.setHandler(handler);
760         desc.setMultivalued(false);
761         addFieldDescriptor(desc);
762         
763         //-- validation code for: _showSequenceLogo
764         fieldValidator = new org.exolab.castor.xml.FieldValidator();
765         { //-- local scope
766             org.exolab.castor.xml.validators.BooleanValidator typeValidator;
767             typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
768             fieldValidator.setValidator(typeValidator);
769         }
770         desc.setValidator(fieldValidator);
771         //-- _id
772         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_id", "id", org.exolab.castor.xml.NodeType.Attribute);
773         desc.setImmutable(true);
774         handler = new org.exolab.castor.xml.XMLFieldHandler() {
775             public java.lang.Object getValue( java.lang.Object object ) 
776                 throws IllegalStateException
777             {
778                 JGroup target = (JGroup) object;
779                 return target.getId();
780             }
781             public void setValue( java.lang.Object object, java.lang.Object value) 
782                 throws IllegalStateException, IllegalArgumentException
783             {
784                 try {
785                     JGroup target = (JGroup) object;
786                     target.setId( (java.lang.String) value);
787                 } catch (java.lang.Exception ex) {
788                     throw new IllegalStateException(ex.toString());
789                 }
790             }
791             public java.lang.Object newInstance(java.lang.Object parent) {
792                 return null;
793             }
794         };
795         desc.setHandler(handler);
796         desc.setMultivalued(false);
797         addFieldDescriptor(desc);
798         
799         //-- validation code for: _id
800         fieldValidator = new org.exolab.castor.xml.FieldValidator();
801         { //-- local scope
802             org.exolab.castor.xml.validators.StringValidator typeValidator;
803             typeValidator = new org.exolab.castor.xml.validators.StringValidator();
804             fieldValidator.setValidator(typeValidator);
805             typeValidator.setWhiteSpace("preserve");
806         }
807         desc.setValidator(fieldValidator);
808         //-- initialize element descriptors
809         
810         //-- _seqList
811         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_seqList", "seq", org.exolab.castor.xml.NodeType.Element);
812         desc.setImmutable(true);
813         handler = new org.exolab.castor.xml.XMLFieldHandler() {
814             public java.lang.Object getValue( java.lang.Object object ) 
815                 throws IllegalStateException
816             {
817                 JGroup target = (JGroup) object;
818                 return target.getSeq();
819             }
820             public void setValue( java.lang.Object object, java.lang.Object value) 
821                 throws IllegalStateException, IllegalArgumentException
822             {
823                 try {
824                     JGroup target = (JGroup) object;
825                     target.addSeq( (java.lang.String) value);
826                 } catch (java.lang.Exception ex) {
827                     throw new IllegalStateException(ex.toString());
828                 }
829             }
830             public void resetValue(Object object) throws IllegalStateException, IllegalArgumentException {
831                 try {
832                     JGroup target = (JGroup) object;
833                     target.removeAllSeq();
834                 } catch (java.lang.Exception ex) {
835                     throw new IllegalStateException(ex.toString());
836                 }
837             }
838             public java.lang.Object newInstance(java.lang.Object parent) {
839                 return null;
840             }
841         };
842         desc.setHandler(handler);
843         desc.setNameSpaceURI("www.jalview.org");
844         desc.setRequired(true);
845         desc.setMultivalued(true);
846         addFieldDescriptor(desc);
847         
848         //-- validation code for: _seqList
849         fieldValidator = new org.exolab.castor.xml.FieldValidator();
850         fieldValidator.setMinOccurs(1);
851         { //-- local scope
852             org.exolab.castor.xml.validators.StringValidator typeValidator;
853             typeValidator = new org.exolab.castor.xml.validators.StringValidator();
854             fieldValidator.setValidator(typeValidator);
855             typeValidator.setWhiteSpace("preserve");
856         }
857         desc.setValidator(fieldValidator);
858     }
859
860
861       //-----------/
862      //- Methods -/
863     //-----------/
864
865     /**
866      * Method getAccessMode.
867      * 
868      * @return the access mode specified for this class.
869      */
870     public org.exolab.castor.mapping.AccessMode getAccessMode(
871     ) {
872         return null;
873     }
874
875     /**
876      * Method getIdentity.
877      * 
878      * @return the identity field, null if this class has no
879      * identity.
880      */
881     public org.exolab.castor.mapping.FieldDescriptor getIdentity(
882     ) {
883         return super.getIdentity();
884     }
885
886     /**
887      * Method getJavaClass.
888      * 
889      * @return the Java class represented by this descriptor.
890      */
891     public java.lang.Class getJavaClass(
892     ) {
893         return jalview.schemabinding.version2.JGroup.class;
894     }
895
896     /**
897      * Method getNameSpacePrefix.
898      * 
899      * @return the namespace prefix to use when marshaling as XML.
900      */
901     public java.lang.String getNameSpacePrefix(
902     ) {
903         return _nsPrefix;
904     }
905
906     /**
907      * Method getNameSpaceURI.
908      * 
909      * @return the namespace URI used when marshaling and
910      * unmarshaling as XML.
911      */
912     public java.lang.String getNameSpaceURI(
913     ) {
914         return _nsURI;
915     }
916
917     /**
918      * Method getValidator.
919      * 
920      * @return a specific validator for the class described by this
921      * ClassDescriptor.
922      */
923     public org.exolab.castor.xml.TypeValidator getValidator(
924     ) {
925         return this;
926     }
927
928     /**
929      * Method getXMLName.
930      * 
931      * @return the XML Name for the Class being described.
932      */
933     public java.lang.String getXMLName(
934     ) {
935         return _xmlName;
936     }
937
938     /**
939      * Method isElementDefinition.
940      * 
941      * @return true if XML schema definition of this Class is that
942      * of a global
943      * element or element with anonymous type definition.
944      */
945     public boolean isElementDefinition(
946     ) {
947         return _elementDefinition;
948     }
949
950 }