2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.schemabinding.version2.descriptors;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import jalview.schemabinding.version2.JGroup;
17 * Class JGroupDescriptor.
19 * @version $Revision$ $Date$
21 public class JGroupDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {
24 //--------------------------/
25 //- Class/Member Variables -/
26 //--------------------------/
29 * Field _elementDefinition.
31 private boolean _elementDefinition;
36 private java.lang.String _nsPrefix;
41 private java.lang.String _nsURI;
46 private java.lang.String _xmlName;
53 public JGroupDescriptor() {
55 _nsURI = "www.jalview.org";
57 _elementDefinition = true;
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
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
72 JGroup target = (JGroup) object;
73 if (!target.hasStart()) { return null; }
74 return new java.lang.Integer(target.getStart());
76 public void setValue( java.lang.Object object, java.lang.Object value)
77 throws IllegalStateException, IllegalArgumentException
80 JGroup target = (JGroup) object;
81 // if null, use delete method for optional primitives
86 target.setStart( ((java.lang.Integer) value).intValue());
87 } catch (java.lang.Exception ex) {
88 throw new IllegalStateException(ex.toString());
91 public java.lang.Object newInstance(java.lang.Object parent) {
95 desc.setHandler(handler);
96 desc.setMultivalued(false);
97 addFieldDescriptor(desc);
99 //-- validation code for: _start
100 fieldValidator = new org.exolab.castor.xml.FieldValidator();
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);
108 desc.setValidator(fieldValidator);
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
115 JGroup target = (JGroup) object;
116 if (!target.hasEnd()) { return null; }
117 return new java.lang.Integer(target.getEnd());
119 public void setValue( java.lang.Object object, java.lang.Object value)
120 throws IllegalStateException, IllegalArgumentException
123 JGroup target = (JGroup) object;
124 // if null, use delete method for optional primitives
129 target.setEnd( ((java.lang.Integer) value).intValue());
130 } catch (java.lang.Exception ex) {
131 throw new IllegalStateException(ex.toString());
134 public java.lang.Object newInstance(java.lang.Object parent) {
138 desc.setHandler(handler);
139 desc.setMultivalued(false);
140 addFieldDescriptor(desc);
142 //-- validation code for: _end
143 fieldValidator = new org.exolab.castor.xml.FieldValidator();
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);
151 desc.setValidator(fieldValidator);
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
159 JGroup target = (JGroup) object;
160 return target.getName();
162 public void setValue( java.lang.Object object, java.lang.Object value)
163 throws IllegalStateException, IllegalArgumentException
166 JGroup target = (JGroup) object;
167 target.setName( (java.lang.String) value);
168 } catch (java.lang.Exception ex) {
169 throw new IllegalStateException(ex.toString());
172 public java.lang.Object newInstance(java.lang.Object parent) {
176 desc.setHandler(handler);
177 desc.setMultivalued(false);
178 addFieldDescriptor(desc);
180 //-- validation code for: _name
181 fieldValidator = new org.exolab.castor.xml.FieldValidator();
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");
188 desc.setValidator(fieldValidator);
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
196 JGroup target = (JGroup) object;
197 return target.getColour();
199 public void setValue( java.lang.Object object, java.lang.Object value)
200 throws IllegalStateException, IllegalArgumentException
203 JGroup target = (JGroup) object;
204 target.setColour( (java.lang.String) value);
205 } catch (java.lang.Exception ex) {
206 throw new IllegalStateException(ex.toString());
209 public java.lang.Object newInstance(java.lang.Object parent) {
213 desc.setHandler(handler);
214 desc.setMultivalued(false);
215 addFieldDescriptor(desc);
217 //-- validation code for: _colour
218 fieldValidator = new org.exolab.castor.xml.FieldValidator();
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");
225 desc.setValidator(fieldValidator);
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
232 JGroup target = (JGroup) object;
233 if (!target.hasConsThreshold()) { return null; }
234 return new java.lang.Integer(target.getConsThreshold());
236 public void setValue( java.lang.Object object, java.lang.Object value)
237 throws IllegalStateException, IllegalArgumentException
240 JGroup target = (JGroup) object;
241 // if null, use delete method for optional primitives
243 target.deleteConsThreshold();
246 target.setConsThreshold( ((java.lang.Integer) value).intValue());
247 } catch (java.lang.Exception ex) {
248 throw new IllegalStateException(ex.toString());
251 public java.lang.Object newInstance(java.lang.Object parent) {
255 desc.setHandler(handler);
256 desc.setMultivalued(false);
257 addFieldDescriptor(desc);
259 //-- validation code for: _consThreshold
260 fieldValidator = new org.exolab.castor.xml.FieldValidator();
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);
268 desc.setValidator(fieldValidator);
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
275 JGroup target = (JGroup) object;
276 if (!target.hasPidThreshold()) { return null; }
277 return new java.lang.Integer(target.getPidThreshold());
279 public void setValue( java.lang.Object object, java.lang.Object value)
280 throws IllegalStateException, IllegalArgumentException
283 JGroup target = (JGroup) object;
284 // if null, use delete method for optional primitives
286 target.deletePidThreshold();
289 target.setPidThreshold( ((java.lang.Integer) value).intValue());
290 } catch (java.lang.Exception ex) {
291 throw new IllegalStateException(ex.toString());
294 public java.lang.Object newInstance(java.lang.Object parent) {
298 desc.setHandler(handler);
299 desc.setMultivalued(false);
300 addFieldDescriptor(desc);
302 //-- validation code for: _pidThreshold
303 fieldValidator = new org.exolab.castor.xml.FieldValidator();
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);
311 desc.setValidator(fieldValidator);
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
318 JGroup target = (JGroup) object;
319 if (!target.hasOutlineColour()) { return null; }
320 return new java.lang.Integer(target.getOutlineColour());
322 public void setValue( java.lang.Object object, java.lang.Object value)
323 throws IllegalStateException, IllegalArgumentException
326 JGroup target = (JGroup) object;
327 // if null, use delete method for optional primitives
329 target.deleteOutlineColour();
332 target.setOutlineColour( ((java.lang.Integer) value).intValue());
333 } catch (java.lang.Exception ex) {
334 throw new IllegalStateException(ex.toString());
337 public java.lang.Object newInstance(java.lang.Object parent) {
341 desc.setHandler(handler);
342 desc.setMultivalued(false);
343 addFieldDescriptor(desc);
345 //-- validation code for: _outlineColour
346 fieldValidator = new org.exolab.castor.xml.FieldValidator();
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);
354 desc.setValidator(fieldValidator);
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
361 JGroup target = (JGroup) object;
362 if (!target.hasDisplayBoxes()) { return null; }
363 return (target.getDisplayBoxes() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
365 public void setValue( java.lang.Object object, java.lang.Object value)
366 throws IllegalStateException, IllegalArgumentException
369 JGroup target = (JGroup) object;
370 // if null, use delete method for optional primitives
372 target.deleteDisplayBoxes();
375 target.setDisplayBoxes( ((java.lang.Boolean) value).booleanValue());
376 } catch (java.lang.Exception ex) {
377 throw new IllegalStateException(ex.toString());
380 public java.lang.Object newInstance(java.lang.Object parent) {
384 desc.setHandler(handler);
385 desc.setMultivalued(false);
386 addFieldDescriptor(desc);
388 //-- validation code for: _displayBoxes
389 fieldValidator = new org.exolab.castor.xml.FieldValidator();
391 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
392 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
393 fieldValidator.setValidator(typeValidator);
395 desc.setValidator(fieldValidator);
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
402 JGroup target = (JGroup) object;
403 if (!target.hasDisplayText()) { return null; }
404 return (target.getDisplayText() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
406 public void setValue( java.lang.Object object, java.lang.Object value)
407 throws IllegalStateException, IllegalArgumentException
410 JGroup target = (JGroup) object;
411 // if null, use delete method for optional primitives
413 target.deleteDisplayText();
416 target.setDisplayText( ((java.lang.Boolean) value).booleanValue());
417 } catch (java.lang.Exception ex) {
418 throw new IllegalStateException(ex.toString());
421 public java.lang.Object newInstance(java.lang.Object parent) {
425 desc.setHandler(handler);
426 desc.setMultivalued(false);
427 addFieldDescriptor(desc);
429 //-- validation code for: _displayText
430 fieldValidator = new org.exolab.castor.xml.FieldValidator();
432 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
433 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
434 fieldValidator.setValidator(typeValidator);
436 desc.setValidator(fieldValidator);
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
443 JGroup target = (JGroup) object;
444 if (!target.hasColourText()) { return null; }
445 return (target.getColourText() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
447 public void setValue( java.lang.Object object, java.lang.Object value)
448 throws IllegalStateException, IllegalArgumentException
451 JGroup target = (JGroup) object;
452 // if null, use delete method for optional primitives
454 target.deleteColourText();
457 target.setColourText( ((java.lang.Boolean) value).booleanValue());
458 } catch (java.lang.Exception ex) {
459 throw new IllegalStateException(ex.toString());
462 public java.lang.Object newInstance(java.lang.Object parent) {
466 desc.setHandler(handler);
467 desc.setMultivalued(false);
468 addFieldDescriptor(desc);
470 //-- validation code for: _colourText
471 fieldValidator = new org.exolab.castor.xml.FieldValidator();
473 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
474 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
475 fieldValidator.setValidator(typeValidator);
477 desc.setValidator(fieldValidator);
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
484 JGroup target = (JGroup) object;
485 if (!target.hasTextCol1()) { return null; }
486 return new java.lang.Integer(target.getTextCol1());
488 public void setValue( java.lang.Object object, java.lang.Object value)
489 throws IllegalStateException, IllegalArgumentException
492 JGroup target = (JGroup) object;
493 // if null, use delete method for optional primitives
495 target.deleteTextCol1();
498 target.setTextCol1( ((java.lang.Integer) value).intValue());
499 } catch (java.lang.Exception ex) {
500 throw new IllegalStateException(ex.toString());
503 public java.lang.Object newInstance(java.lang.Object parent) {
507 desc.setHandler(handler);
508 desc.setMultivalued(false);
509 addFieldDescriptor(desc);
511 //-- validation code for: _textCol1
512 fieldValidator = new org.exolab.castor.xml.FieldValidator();
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);
520 desc.setValidator(fieldValidator);
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
527 JGroup target = (JGroup) object;
528 if (!target.hasTextCol2()) { return null; }
529 return new java.lang.Integer(target.getTextCol2());
531 public void setValue( java.lang.Object object, java.lang.Object value)
532 throws IllegalStateException, IllegalArgumentException
535 JGroup target = (JGroup) object;
536 // if null, use delete method for optional primitives
538 target.deleteTextCol2();
541 target.setTextCol2( ((java.lang.Integer) value).intValue());
542 } catch (java.lang.Exception ex) {
543 throw new IllegalStateException(ex.toString());
546 public java.lang.Object newInstance(java.lang.Object parent) {
550 desc.setHandler(handler);
551 desc.setMultivalued(false);
552 addFieldDescriptor(desc);
554 //-- validation code for: _textCol2
555 fieldValidator = new org.exolab.castor.xml.FieldValidator();
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);
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
570 JGroup target = (JGroup) object;
571 if (!target.hasTextColThreshold()) { return null; }
572 return new java.lang.Integer(target.getTextColThreshold());
574 public void setValue( java.lang.Object object, java.lang.Object value)
575 throws IllegalStateException, IllegalArgumentException
578 JGroup target = (JGroup) object;
579 // if null, use delete method for optional primitives
581 target.deleteTextColThreshold();
584 target.setTextColThreshold( ((java.lang.Integer) value).intValue());
585 } catch (java.lang.Exception ex) {
586 throw new IllegalStateException(ex.toString());
589 public java.lang.Object newInstance(java.lang.Object parent) {
593 desc.setHandler(handler);
594 desc.setMultivalued(false);
595 addFieldDescriptor(desc);
597 //-- validation code for: _textColThreshold
598 fieldValidator = new org.exolab.castor.xml.FieldValidator();
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);
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
613 JGroup target = (JGroup) object;
614 if (!target.hasShowUnconserved()) { return null; }
615 return (target.getShowUnconserved() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
617 public void setValue( java.lang.Object object, java.lang.Object value)
618 throws IllegalStateException, IllegalArgumentException
621 JGroup target = (JGroup) object;
622 // if null, use delete method for optional primitives
624 target.deleteShowUnconserved();
627 target.setShowUnconserved( ((java.lang.Boolean) value).booleanValue());
628 } catch (java.lang.Exception ex) {
629 throw new IllegalStateException(ex.toString());
632 public java.lang.Object newInstance(java.lang.Object parent) {
636 desc.setHandler(handler);
637 desc.setMultivalued(false);
638 addFieldDescriptor(desc);
640 //-- validation code for: _showUnconserved
641 fieldValidator = new org.exolab.castor.xml.FieldValidator();
643 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
644 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
645 fieldValidator.setValidator(typeValidator);
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
654 JGroup target = (JGroup) object;
655 if (!target.hasIgnoreGapsinConsensus()) { return null; }
656 return (target.getIgnoreGapsinConsensus() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
658 public void setValue( java.lang.Object object, java.lang.Object value)
659 throws IllegalStateException, IllegalArgumentException
662 JGroup target = (JGroup) object;
663 // if null, use delete method for optional primitives
665 target.deleteIgnoreGapsinConsensus();
668 target.setIgnoreGapsinConsensus( ((java.lang.Boolean) value).booleanValue());
669 } catch (java.lang.Exception ex) {
670 throw new IllegalStateException(ex.toString());
673 public java.lang.Object newInstance(java.lang.Object parent) {
677 desc.setHandler(handler);
678 desc.setMultivalued(false);
679 addFieldDescriptor(desc);
681 //-- validation code for: _ignoreGapsinConsensus
682 fieldValidator = new org.exolab.castor.xml.FieldValidator();
684 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
685 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
686 fieldValidator.setValidator(typeValidator);
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
695 JGroup target = (JGroup) object;
696 if (!target.hasShowConsensusHistogram()) { return null; }
697 return (target.getShowConsensusHistogram() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
699 public void setValue( java.lang.Object object, java.lang.Object value)
700 throws IllegalStateException, IllegalArgumentException
703 JGroup target = (JGroup) object;
704 // if null, use delete method for optional primitives
706 target.deleteShowConsensusHistogram();
709 target.setShowConsensusHistogram( ((java.lang.Boolean) value).booleanValue());
710 } catch (java.lang.Exception ex) {
711 throw new IllegalStateException(ex.toString());
714 public java.lang.Object newInstance(java.lang.Object parent) {
718 desc.setHandler(handler);
719 desc.setMultivalued(false);
720 addFieldDescriptor(desc);
722 //-- validation code for: _showConsensusHistogram
723 fieldValidator = new org.exolab.castor.xml.FieldValidator();
725 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
726 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
727 fieldValidator.setValidator(typeValidator);
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
736 JGroup target = (JGroup) object;
737 if (!target.hasShowSequenceLogo()) { return null; }
738 return (target.getShowSequenceLogo() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
740 public void setValue( java.lang.Object object, java.lang.Object value)
741 throws IllegalStateException, IllegalArgumentException
744 JGroup target = (JGroup) object;
745 // if null, use delete method for optional primitives
747 target.deleteShowSequenceLogo();
750 target.setShowSequenceLogo( ((java.lang.Boolean) value).booleanValue());
751 } catch (java.lang.Exception ex) {
752 throw new IllegalStateException(ex.toString());
755 public java.lang.Object newInstance(java.lang.Object parent) {
759 desc.setHandler(handler);
760 desc.setMultivalued(false);
761 addFieldDescriptor(desc);
763 //-- validation code for: _showSequenceLogo
764 fieldValidator = new org.exolab.castor.xml.FieldValidator();
766 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
767 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
768 fieldValidator.setValidator(typeValidator);
770 desc.setValidator(fieldValidator);
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
778 JGroup target = (JGroup) object;
779 return target.getId();
781 public void setValue( java.lang.Object object, java.lang.Object value)
782 throws IllegalStateException, IllegalArgumentException
785 JGroup target = (JGroup) object;
786 target.setId( (java.lang.String) value);
787 } catch (java.lang.Exception ex) {
788 throw new IllegalStateException(ex.toString());
791 public java.lang.Object newInstance(java.lang.Object parent) {
795 desc.setHandler(handler);
796 desc.setMultivalued(false);
797 addFieldDescriptor(desc);
799 //-- validation code for: _id
800 fieldValidator = new org.exolab.castor.xml.FieldValidator();
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");
807 desc.setValidator(fieldValidator);
808 //-- initialize element descriptors
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
817 JGroup target = (JGroup) object;
818 return target.getSeq();
820 public void setValue( java.lang.Object object, java.lang.Object value)
821 throws IllegalStateException, IllegalArgumentException
824 JGroup target = (JGroup) object;
825 target.addSeq( (java.lang.String) value);
826 } catch (java.lang.Exception ex) {
827 throw new IllegalStateException(ex.toString());
830 public void resetValue(Object object) throws IllegalStateException, IllegalArgumentException {
832 JGroup target = (JGroup) object;
833 target.removeAllSeq();
834 } catch (java.lang.Exception ex) {
835 throw new IllegalStateException(ex.toString());
838 public java.lang.Object newInstance(java.lang.Object parent) {
842 desc.setHandler(handler);
843 desc.setNameSpaceURI("www.jalview.org");
844 desc.setRequired(true);
845 desc.setMultivalued(true);
846 addFieldDescriptor(desc);
848 //-- validation code for: _seqList
849 fieldValidator = new org.exolab.castor.xml.FieldValidator();
850 fieldValidator.setMinOccurs(1);
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");
857 desc.setValidator(fieldValidator);
866 * Method getAccessMode.
868 * @return the access mode specified for this class.
870 public org.exolab.castor.mapping.AccessMode getAccessMode(
876 * Method getIdentity.
878 * @return the identity field, null if this class has no
881 public org.exolab.castor.mapping.FieldDescriptor getIdentity(
883 return super.getIdentity();
887 * Method getJavaClass.
889 * @return the Java class represented by this descriptor.
891 public java.lang.Class getJavaClass(
893 return jalview.schemabinding.version2.JGroup.class;
897 * Method getNameSpacePrefix.
899 * @return the namespace prefix to use when marshaling as XML.
901 public java.lang.String getNameSpacePrefix(
907 * Method getNameSpaceURI.
909 * @return the namespace URI used when marshaling and
910 * unmarshaling as XML.
912 public java.lang.String getNameSpaceURI(
918 * Method getValidator.
920 * @return a specific validator for the class described by this
923 public org.exolab.castor.xml.TypeValidator getValidator(
931 * @return the XML Name for the Class being described.
933 public java.lang.String getXMLName(
939 * Method isElementDefinition.
941 * @return true if XML schema definition of this Class is that
943 * element or element with anonymous type definition.
945 public boolean isElementDefinition(
947 return _elementDefinition;