private boolean _has_score;\r
\r
/**\r
+ * Field _visible\r
+ */\r
+ private boolean _visible;\r
+\r
+ /**\r
+ * keeps track of state for field: _visible\r
+ */\r
+ private boolean _has_visible;\r
+\r
+ /**\r
* Field _annotationElementList\r
*/\r
private java.util.Vector _annotationElementList;\r
} //-- void deleteScoreOnly() \r
\r
/**\r
+ * Method deleteVisible\r
+ * \r
+ */\r
+ public void deleteVisible()\r
+ {\r
+ this._has_visible= false;\r
+ } //-- void deleteVisible() \r
+\r
+ /**\r
* Method enumerateAnnotationElement\r
* \r
* \r
} //-- jalview.schemabinding.version2.ThresholdLine getThresholdLine() \r
\r
/**\r
+ * Returns the value of field 'visible'.\r
+ * \r
+ * @return boolean\r
+ * @return the value of field 'visible'.\r
+ */\r
+ public boolean getVisible()\r
+ {\r
+ return this._visible;\r
+ } //-- boolean getVisible() \r
+\r
+ /**\r
* Method hasGraph\r
* \r
* \r
} //-- boolean hasScoreOnly() \r
\r
/**\r
+ * Method hasVisible\r
+ * \r
+ * \r
+ * \r
+ * @return boolean\r
+ */\r
+ public boolean hasVisible()\r
+ {\r
+ return this._has_visible;\r
+ } //-- boolean hasVisible() \r
+\r
+ /**\r
* Method isValid\r
* \r
* \r
} //-- void setThresholdLine(jalview.schemabinding.version2.ThresholdLine) \r
\r
/**\r
+ * Sets the value of field 'visible'.\r
+ * \r
+ * @param visible the value of field 'visible'.\r
+ */\r
+ public void setVisible(boolean visible)\r
+ {\r
+ this._visible = visible;\r
+ this._has_visible = true;\r
+ } //-- void setVisible(boolean) \r
+\r
+ /**\r
* Method unmarshal\r
* \r
* \r
fieldValidator.setValidator(typeValidator);\r
}\r
desc.setValidator(fieldValidator);\r
+ //-- _visible\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_visible", "visible", 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
+ Annotation target = (Annotation) object;\r
+ if(!target.hasVisible())\r
+ return null;\r
+ return (target.getVisible() ? 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
+ Annotation target = (Annotation) object;\r
+ // if null, use delete method for optional primitives \r
+ if (value == null) {\r
+ target.deleteVisible();\r
+ return;\r
+ }\r
+ target.setVisible( ((java.lang.Boolean)value).booleanValue());\r
+ }\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
+ addFieldDescriptor(desc);\r
+ \r
+ //-- validation code for: _visible\r
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+ { //-- local scope\r
+ BooleanValidator typeValidator = new BooleanValidator();\r
+ fieldValidator.setValidator(typeValidator);\r
+ }\r
+ desc.setValidator(fieldValidator);\r
//-- initialize element descriptors\r
\r
//-- _annotationElementList\r