1 /*******************************************************************************
2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
3 * Copyright (C) 2014 The Jalview Authors
5 * This file is part of Jalview.
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.
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.
16 * You should have received a copy of the GNU General Public License along with Jalview.
17 * If not, see <http://www.gnu.org/licenses/>.
18 * The Jalview Authors are detailed in the 'AUTHORS' file.
19 ******************************************************************************/
21 * This class was automatically generated with
22 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
27 package jalview.schemabinding.version2.descriptors;
29 //---------------------------------/
30 //- Imported classes and packages -/
31 //---------------------------------/
33 import jalview.schemabinding.version2.JGroup;
36 * Class JGroupDescriptor.
38 * @version $Revision$ $Date$
40 public class JGroupDescriptor extends
41 org.exolab.castor.xml.util.XMLClassDescriptorImpl
44 // --------------------------/
45 // - Class/Member Variables -/
46 // --------------------------/
49 * Field _elementDefinition.
51 private boolean _elementDefinition;
56 private java.lang.String _nsPrefix;
61 private java.lang.String _nsURI;
66 private java.lang.String _xmlName;
72 public JGroupDescriptor()
75 _nsURI = "www.jalview.org";
77 _elementDefinition = true;
79 // -- set grouping compositor
80 setCompositorAsSequence();
81 org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
82 org.exolab.castor.mapping.FieldHandler handler = null;
83 org.exolab.castor.xml.FieldValidator fieldValidator = null;
84 // -- initialize attribute descriptors
87 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
88 java.lang.Integer.TYPE, "_start", "start",
89 org.exolab.castor.xml.NodeType.Attribute);
90 handler = new org.exolab.castor.xml.XMLFieldHandler()
92 public java.lang.Object getValue(java.lang.Object object)
93 throws IllegalStateException
95 JGroup target = (JGroup) object;
96 if (!target.hasStart())
100 return new java.lang.Integer(target.getStart());
103 public void setValue(java.lang.Object object, java.lang.Object value)
104 throws IllegalStateException, IllegalArgumentException
108 JGroup target = (JGroup) object;
109 // if null, use delete method for optional primitives
112 target.deleteStart();
115 target.setStart(((java.lang.Integer) value).intValue());
116 } catch (java.lang.Exception ex)
118 throw new IllegalStateException(ex.toString());
122 public java.lang.Object newInstance(java.lang.Object parent)
127 desc.setHandler(handler);
128 desc.setMultivalued(false);
129 addFieldDescriptor(desc);
131 // -- validation code for: _start
132 fieldValidator = new org.exolab.castor.xml.FieldValidator();
134 org.exolab.castor.xml.validators.IntValidator typeValidator;
135 typeValidator = new org.exolab.castor.xml.validators.IntValidator();
136 fieldValidator.setValidator(typeValidator);
137 typeValidator.setMinInclusive(-2147483648);
138 typeValidator.setMaxInclusive(2147483647);
140 desc.setValidator(fieldValidator);
142 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
143 java.lang.Integer.TYPE, "_end", "end",
144 org.exolab.castor.xml.NodeType.Attribute);
145 handler = new org.exolab.castor.xml.XMLFieldHandler()
147 public java.lang.Object getValue(java.lang.Object object)
148 throws IllegalStateException
150 JGroup target = (JGroup) object;
151 if (!target.hasEnd())
155 return new java.lang.Integer(target.getEnd());
158 public void setValue(java.lang.Object object, java.lang.Object value)
159 throws IllegalStateException, IllegalArgumentException
163 JGroup target = (JGroup) object;
164 // if null, use delete method for optional primitives
170 target.setEnd(((java.lang.Integer) value).intValue());
171 } catch (java.lang.Exception ex)
173 throw new IllegalStateException(ex.toString());
177 public java.lang.Object newInstance(java.lang.Object parent)
182 desc.setHandler(handler);
183 desc.setMultivalued(false);
184 addFieldDescriptor(desc);
186 // -- validation code for: _end
187 fieldValidator = new org.exolab.castor.xml.FieldValidator();
189 org.exolab.castor.xml.validators.IntValidator typeValidator;
190 typeValidator = new org.exolab.castor.xml.validators.IntValidator();
191 fieldValidator.setValidator(typeValidator);
192 typeValidator.setMinInclusive(-2147483648);
193 typeValidator.setMaxInclusive(2147483647);
195 desc.setValidator(fieldValidator);
197 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
198 java.lang.String.class, "_name", "name",
199 org.exolab.castor.xml.NodeType.Attribute);
200 desc.setImmutable(true);
201 handler = new org.exolab.castor.xml.XMLFieldHandler()
203 public java.lang.Object getValue(java.lang.Object object)
204 throws IllegalStateException
206 JGroup target = (JGroup) object;
207 return target.getName();
210 public void setValue(java.lang.Object object, java.lang.Object value)
211 throws IllegalStateException, IllegalArgumentException
215 JGroup target = (JGroup) object;
216 target.setName((java.lang.String) value);
217 } catch (java.lang.Exception ex)
219 throw new IllegalStateException(ex.toString());
223 public java.lang.Object newInstance(java.lang.Object parent)
228 desc.setHandler(handler);
229 desc.setMultivalued(false);
230 addFieldDescriptor(desc);
232 // -- validation code for: _name
233 fieldValidator = new org.exolab.castor.xml.FieldValidator();
235 org.exolab.castor.xml.validators.StringValidator typeValidator;
236 typeValidator = new org.exolab.castor.xml.validators.StringValidator();
237 fieldValidator.setValidator(typeValidator);
238 typeValidator.setWhiteSpace("preserve");
240 desc.setValidator(fieldValidator);
242 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
243 java.lang.String.class, "_colour", "colour",
244 org.exolab.castor.xml.NodeType.Attribute);
245 desc.setImmutable(true);
246 handler = new org.exolab.castor.xml.XMLFieldHandler()
248 public java.lang.Object getValue(java.lang.Object object)
249 throws IllegalStateException
251 JGroup target = (JGroup) object;
252 return target.getColour();
255 public void setValue(java.lang.Object object, java.lang.Object value)
256 throws IllegalStateException, IllegalArgumentException
260 JGroup target = (JGroup) object;
261 target.setColour((java.lang.String) value);
262 } catch (java.lang.Exception ex)
264 throw new IllegalStateException(ex.toString());
268 public java.lang.Object newInstance(java.lang.Object parent)
273 desc.setHandler(handler);
274 desc.setMultivalued(false);
275 addFieldDescriptor(desc);
277 // -- validation code for: _colour
278 fieldValidator = new org.exolab.castor.xml.FieldValidator();
280 org.exolab.castor.xml.validators.StringValidator typeValidator;
281 typeValidator = new org.exolab.castor.xml.validators.StringValidator();
282 fieldValidator.setValidator(typeValidator);
283 typeValidator.setWhiteSpace("preserve");
285 desc.setValidator(fieldValidator);
287 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
288 java.lang.Integer.TYPE, "_consThreshold", "consThreshold",
289 org.exolab.castor.xml.NodeType.Attribute);
290 handler = new org.exolab.castor.xml.XMLFieldHandler()
292 public java.lang.Object getValue(java.lang.Object object)
293 throws IllegalStateException
295 JGroup target = (JGroup) object;
296 if (!target.hasConsThreshold())
300 return new java.lang.Integer(target.getConsThreshold());
303 public void setValue(java.lang.Object object, java.lang.Object value)
304 throws IllegalStateException, IllegalArgumentException
308 JGroup target = (JGroup) object;
309 // if null, use delete method for optional primitives
312 target.deleteConsThreshold();
315 target.setConsThreshold(((java.lang.Integer) value).intValue());
316 } catch (java.lang.Exception ex)
318 throw new IllegalStateException(ex.toString());
322 public java.lang.Object newInstance(java.lang.Object parent)
327 desc.setHandler(handler);
328 desc.setMultivalued(false);
329 addFieldDescriptor(desc);
331 // -- validation code for: _consThreshold
332 fieldValidator = new org.exolab.castor.xml.FieldValidator();
334 org.exolab.castor.xml.validators.IntValidator typeValidator;
335 typeValidator = new org.exolab.castor.xml.validators.IntValidator();
336 fieldValidator.setValidator(typeValidator);
337 typeValidator.setMinInclusive(-2147483648);
338 typeValidator.setMaxInclusive(2147483647);
340 desc.setValidator(fieldValidator);
342 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
343 java.lang.Integer.TYPE, "_pidThreshold", "pidThreshold",
344 org.exolab.castor.xml.NodeType.Attribute);
345 handler = new org.exolab.castor.xml.XMLFieldHandler()
347 public java.lang.Object getValue(java.lang.Object object)
348 throws IllegalStateException
350 JGroup target = (JGroup) object;
351 if (!target.hasPidThreshold())
355 return new java.lang.Integer(target.getPidThreshold());
358 public void setValue(java.lang.Object object, java.lang.Object value)
359 throws IllegalStateException, IllegalArgumentException
363 JGroup target = (JGroup) object;
364 // if null, use delete method for optional primitives
367 target.deletePidThreshold();
370 target.setPidThreshold(((java.lang.Integer) value).intValue());
371 } catch (java.lang.Exception ex)
373 throw new IllegalStateException(ex.toString());
377 public java.lang.Object newInstance(java.lang.Object parent)
382 desc.setHandler(handler);
383 desc.setMultivalued(false);
384 addFieldDescriptor(desc);
386 // -- validation code for: _pidThreshold
387 fieldValidator = new org.exolab.castor.xml.FieldValidator();
389 org.exolab.castor.xml.validators.IntValidator typeValidator;
390 typeValidator = new org.exolab.castor.xml.validators.IntValidator();
391 fieldValidator.setValidator(typeValidator);
392 typeValidator.setMinInclusive(-2147483648);
393 typeValidator.setMaxInclusive(2147483647);
395 desc.setValidator(fieldValidator);
397 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
398 java.lang.Integer.TYPE, "_outlineColour", "outlineColour",
399 org.exolab.castor.xml.NodeType.Attribute);
400 handler = new org.exolab.castor.xml.XMLFieldHandler()
402 public java.lang.Object getValue(java.lang.Object object)
403 throws IllegalStateException
405 JGroup target = (JGroup) object;
406 if (!target.hasOutlineColour())
410 return new java.lang.Integer(target.getOutlineColour());
413 public void setValue(java.lang.Object object, java.lang.Object value)
414 throws IllegalStateException, IllegalArgumentException
418 JGroup target = (JGroup) object;
419 // if null, use delete method for optional primitives
422 target.deleteOutlineColour();
425 target.setOutlineColour(((java.lang.Integer) value).intValue());
426 } catch (java.lang.Exception ex)
428 throw new IllegalStateException(ex.toString());
432 public java.lang.Object newInstance(java.lang.Object parent)
437 desc.setHandler(handler);
438 desc.setMultivalued(false);
439 addFieldDescriptor(desc);
441 // -- validation code for: _outlineColour
442 fieldValidator = new org.exolab.castor.xml.FieldValidator();
444 org.exolab.castor.xml.validators.IntValidator typeValidator;
445 typeValidator = new org.exolab.castor.xml.validators.IntValidator();
446 fieldValidator.setValidator(typeValidator);
447 typeValidator.setMinInclusive(-2147483648);
448 typeValidator.setMaxInclusive(2147483647);
450 desc.setValidator(fieldValidator);
452 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
453 java.lang.Boolean.TYPE, "_displayBoxes", "displayBoxes",
454 org.exolab.castor.xml.NodeType.Attribute);
455 handler = new org.exolab.castor.xml.XMLFieldHandler()
457 public java.lang.Object getValue(java.lang.Object object)
458 throws IllegalStateException
460 JGroup target = (JGroup) object;
461 if (!target.hasDisplayBoxes())
465 return (target.getDisplayBoxes() ? java.lang.Boolean.TRUE
466 : java.lang.Boolean.FALSE);
469 public void setValue(java.lang.Object object, java.lang.Object value)
470 throws IllegalStateException, IllegalArgumentException
474 JGroup target = (JGroup) object;
475 // if null, use delete method for optional primitives
478 target.deleteDisplayBoxes();
481 target.setDisplayBoxes(((java.lang.Boolean) value).booleanValue());
482 } catch (java.lang.Exception ex)
484 throw new IllegalStateException(ex.toString());
488 public java.lang.Object newInstance(java.lang.Object parent)
493 desc.setHandler(handler);
494 desc.setMultivalued(false);
495 addFieldDescriptor(desc);
497 // -- validation code for: _displayBoxes
498 fieldValidator = new org.exolab.castor.xml.FieldValidator();
500 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
501 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
502 fieldValidator.setValidator(typeValidator);
504 desc.setValidator(fieldValidator);
506 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
507 java.lang.Boolean.TYPE, "_displayText", "displayText",
508 org.exolab.castor.xml.NodeType.Attribute);
509 handler = new org.exolab.castor.xml.XMLFieldHandler()
511 public java.lang.Object getValue(java.lang.Object object)
512 throws IllegalStateException
514 JGroup target = (JGroup) object;
515 if (!target.hasDisplayText())
519 return (target.getDisplayText() ? java.lang.Boolean.TRUE
520 : java.lang.Boolean.FALSE);
523 public void setValue(java.lang.Object object, java.lang.Object value)
524 throws IllegalStateException, IllegalArgumentException
528 JGroup target = (JGroup) object;
529 // if null, use delete method for optional primitives
532 target.deleteDisplayText();
535 target.setDisplayText(((java.lang.Boolean) value).booleanValue());
536 } catch (java.lang.Exception ex)
538 throw new IllegalStateException(ex.toString());
542 public java.lang.Object newInstance(java.lang.Object parent)
547 desc.setHandler(handler);
548 desc.setMultivalued(false);
549 addFieldDescriptor(desc);
551 // -- validation code for: _displayText
552 fieldValidator = new org.exolab.castor.xml.FieldValidator();
554 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
555 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
556 fieldValidator.setValidator(typeValidator);
558 desc.setValidator(fieldValidator);
560 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
561 java.lang.Boolean.TYPE, "_colourText", "colourText",
562 org.exolab.castor.xml.NodeType.Attribute);
563 handler = new org.exolab.castor.xml.XMLFieldHandler()
565 public java.lang.Object getValue(java.lang.Object object)
566 throws IllegalStateException
568 JGroup target = (JGroup) object;
569 if (!target.hasColourText())
573 return (target.getColourText() ? java.lang.Boolean.TRUE
574 : java.lang.Boolean.FALSE);
577 public void setValue(java.lang.Object object, java.lang.Object value)
578 throws IllegalStateException, IllegalArgumentException
582 JGroup target = (JGroup) object;
583 // if null, use delete method for optional primitives
586 target.deleteColourText();
589 target.setColourText(((java.lang.Boolean) value).booleanValue());
590 } catch (java.lang.Exception ex)
592 throw new IllegalStateException(ex.toString());
596 public java.lang.Object newInstance(java.lang.Object parent)
601 desc.setHandler(handler);
602 desc.setMultivalued(false);
603 addFieldDescriptor(desc);
605 // -- validation code for: _colourText
606 fieldValidator = new org.exolab.castor.xml.FieldValidator();
608 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
609 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
610 fieldValidator.setValidator(typeValidator);
612 desc.setValidator(fieldValidator);
614 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
615 java.lang.Integer.TYPE, "_textCol1", "textCol1",
616 org.exolab.castor.xml.NodeType.Attribute);
617 handler = new org.exolab.castor.xml.XMLFieldHandler()
619 public java.lang.Object getValue(java.lang.Object object)
620 throws IllegalStateException
622 JGroup target = (JGroup) object;
623 if (!target.hasTextCol1())
627 return new java.lang.Integer(target.getTextCol1());
630 public void setValue(java.lang.Object object, java.lang.Object value)
631 throws IllegalStateException, IllegalArgumentException
635 JGroup target = (JGroup) object;
636 // if null, use delete method for optional primitives
639 target.deleteTextCol1();
642 target.setTextCol1(((java.lang.Integer) value).intValue());
643 } catch (java.lang.Exception ex)
645 throw new IllegalStateException(ex.toString());
649 public java.lang.Object newInstance(java.lang.Object parent)
654 desc.setHandler(handler);
655 desc.setMultivalued(false);
656 addFieldDescriptor(desc);
658 // -- validation code for: _textCol1
659 fieldValidator = new org.exolab.castor.xml.FieldValidator();
661 org.exolab.castor.xml.validators.IntValidator typeValidator;
662 typeValidator = new org.exolab.castor.xml.validators.IntValidator();
663 fieldValidator.setValidator(typeValidator);
664 typeValidator.setMinInclusive(-2147483648);
665 typeValidator.setMaxInclusive(2147483647);
667 desc.setValidator(fieldValidator);
669 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
670 java.lang.Integer.TYPE, "_textCol2", "textCol2",
671 org.exolab.castor.xml.NodeType.Attribute);
672 handler = new org.exolab.castor.xml.XMLFieldHandler()
674 public java.lang.Object getValue(java.lang.Object object)
675 throws IllegalStateException
677 JGroup target = (JGroup) object;
678 if (!target.hasTextCol2())
682 return new java.lang.Integer(target.getTextCol2());
685 public void setValue(java.lang.Object object, java.lang.Object value)
686 throws IllegalStateException, IllegalArgumentException
690 JGroup target = (JGroup) object;
691 // if null, use delete method for optional primitives
694 target.deleteTextCol2();
697 target.setTextCol2(((java.lang.Integer) value).intValue());
698 } catch (java.lang.Exception ex)
700 throw new IllegalStateException(ex.toString());
704 public java.lang.Object newInstance(java.lang.Object parent)
709 desc.setHandler(handler);
710 desc.setMultivalued(false);
711 addFieldDescriptor(desc);
713 // -- validation code for: _textCol2
714 fieldValidator = new org.exolab.castor.xml.FieldValidator();
716 org.exolab.castor.xml.validators.IntValidator typeValidator;
717 typeValidator = new org.exolab.castor.xml.validators.IntValidator();
718 fieldValidator.setValidator(typeValidator);
719 typeValidator.setMinInclusive(-2147483648);
720 typeValidator.setMaxInclusive(2147483647);
722 desc.setValidator(fieldValidator);
723 // -- _textColThreshold
724 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
725 java.lang.Integer.TYPE, "_textColThreshold",
726 "textColThreshold", org.exolab.castor.xml.NodeType.Attribute);
727 handler = new org.exolab.castor.xml.XMLFieldHandler()
729 public java.lang.Object getValue(java.lang.Object object)
730 throws IllegalStateException
732 JGroup target = (JGroup) object;
733 if (!target.hasTextColThreshold())
737 return new java.lang.Integer(target.getTextColThreshold());
740 public void setValue(java.lang.Object object, java.lang.Object value)
741 throws IllegalStateException, IllegalArgumentException
745 JGroup target = (JGroup) object;
746 // if null, use delete method for optional primitives
749 target.deleteTextColThreshold();
752 target.setTextColThreshold(((java.lang.Integer) value).intValue());
753 } catch (java.lang.Exception ex)
755 throw new IllegalStateException(ex.toString());
759 public java.lang.Object newInstance(java.lang.Object parent)
764 desc.setHandler(handler);
765 desc.setMultivalued(false);
766 addFieldDescriptor(desc);
768 // -- validation code for: _textColThreshold
769 fieldValidator = new org.exolab.castor.xml.FieldValidator();
771 org.exolab.castor.xml.validators.IntValidator typeValidator;
772 typeValidator = new org.exolab.castor.xml.validators.IntValidator();
773 fieldValidator.setValidator(typeValidator);
774 typeValidator.setMinInclusive(-2147483648);
775 typeValidator.setMaxInclusive(2147483647);
777 desc.setValidator(fieldValidator);
778 // -- _showUnconserved
779 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
780 java.lang.Boolean.TYPE, "_showUnconserved", "showUnconserved",
781 org.exolab.castor.xml.NodeType.Attribute);
782 handler = new org.exolab.castor.xml.XMLFieldHandler()
784 public java.lang.Object getValue(java.lang.Object object)
785 throws IllegalStateException
787 JGroup target = (JGroup) object;
788 if (!target.hasShowUnconserved())
792 return (target.getShowUnconserved() ? java.lang.Boolean.TRUE
793 : java.lang.Boolean.FALSE);
796 public void setValue(java.lang.Object object, java.lang.Object value)
797 throws IllegalStateException, IllegalArgumentException
801 JGroup target = (JGroup) object;
802 // if null, use delete method for optional primitives
805 target.deleteShowUnconserved();
808 target.setShowUnconserved(((java.lang.Boolean) value)
810 } catch (java.lang.Exception ex)
812 throw new IllegalStateException(ex.toString());
816 public java.lang.Object newInstance(java.lang.Object parent)
821 desc.setHandler(handler);
822 desc.setMultivalued(false);
823 addFieldDescriptor(desc);
825 // -- validation code for: _showUnconserved
826 fieldValidator = new org.exolab.castor.xml.FieldValidator();
828 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
829 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
830 fieldValidator.setValidator(typeValidator);
832 desc.setValidator(fieldValidator);
833 // -- _ignoreGapsinConsensus
834 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
835 java.lang.Boolean.TYPE, "_ignoreGapsinConsensus",
836 "ignoreGapsinConsensus",
837 org.exolab.castor.xml.NodeType.Attribute);
838 handler = new org.exolab.castor.xml.XMLFieldHandler()
840 public java.lang.Object getValue(java.lang.Object object)
841 throws IllegalStateException
843 JGroup target = (JGroup) object;
844 if (!target.hasIgnoreGapsinConsensus())
848 return (target.getIgnoreGapsinConsensus() ? java.lang.Boolean.TRUE
849 : java.lang.Boolean.FALSE);
852 public void setValue(java.lang.Object object, java.lang.Object value)
853 throws IllegalStateException, IllegalArgumentException
857 JGroup target = (JGroup) object;
858 // if null, use delete method for optional primitives
861 target.deleteIgnoreGapsinConsensus();
864 target.setIgnoreGapsinConsensus(((java.lang.Boolean) value)
866 } catch (java.lang.Exception ex)
868 throw new IllegalStateException(ex.toString());
872 public java.lang.Object newInstance(java.lang.Object parent)
877 desc.setHandler(handler);
878 desc.setMultivalued(false);
879 addFieldDescriptor(desc);
881 // -- validation code for: _ignoreGapsinConsensus
882 fieldValidator = new org.exolab.castor.xml.FieldValidator();
884 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
885 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
886 fieldValidator.setValidator(typeValidator);
888 desc.setValidator(fieldValidator);
889 // -- _showConsensusHistogram
890 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
891 java.lang.Boolean.TYPE, "_showConsensusHistogram",
892 "showConsensusHistogram",
893 org.exolab.castor.xml.NodeType.Attribute);
894 handler = new org.exolab.castor.xml.XMLFieldHandler()
896 public java.lang.Object getValue(java.lang.Object object)
897 throws IllegalStateException
899 JGroup target = (JGroup) object;
900 if (!target.hasShowConsensusHistogram())
904 return (target.getShowConsensusHistogram() ? java.lang.Boolean.TRUE
905 : java.lang.Boolean.FALSE);
908 public void setValue(java.lang.Object object, java.lang.Object value)
909 throws IllegalStateException, IllegalArgumentException
913 JGroup target = (JGroup) object;
914 // if null, use delete method for optional primitives
917 target.deleteShowConsensusHistogram();
920 target.setShowConsensusHistogram(((java.lang.Boolean) value)
922 } catch (java.lang.Exception ex)
924 throw new IllegalStateException(ex.toString());
928 public java.lang.Object newInstance(java.lang.Object parent)
933 desc.setHandler(handler);
934 desc.setMultivalued(false);
935 addFieldDescriptor(desc);
937 // -- validation code for: _showConsensusHistogram
938 fieldValidator = new org.exolab.castor.xml.FieldValidator();
940 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
941 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
942 fieldValidator.setValidator(typeValidator);
944 desc.setValidator(fieldValidator);
945 // -- _showSequenceLogo
946 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
947 java.lang.Boolean.TYPE, "_showSequenceLogo",
948 "showSequenceLogo", org.exolab.castor.xml.NodeType.Attribute);
949 handler = new org.exolab.castor.xml.XMLFieldHandler()
951 public java.lang.Object getValue(java.lang.Object object)
952 throws IllegalStateException
954 JGroup target = (JGroup) object;
955 if (!target.hasShowSequenceLogo())
959 return (target.getShowSequenceLogo() ? java.lang.Boolean.TRUE
960 : java.lang.Boolean.FALSE);
963 public void setValue(java.lang.Object object, java.lang.Object value)
964 throws IllegalStateException, IllegalArgumentException
968 JGroup target = (JGroup) object;
969 // if null, use delete method for optional primitives
972 target.deleteShowSequenceLogo();
975 target.setShowSequenceLogo(((java.lang.Boolean) value)
977 } catch (java.lang.Exception ex)
979 throw new IllegalStateException(ex.toString());
983 public java.lang.Object newInstance(java.lang.Object parent)
988 desc.setHandler(handler);
989 desc.setMultivalued(false);
990 addFieldDescriptor(desc);
992 // -- validation code for: _showSequenceLogo
993 fieldValidator = new org.exolab.castor.xml.FieldValidator();
995 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
996 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
997 fieldValidator.setValidator(typeValidator);
999 desc.setValidator(fieldValidator);
1000 // -- _normaliseSequenceLogo
1001 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
1002 java.lang.Boolean.TYPE, "_normaliseSequenceLogo",
1003 "normaliseSequenceLogo",
1004 org.exolab.castor.xml.NodeType.Attribute);
1005 handler = new org.exolab.castor.xml.XMLFieldHandler()
1007 public java.lang.Object getValue(java.lang.Object object)
1008 throws IllegalStateException
1010 JGroup target = (JGroup) object;
1011 if (!target.hasNormaliseSequenceLogo())
1015 return (target.getNormaliseSequenceLogo() ? java.lang.Boolean.TRUE
1016 : java.lang.Boolean.FALSE);
1019 public void setValue(java.lang.Object object, java.lang.Object value)
1020 throws IllegalStateException, IllegalArgumentException
1024 JGroup target = (JGroup) object;
1025 // if null, use delete method for optional primitives
1028 target.deleteNormaliseSequenceLogo();
1031 target.setNormaliseSequenceLogo(((java.lang.Boolean) value)
1033 } catch (java.lang.Exception ex)
1035 throw new IllegalStateException(ex.toString());
1039 public java.lang.Object newInstance(java.lang.Object parent)
1044 desc.setHandler(handler);
1045 desc.setMultivalued(false);
1046 addFieldDescriptor(desc);
1048 // -- validation code for: _normaliseSequenceLogo
1049 fieldValidator = new org.exolab.castor.xml.FieldValidator();
1051 org.exolab.castor.xml.validators.BooleanValidator typeValidator;
1052 typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
1053 fieldValidator.setValidator(typeValidator);
1055 desc.setValidator(fieldValidator);
1057 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
1058 java.lang.String.class, "_id", "id",
1059 org.exolab.castor.xml.NodeType.Attribute);
1060 desc.setImmutable(true);
1061 handler = new org.exolab.castor.xml.XMLFieldHandler()
1063 public java.lang.Object getValue(java.lang.Object object)
1064 throws IllegalStateException
1066 JGroup target = (JGroup) object;
1067 return target.getId();
1070 public void setValue(java.lang.Object object, java.lang.Object value)
1071 throws IllegalStateException, IllegalArgumentException
1075 JGroup target = (JGroup) object;
1076 target.setId((java.lang.String) value);
1077 } catch (java.lang.Exception ex)
1079 throw new IllegalStateException(ex.toString());
1083 public java.lang.Object newInstance(java.lang.Object parent)
1088 desc.setHandler(handler);
1089 desc.setMultivalued(false);
1090 addFieldDescriptor(desc);
1092 // -- validation code for: _id
1093 fieldValidator = new org.exolab.castor.xml.FieldValidator();
1095 org.exolab.castor.xml.validators.StringValidator typeValidator;
1096 typeValidator = new org.exolab.castor.xml.validators.StringValidator();
1097 fieldValidator.setValidator(typeValidator);
1098 typeValidator.setWhiteSpace("preserve");
1100 desc.setValidator(fieldValidator);
1101 // -- initialize element descriptors
1104 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
1105 java.lang.String.class, "_seqList", "seq",
1106 org.exolab.castor.xml.NodeType.Element);
1107 desc.setImmutable(true);
1108 handler = new org.exolab.castor.xml.XMLFieldHandler()
1110 public java.lang.Object getValue(java.lang.Object object)
1111 throws IllegalStateException
1113 JGroup target = (JGroup) object;
1114 return target.getSeq();
1117 public void setValue(java.lang.Object object, java.lang.Object value)
1118 throws IllegalStateException, IllegalArgumentException
1122 JGroup target = (JGroup) object;
1123 target.addSeq((java.lang.String) value);
1124 } catch (java.lang.Exception ex)
1126 throw new IllegalStateException(ex.toString());
1130 public void resetValue(Object object) throws IllegalStateException,
1131 IllegalArgumentException
1135 JGroup target = (JGroup) object;
1136 target.removeAllSeq();
1137 } catch (java.lang.Exception ex)
1139 throw new IllegalStateException(ex.toString());
1143 public java.lang.Object newInstance(java.lang.Object parent)
1148 desc.setHandler(handler);
1149 desc.setNameSpaceURI("www.jalview.org");
1150 desc.setRequired(true);
1151 desc.setMultivalued(true);
1152 addFieldDescriptor(desc);
1154 // -- validation code for: _seqList
1155 fieldValidator = new org.exolab.castor.xml.FieldValidator();
1156 fieldValidator.setMinOccurs(1);
1158 org.exolab.castor.xml.validators.StringValidator typeValidator;
1159 typeValidator = new org.exolab.castor.xml.validators.StringValidator();
1160 fieldValidator.setValidator(typeValidator);
1161 typeValidator.setWhiteSpace("preserve");
1163 desc.setValidator(fieldValidator);
1164 // -- _annotationColours
1165 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
1166 jalview.schemabinding.version2.AnnotationColours.class,
1167 "_annotationColours", "annotationColours",
1168 org.exolab.castor.xml.NodeType.Element);
1169 handler = new org.exolab.castor.xml.XMLFieldHandler()
1171 public java.lang.Object getValue(java.lang.Object object)
1172 throws IllegalStateException
1174 JGroup target = (JGroup) object;
1175 return target.getAnnotationColours();
1178 public void setValue(java.lang.Object object, java.lang.Object value)
1179 throws IllegalStateException, IllegalArgumentException
1183 JGroup target = (JGroup) object;
1184 target.setAnnotationColours((jalview.schemabinding.version2.AnnotationColours) value);
1185 } catch (java.lang.Exception ex)
1187 throw new IllegalStateException(ex.toString());
1191 public java.lang.Object newInstance(java.lang.Object parent)
1193 return new jalview.schemabinding.version2.AnnotationColours();
1196 desc.setHandler(handler);
1197 desc.setNameSpaceURI("www.jalview.org");
1198 desc.setMultivalued(false);
1199 addFieldDescriptor(desc);
1201 // -- validation code for: _annotationColours
1202 fieldValidator = new org.exolab.castor.xml.FieldValidator();
1205 desc.setValidator(fieldValidator);
1213 * Method getAccessMode.
1215 * @return the access mode specified for this class.
1217 public org.exolab.castor.mapping.AccessMode getAccessMode()
1223 * Method getIdentity.
1225 * @return the identity field, null if this class has no identity.
1227 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
1229 return super.getIdentity();
1233 * Method getJavaClass.
1235 * @return the Java class represented by this descriptor.
1237 public java.lang.Class getJavaClass()
1239 return jalview.schemabinding.version2.JGroup.class;
1243 * Method getNameSpacePrefix.
1245 * @return the namespace prefix to use when marshaling as XML.
1247 public java.lang.String getNameSpacePrefix()
1253 * Method getNameSpaceURI.
1255 * @return the namespace URI used when marshaling and unmarshaling as XML.
1257 public java.lang.String getNameSpaceURI()
1263 * Method getValidator.
1265 * @return a specific validator for the class described by this
1268 public org.exolab.castor.xml.TypeValidator getValidator()
1274 * Method getXMLName.
1276 * @return the XML Name for the Class being described.
1278 public java.lang.String getXMLName()
1284 * Method isElementDefinition.
1286 * @return true if XML schema definition of this Class is that of a global
1287 * element or element with anonymous type definition.
1289 public boolean isElementDefinition()
1291 return _elementDefinition;