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