-public class ViewportDescriptor extends\r
- org.exolab.castor.xml.util.XMLClassDescriptorImpl\r
-{\r
-\r
- // --------------------------/\r
- // - Class/Member Variables -/\r
- // --------------------------/\r
-\r
- /**\r
- * Field _elementDefinition.\r
- */\r
- private boolean _elementDefinition;\r
-\r
- /**\r
- * Field _nsPrefix.\r
- */\r
- private java.lang.String _nsPrefix;\r
-\r
- /**\r
- * Field _nsURI.\r
- */\r
- private java.lang.String _nsURI;\r
-\r
- /**\r
- * Field _xmlName.\r
- */\r
- private java.lang.String _xmlName;\r
-\r
- // ----------------/\r
- // - Constructors -/\r
- // ----------------/\r
-\r
- public ViewportDescriptor()\r
- {\r
- super();\r
- _nsURI = "www.jalview.org";\r
- _xmlName = "Viewport";\r
- _elementDefinition = true;\r
-\r
- // -- set grouping compositor\r
- setCompositorAsSequence();\r
- org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;\r
- org.exolab.castor.mapping.FieldHandler handler = null;\r
- org.exolab.castor.xml.FieldValidator fieldValidator = null;\r
- // -- initialize attribute descriptors\r
-\r
- // -- _conservationSelected\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.Boolean.TYPE, "_conservationSelected",\r
- "conservationSelected",\r
- org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- if (!target.hasConservationSelected())\r
- {\r
- return null;\r
- }\r
- return (target.getConservationSelected() ? java.lang.Boolean.TRUE\r
- : java.lang.Boolean.FALSE);\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- // if null, use delete method for optional primitives\r
- if (value == null)\r
- {\r
- target.deleteConservationSelected();\r
- return;\r
- }\r
- target.setConservationSelected(((java.lang.Boolean) value)\r
- .booleanValue());\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _conservationSelected\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
- fieldValidator.setValidator(typeValidator);\r
- }\r
- desc.setValidator(fieldValidator);\r
- // -- _pidSelected\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.Boolean.TYPE, "_pidSelected", "pidSelected",\r
- org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- if (!target.hasPidSelected())\r
- {\r
- return null;\r
- }\r
- return (target.getPidSelected() ? java.lang.Boolean.TRUE\r
- : java.lang.Boolean.FALSE);\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- // if null, use delete method for optional primitives\r
- if (value == null)\r
- {\r
- target.deletePidSelected();\r
- return;\r
- }\r
- target.setPidSelected(((java.lang.Boolean) value).booleanValue());\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _pidSelected\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
- fieldValidator.setValidator(typeValidator);\r
- }\r
- desc.setValidator(fieldValidator);\r
- // -- _bgColour\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.String.class, "_bgColour", "bgColour",\r
- org.exolab.castor.xml.NodeType.Attribute);\r
- desc.setImmutable(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- return target.getBgColour();\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- target.setBgColour((java.lang.String) value);\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _bgColour\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.StringValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.StringValidator();\r
- fieldValidator.setValidator(typeValidator);\r
- typeValidator.setWhiteSpace("preserve");\r
- }\r
- desc.setValidator(fieldValidator);\r
- // -- _consThreshold\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.Integer.TYPE, "_consThreshold", "consThreshold",\r
- org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- if (!target.hasConsThreshold())\r
- {\r
- return null;\r
- }\r
- return new java.lang.Integer(target.getConsThreshold());\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- // if null, use delete method for optional primitives\r
- if (value == null)\r
- {\r
- target.deleteConsThreshold();\r
- return;\r
- }\r
- target.setConsThreshold(((java.lang.Integer) value).intValue());\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _consThreshold\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.IntValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.IntValidator();\r
- fieldValidator.setValidator(typeValidator);\r
- typeValidator.setMinInclusive(-2147483648);\r
- typeValidator.setMaxInclusive(2147483647);\r
- }\r
- desc.setValidator(fieldValidator);\r
- // -- _pidThreshold\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.Integer.TYPE, "_pidThreshold", "pidThreshold",\r
- org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- if (!target.hasPidThreshold())\r
- {\r
- return null;\r
- }\r
- return new java.lang.Integer(target.getPidThreshold());\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- // if null, use delete method for optional primitives\r
- if (value == null)\r
- {\r
- target.deletePidThreshold();\r
- return;\r
- }\r
- target.setPidThreshold(((java.lang.Integer) value).intValue());\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _pidThreshold\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.IntValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.IntValidator();\r
- fieldValidator.setValidator(typeValidator);\r
- typeValidator.setMinInclusive(-2147483648);\r
- typeValidator.setMaxInclusive(2147483647);\r
- }\r
- desc.setValidator(fieldValidator);\r
- // -- _title\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.String.class, "_title", "title",\r
- org.exolab.castor.xml.NodeType.Attribute);\r
- desc.setImmutable(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- return target.getTitle();\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- target.setTitle((java.lang.String) value);\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _title\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.StringValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.StringValidator();\r
- fieldValidator.setValidator(typeValidator);\r
- typeValidator.setWhiteSpace("preserve");\r
- }\r
- desc.setValidator(fieldValidator);\r
- // -- _showFullId\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.Boolean.TYPE, "_showFullId", "showFullId",\r
- org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- if (!target.hasShowFullId())\r
- {\r
- return null;\r
- }\r
- return (target.getShowFullId() ? java.lang.Boolean.TRUE\r
- : java.lang.Boolean.FALSE);\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- // if null, use delete method for optional primitives\r
- if (value == null)\r
- {\r
- target.deleteShowFullId();\r
- return;\r
- }\r
- target.setShowFullId(((java.lang.Boolean) value).booleanValue());\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _showFullId\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
- fieldValidator.setValidator(typeValidator);\r
- }\r
- desc.setValidator(fieldValidator);\r
- // -- _rightAlignIds\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.Boolean.TYPE, "_rightAlignIds", "rightAlignIds",\r
- org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- if (!target.hasRightAlignIds())\r
- {\r
- return null;\r
- }\r
- return (target.getRightAlignIds() ? java.lang.Boolean.TRUE\r
- : java.lang.Boolean.FALSE);\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- // if null, use delete method for optional primitives\r
- if (value == null)\r
- {\r
- target.deleteRightAlignIds();\r
- return;\r
- }\r
- target.setRightAlignIds(((java.lang.Boolean) value)\r
- .booleanValue());\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _rightAlignIds\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
- fieldValidator.setValidator(typeValidator);\r
- }\r
- desc.setValidator(fieldValidator);\r
- // -- _showText\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.Boolean.TYPE, "_showText", "showText",\r
- org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- if (!target.hasShowText())\r
- {\r
- return null;\r
- }\r
- return (target.getShowText() ? java.lang.Boolean.TRUE\r
- : java.lang.Boolean.FALSE);\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- // if null, use delete method for optional primitives\r
- if (value == null)\r
- {\r
- target.deleteShowText();\r
- return;\r
- }\r
- target.setShowText(((java.lang.Boolean) value).booleanValue());\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _showText\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
- fieldValidator.setValidator(typeValidator);\r
- }\r
- desc.setValidator(fieldValidator);\r
- // -- _showColourText\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.Boolean.TYPE, "_showColourText", "showColourText",\r
- org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- if (!target.hasShowColourText())\r
- {\r
- return null;\r
- }\r
- return (target.getShowColourText() ? java.lang.Boolean.TRUE\r
- : java.lang.Boolean.FALSE);\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- // if null, use delete method for optional primitives\r
- if (value == null)\r
- {\r
- target.deleteShowColourText();\r
- return;\r
- }\r
- target.setShowColourText(((java.lang.Boolean) value)\r
- .booleanValue());\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _showColourText\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
- fieldValidator.setValidator(typeValidator);\r
- }\r
- desc.setValidator(fieldValidator);\r
- // -- _showUnconserved\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.Boolean.TYPE, "_showUnconserved", "showUnconserved",\r
- org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- if (!target.hasShowUnconserved())\r
- {\r
- return null;\r
- }\r
- return (target.getShowUnconserved() ? java.lang.Boolean.TRUE\r
- : java.lang.Boolean.FALSE);\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- // if null, use delete method for optional primitives\r
- if (value == null)\r
- {\r
- target.deleteShowUnconserved();\r
- return;\r
- }\r
- target.setShowUnconserved(((java.lang.Boolean) value)\r
- .booleanValue());\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _showUnconserved\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
- fieldValidator.setValidator(typeValidator);\r
- }\r
- desc.setValidator(fieldValidator);\r
- // -- _showBoxes\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.Boolean.TYPE, "_showBoxes", "showBoxes",\r
- org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- if (!target.hasShowBoxes())\r
- {\r
- return null;\r
- }\r
- return (target.getShowBoxes() ? java.lang.Boolean.TRUE\r
- : java.lang.Boolean.FALSE);\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- // if null, use delete method for optional primitives\r
- if (value == null)\r
- {\r
- target.deleteShowBoxes();\r
- return;\r
- }\r
- target.setShowBoxes(((java.lang.Boolean) value).booleanValue());\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _showBoxes\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
- fieldValidator.setValidator(typeValidator);\r
- }\r
- desc.setValidator(fieldValidator);\r
- // -- _wrapAlignment\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.Boolean.TYPE, "_wrapAlignment", "wrapAlignment",\r
- org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- if (!target.hasWrapAlignment())\r
- {\r
- return null;\r
- }\r
- return (target.getWrapAlignment() ? java.lang.Boolean.TRUE\r
- : java.lang.Boolean.FALSE);\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- // if null, use delete method for optional primitives\r
- if (value == null)\r
- {\r
- target.deleteWrapAlignment();\r
- return;\r
- }\r
- target.setWrapAlignment(((java.lang.Boolean) value)\r
- .booleanValue());\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _wrapAlignment\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
- fieldValidator.setValidator(typeValidator);\r
- }\r
- desc.setValidator(fieldValidator);\r
- // -- _renderGaps\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.Boolean.TYPE, "_renderGaps", "renderGaps",\r
- org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- if (!target.hasRenderGaps())\r
- {\r
- return null;\r
- }\r
- return (target.getRenderGaps() ? java.lang.Boolean.TRUE\r
- : java.lang.Boolean.FALSE);\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- // if null, use delete method for optional primitives\r
- if (value == null)\r
- {\r
- target.deleteRenderGaps();\r
- return;\r
- }\r
- target.setRenderGaps(((java.lang.Boolean) value).booleanValue());\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _renderGaps\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
- fieldValidator.setValidator(typeValidator);\r
- }\r
- desc.setValidator(fieldValidator);\r
- // -- _showSequenceFeatures\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.Boolean.TYPE, "_showSequenceFeatures",\r
- "showSequenceFeatures",\r
- org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- if (!target.hasShowSequenceFeatures())\r
- {\r
- return null;\r
- }\r
- return (target.getShowSequenceFeatures() ? java.lang.Boolean.TRUE\r
- : java.lang.Boolean.FALSE);\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- // if null, use delete method for optional primitives\r
- if (value == null)\r
- {\r
- target.deleteShowSequenceFeatures();\r
- return;\r
- }\r
- target.setShowSequenceFeatures(((java.lang.Boolean) value)\r
- .booleanValue());\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _showSequenceFeatures\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
- fieldValidator.setValidator(typeValidator);\r
- }\r
- desc.setValidator(fieldValidator);\r
- // -- _showNPfeatureTooltip\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.Boolean.TYPE, "_showNPfeatureTooltip",\r
- "showNPfeatureTooltip",\r
- org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- if (!target.hasShowNPfeatureTooltip())\r
- {\r
- return null;\r
- }\r
- return (target.getShowNPfeatureTooltip() ? java.lang.Boolean.TRUE\r
- : java.lang.Boolean.FALSE);\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- // if null, use delete method for optional primitives\r
- if (value == null)\r
- {\r
- target.deleteShowNPfeatureTooltip();\r
- return;\r
- }\r
- target.setShowNPfeatureTooltip(((java.lang.Boolean) value)\r
- .booleanValue());\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _showNPfeatureTooltip\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
- fieldValidator.setValidator(typeValidator);\r
- }\r
- desc.setValidator(fieldValidator);\r
- // -- _showDbRefTooltip\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.Boolean.TYPE, "_showDbRefTooltip",\r
- "showDbRefTooltip", org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- if (!target.hasShowDbRefTooltip())\r
- {\r
- return null;\r
- }\r
- return (target.getShowDbRefTooltip() ? java.lang.Boolean.TRUE\r
- : java.lang.Boolean.FALSE);\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- // if null, use delete method for optional primitives\r
- if (value == null)\r
- {\r
- target.deleteShowDbRefTooltip();\r
- return;\r
- }\r
- target.setShowDbRefTooltip(((java.lang.Boolean) value)\r
- .booleanValue());\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _showDbRefTooltip\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
- fieldValidator.setValidator(typeValidator);\r
- }\r
- desc.setValidator(fieldValidator);\r
- // -- _followHighlight\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.Boolean.TYPE, "_followHighlight", "followHighlight",\r
- org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- if (!target.hasFollowHighlight())\r
- {\r
- return null;\r
- }\r
- return (target.getFollowHighlight() ? java.lang.Boolean.TRUE\r
- : java.lang.Boolean.FALSE);\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- // if null, use delete method for optional primitives\r
- if (value == null)\r
- {\r
- target.deleteFollowHighlight();\r
- return;\r
- }\r
- target.setFollowHighlight(((java.lang.Boolean) value)\r
- .booleanValue());\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _followHighlight\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
- fieldValidator.setValidator(typeValidator);\r
- }\r
- desc.setValidator(fieldValidator);\r
- // -- _followSelection\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.Boolean.TYPE, "_followSelection", "followSelection",\r
- org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- if (!target.hasFollowSelection())\r
- {\r
- return null;\r
- }\r
- return (target.getFollowSelection() ? java.lang.Boolean.TRUE\r
- : java.lang.Boolean.FALSE);\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- // if null, use delete method for optional primitives\r
- if (value == null)\r
- {\r
- target.deleteFollowSelection();\r
- return;\r
- }\r
- target.setFollowSelection(((java.lang.Boolean) value)\r
- .booleanValue());\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _followSelection\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
- fieldValidator.setValidator(typeValidator);\r
- }\r
- desc.setValidator(fieldValidator);\r
- // -- _showAnnotation\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
- java.lang.Boolean.TYPE, "_showAnnotation", "showAnnotation",\r
- org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler()\r
- {\r
- public java.lang.Object getValue(java.lang.Object object)\r
- throws IllegalStateException\r
- {\r
- Viewport target = (Viewport) object;\r
- if (!target.hasShowAnnotation())\r
- {\r
- return null;\r
- }\r
- return (target.getShowAnnotation() ? java.lang.Boolean.TRUE\r
- : java.lang.Boolean.FALSE);\r
- }\r
-\r
- public void setValue(java.lang.Object object, java.lang.Object value)\r
- throws IllegalStateException, IllegalArgumentException\r
- {\r
- try\r
- {\r
- Viewport target = (Viewport) object;\r
- // if null, use delete method for optional primitives\r
- if (value == null)\r
- {\r
- target.deleteShowAnnotation();\r
- return;\r
- }\r
- target.setShowAnnotation(((java.lang.Boolean) value)\r
- .booleanValue());\r
- } catch (java.lang.Exception ex)\r
- {\r
- throw new IllegalStateException(ex.toString());\r
- }\r
- }\r
-\r
- public java.lang.Object newInstance(java.lang.Object parent)\r
- {\r
- return null;\r
- }\r
- };\r
- desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
- addFieldDescriptor(desc);\r
-\r
- // -- validation code for: _showAnnotation\r
- fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
- { // -- local scope\r
- org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
- fieldValidator.setValidator(typeValidator);\r
+public class ViewportDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {\r
+\r
+\r
+ //--------------------------/\r
+ //- Class/Member Variables -/\r
+ //--------------------------/\r
+\r
+ /**\r
+ * Field _elementDefinition.\r
+ */\r
+ private boolean _elementDefinition;\r
+\r
+ /**\r
+ * Field _nsPrefix.\r
+ */\r
+ private java.lang.String _nsPrefix;\r
+\r
+ /**\r
+ * Field _nsURI.\r
+ */\r
+ private java.lang.String _nsURI;\r
+\r
+ /**\r
+ * Field _xmlName.\r
+ */\r
+ private java.lang.String _xmlName;\r
+\r
+\r
+ //----------------/\r
+ //- Constructors -/\r
+ //----------------/\r
+\r
+ public ViewportDescriptor() {\r
+ super();\r
+ _nsURI = "www.jalview.org";\r
+ _xmlName = "Viewport";\r
+ _elementDefinition = true;\r
+ \r
+ //-- set grouping compositor\r
+ setCompositorAsSequence();\r
+ org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;\r
+ org.exolab.castor.mapping.FieldHandler handler = null;\r
+ org.exolab.castor.xml.FieldValidator fieldValidator = null;\r
+ //-- initialize attribute descriptors\r
+ \r
+ //-- _conservationSelected\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_conservationSelected", "conservationSelected", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasConservationSelected()) { return null; }\r
+ return (target.getConservationSelected() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteConservationSelected();\r
+ return;\r
+ }\r
+ target.setConservationSelected( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _conservationSelected\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _pidSelected\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_pidSelected", "pidSelected", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasPidSelected()) { return null; }\r
+ return (target.getPidSelected() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deletePidSelected();\r
+ return;\r
+ }\r
+ target.setPidSelected( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _pidSelected\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _bgColour\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_bgColour", "bgColour", org.exolab.castor.xml.NodeType.Attribute);\r
+ desc.setImmutable(true);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ return target.getBgColour();\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ target.setBgColour( (java.lang.String) value);\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _bgColour\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.StringValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.StringValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ typeValidator.setWhiteSpace("preserve");\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _consThreshold\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_consThreshold", "consThreshold", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasConsThreshold()) { return null; }\r
+ return new java.lang.Integer(target.getConsThreshold());\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteConsThreshold();\r
+ return;\r
+ }\r
+ target.setConsThreshold( ((java.lang.Integer) value).intValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _consThreshold\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.IntValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.IntValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ typeValidator.setMinInclusive(-2147483648);\r
+ typeValidator.setMaxInclusive(2147483647);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _pidThreshold\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_pidThreshold", "pidThreshold", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasPidThreshold()) { return null; }\r
+ return new java.lang.Integer(target.getPidThreshold());\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deletePidThreshold();\r
+ return;\r
+ }\r
+ target.setPidThreshold( ((java.lang.Integer) value).intValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _pidThreshold\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.IntValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.IntValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ typeValidator.setMinInclusive(-2147483648);\r
+ typeValidator.setMaxInclusive(2147483647);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _title\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_title", "title", org.exolab.castor.xml.NodeType.Attribute);\r
+ desc.setImmutable(true);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ return target.getTitle();\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ target.setTitle( (java.lang.String) value);\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _title\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.StringValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.StringValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ typeValidator.setWhiteSpace("preserve");\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _showFullId\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_showFullId", "showFullId", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasShowFullId()) { return null; }\r
+ return (target.getShowFullId() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteShowFullId();\r
+ return;\r
+ }\r
+ target.setShowFullId( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _showFullId\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _rightAlignIds\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_rightAlignIds", "rightAlignIds", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasRightAlignIds()) { return null; }\r
+ return (target.getRightAlignIds() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteRightAlignIds();\r
+ return;\r
+ }\r
+ target.setRightAlignIds( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _rightAlignIds\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _showText\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_showText", "showText", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasShowText()) { return null; }\r
+ return (target.getShowText() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteShowText();\r
+ return;\r
+ }\r
+ target.setShowText( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _showText\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _showColourText\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_showColourText", "showColourText", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasShowColourText()) { return null; }\r
+ return (target.getShowColourText() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteShowColourText();\r
+ return;\r
+ }\r
+ target.setShowColourText( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _showColourText\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _showUnconserved\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_showUnconserved", "showUnconserved", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasShowUnconserved()) { return null; }\r
+ return (target.getShowUnconserved() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteShowUnconserved();\r
+ return;\r
+ }\r
+ target.setShowUnconserved( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _showUnconserved\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _showBoxes\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_showBoxes", "showBoxes", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasShowBoxes()) { return null; }\r
+ return (target.getShowBoxes() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteShowBoxes();\r
+ return;\r
+ }\r
+ target.setShowBoxes( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _showBoxes\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _wrapAlignment\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_wrapAlignment", "wrapAlignment", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasWrapAlignment()) { return null; }\r
+ return (target.getWrapAlignment() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteWrapAlignment();\r
+ return;\r
+ }\r
+ target.setWrapAlignment( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _wrapAlignment\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _renderGaps\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_renderGaps", "renderGaps", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasRenderGaps()) { return null; }\r
+ return (target.getRenderGaps() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteRenderGaps();\r
+ return;\r
+ }\r
+ target.setRenderGaps( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _renderGaps\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _showSequenceFeatures\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_showSequenceFeatures", "showSequenceFeatures", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasShowSequenceFeatures()) { return null; }\r
+ return (target.getShowSequenceFeatures() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteShowSequenceFeatures();\r
+ return;\r
+ }\r
+ target.setShowSequenceFeatures( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _showSequenceFeatures\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _showNPfeatureTooltip\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_showNPfeatureTooltip", "showNPfeatureTooltip", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasShowNPfeatureTooltip()) { return null; }\r
+ return (target.getShowNPfeatureTooltip() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteShowNPfeatureTooltip();\r
+ return;\r
+ }\r
+ target.setShowNPfeatureTooltip( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _showNPfeatureTooltip\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _showDbRefTooltip\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_showDbRefTooltip", "showDbRefTooltip", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasShowDbRefTooltip()) { return null; }\r
+ return (target.getShowDbRefTooltip() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteShowDbRefTooltip();\r
+ return;\r
+ }\r
+ target.setShowDbRefTooltip( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _showDbRefTooltip\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _followHighlight\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_followHighlight", "followHighlight", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasFollowHighlight()) { return null; }\r
+ return (target.getFollowHighlight() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteFollowHighlight();\r
+ return;\r
+ }\r
+ target.setFollowHighlight( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _followHighlight\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _followSelection\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_followSelection", "followSelection", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasFollowSelection()) { return null; }\r
+ return (target.getFollowSelection() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteFollowSelection();\r
+ return;\r
+ }\r
+ target.setFollowSelection( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _followSelection\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _showAnnotation\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_showAnnotation", "showAnnotation", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasShowAnnotation()) { return null; }\r
+ return (target.getShowAnnotation() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteShowAnnotation();\r
+ return;\r
+ }\r
+ target.setShowAnnotation( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _showAnnotation\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _centreColumnLabels\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_centreColumnLabels", "centreColumnLabels", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasCentreColumnLabels()) { return null; }\r
+ return (target.getCentreColumnLabels() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteCentreColumnLabels();\r
+ return;\r
+ }\r
+ target.setCentreColumnLabels( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _centreColumnLabels\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _showGroupConservation\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_showGroupConservation", "showGroupConservation", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasShowGroupConservation()) { return null; }\r
+ return (target.getShowGroupConservation() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteShowGroupConservation();\r
+ return;\r
+ }\r
+ target.setShowGroupConservation( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _showGroupConservation\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _showGroupConsensus\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_showGroupConsensus", "showGroupConsensus", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasShowGroupConsensus()) { return null; }\r
+ return (target.getShowGroupConsensus() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteShowGroupConsensus();\r
+ return;\r
+ }\r
+ target.setShowGroupConsensus( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _showGroupConsensus\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _showConsensusHistogram\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_showConsensusHistogram", "showConsensusHistogram", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasShowConsensusHistogram()) { return null; }\r
+ return (target.getShowConsensusHistogram() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteShowConsensusHistogram();\r
+ return;\r
+ }\r
+ target.setShowConsensusHistogram( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _showConsensusHistogram\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _showSequenceLogo\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_showSequenceLogo", "showSequenceLogo", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasShowSequenceLogo()) { return null; }\r
+ return (target.getShowSequenceLogo() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteShowSequenceLogo();\r
+ return;\r
+ }\r
+ target.setShowSequenceLogo( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _showSequenceLogo\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _ignoreGapsinConsensus\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_ignoreGapsinConsensus", "ignoreGapsinConsensus", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasIgnoreGapsinConsensus()) { return null; }\r
+ return (target.getIgnoreGapsinConsensus() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteIgnoreGapsinConsensus();\r
+ return;\r
+ }\r
+ target.setIgnoreGapsinConsensus( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _ignoreGapsinConsensus\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _xpos\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_xpos", "xpos", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasXpos()) { return null; }\r
+ return new java.lang.Integer(target.getXpos());\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteXpos();\r
+ return;\r
+ }\r
+ target.setXpos( ((java.lang.Integer) value).intValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _xpos\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.IntValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.IntValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ typeValidator.setMinInclusive(-2147483648);\r
+ typeValidator.setMaxInclusive(2147483647);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _ypos\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_ypos", "ypos", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasYpos()) { return null; }\r
+ return new java.lang.Integer(target.getYpos());\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteYpos();\r
+ return;\r
+ }\r
+ target.setYpos( ((java.lang.Integer) value).intValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _ypos\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.IntValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.IntValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ typeValidator.setMinInclusive(-2147483648);\r
+ typeValidator.setMaxInclusive(2147483647);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _width\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_width", "width", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasWidth()) { return null; }\r
+ return new java.lang.Integer(target.getWidth());\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteWidth();\r
+ return;\r
+ }\r
+ target.setWidth( ((java.lang.Integer) value).intValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _width\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.IntValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.IntValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ typeValidator.setMinInclusive(-2147483648);\r
+ typeValidator.setMaxInclusive(2147483647);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _height\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_height", "height", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasHeight()) { return null; }\r
+ return new java.lang.Integer(target.getHeight());\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteHeight();\r
+ return;\r
+ }\r
+ target.setHeight( ((java.lang.Integer) value).intValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _height\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.IntValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.IntValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ typeValidator.setMinInclusive(-2147483648);\r
+ typeValidator.setMaxInclusive(2147483647);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _startRes\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_startRes", "startRes", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasStartRes()) { return null; }\r
+ return new java.lang.Integer(target.getStartRes());\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteStartRes();\r
+ return;\r
+ }\r
+ target.setStartRes( ((java.lang.Integer) value).intValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _startRes\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.IntValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.IntValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ typeValidator.setMinInclusive(-2147483648);\r
+ typeValidator.setMaxInclusive(2147483647);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _startSeq\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_startSeq", "startSeq", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasStartSeq()) { return null; }\r
+ return new java.lang.Integer(target.getStartSeq());\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteStartSeq();\r
+ return;\r
+ }\r
+ target.setStartSeq( ((java.lang.Integer) value).intValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _startSeq\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.IntValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.IntValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ typeValidator.setMinInclusive(-2147483648);\r
+ typeValidator.setMaxInclusive(2147483647);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _fontName\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_fontName", "fontName", org.exolab.castor.xml.NodeType.Attribute);\r
+ desc.setImmutable(true);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ return target.getFontName();\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ target.setFontName( (java.lang.String) value);\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _fontName\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.StringValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.StringValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ typeValidator.setWhiteSpace("preserve");\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _fontSize\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_fontSize", "fontSize", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasFontSize()) { return null; }\r
+ return new java.lang.Integer(target.getFontSize());\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteFontSize();\r
+ return;\r
+ }\r
+ target.setFontSize( ((java.lang.Integer) value).intValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _fontSize\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.IntValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.IntValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ typeValidator.setMinInclusive(-2147483648);\r
+ typeValidator.setMaxInclusive(2147483647);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _fontStyle\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_fontStyle", "fontStyle", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasFontStyle()) { return null; }\r
+ return new java.lang.Integer(target.getFontStyle());\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteFontStyle();\r
+ return;\r
+ }\r
+ target.setFontStyle( ((java.lang.Integer) value).intValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _fontStyle\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.IntValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.IntValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ typeValidator.setMinInclusive(-2147483648);\r
+ typeValidator.setMaxInclusive(2147483647);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _viewName\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_viewName", "viewName", org.exolab.castor.xml.NodeType.Attribute);\r
+ desc.setImmutable(true);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ return target.getViewName();\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ target.setViewName( (java.lang.String) value);\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _viewName\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.StringValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.StringValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ typeValidator.setWhiteSpace("preserve");\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _sequenceSetId\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_sequenceSetId", "sequenceSetId", org.exolab.castor.xml.NodeType.Attribute);\r
+ desc.setImmutable(true);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ return target.getSequenceSetId();\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ target.setSequenceSetId( (java.lang.String) value);\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _sequenceSetId\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.StringValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.StringValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ typeValidator.setWhiteSpace("preserve");\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _gatheredViews\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_gatheredViews", "gatheredViews", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasGatheredViews()) { return null; }\r
+ return (target.getGatheredViews() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteGatheredViews();\r
+ return;\r
+ }\r
+ target.setGatheredViews( ((java.lang.Boolean) value).booleanValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _gatheredViews\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _textCol1\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_textCol1", "textCol1", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasTextCol1()) { return null; }\r
+ return new java.lang.Integer(target.getTextCol1());\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteTextCol1();\r
+ return;\r
+ }\r
+ target.setTextCol1( ((java.lang.Integer) value).intValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _textCol1\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.IntValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.IntValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ typeValidator.setMinInclusive(-2147483648);\r
+ typeValidator.setMaxInclusive(2147483647);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _textCol2\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_textCol2", "textCol2", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasTextCol2()) { return null; }\r
+ return new java.lang.Integer(target.getTextCol2());\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteTextCol2();\r
+ return;\r
+ }\r
+ target.setTextCol2( ((java.lang.Integer) value).intValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _textCol2\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.IntValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.IntValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ typeValidator.setMinInclusive(-2147483648);\r
+ typeValidator.setMaxInclusive(2147483647);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _textColThreshold\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_textColThreshold", "textColThreshold", org.exolab.castor.xml.NodeType.Attribute);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ if (!target.hasTextColThreshold()) { return null; }\r
+ return new java.lang.Integer(target.getTextColThreshold());\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteTextColThreshold();\r
+ return;\r
+ }\r
+ target.setTextColThreshold( ((java.lang.Integer) value).intValue());\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return null;\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _textColThreshold\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.IntValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.IntValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ typeValidator.setMinInclusive(-2147483648);\r
+ typeValidator.setMaxInclusive(2147483647);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _id\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_id", "id", org.exolab.castor.xml.NodeType.Attribute);\r
+ super.setIdentity(desc);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ return target.getId();\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ target.setId( (java.lang.String) value);\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return new java.lang.String();\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _id\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ org.exolab.castor.xml.validators.IdValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.IdValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- initialize element descriptors\r
+ \r
+ //-- _annotationColours\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(jalview.schemabinding.version2.AnnotationColours.class, "_annotationColours", "AnnotationColours", org.exolab.castor.xml.NodeType.Element);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ return target.getAnnotationColours();\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ target.setAnnotationColours( (jalview.schemabinding.version2.AnnotationColours) value);\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return new jalview.schemabinding.version2.AnnotationColours();\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setNameSpaceURI("www.jalview.org");\r
+ desc.setMultivalued(false);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _annotationColours\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ }\r
+ desc.setValidator(fieldValidator);\r
+ //-- _hiddenColumnsList\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(jalview.schemabinding.version2.HiddenColumns.class, "_hiddenColumnsList", "hiddenColumns", org.exolab.castor.xml.NodeType.Element);\r
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ public java.lang.Object getValue( java.lang.Object object ) \r
+ throws IllegalStateException\r
+ {\r
+ Viewport target = (Viewport) object;\r
+ return target.getHiddenColumns();\r
+ }\r
+ public void setValue( java.lang.Object object, java.lang.Object value) \r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ target.addHiddenColumns( (jalview.schemabinding.version2.HiddenColumns) value);\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public void resetValue(Object object) throws IllegalStateException, IllegalArgumentException {\r
+ try {\r
+ Viewport target = (Viewport) object;\r
+ target.removeAllHiddenColumns();\r
+ } catch (java.lang.Exception ex) {\r
+ throw new IllegalStateException(ex.toString());\r
+ }\r
+ }\r
+ public java.lang.Object newInstance(java.lang.Object parent) {\r
+ return new jalview.schemabinding.version2.HiddenColumns();\r
+ }\r
+ };\r
+ desc.setHandler(handler);\r
+ desc.setNameSpaceURI("www.jalview.org");\r
+ desc.setMultivalued(true);\r
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _hiddenColumnsList\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ fieldValidator.setMinOccurs(0);\r
+ { //-- local scope\r
+ }\r
+ desc.setValidator(fieldValidator);\r