+ // -- _version\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(\r
+ java.lang.String.class, "_version", "Version",\r
+ org.exolab.castor.xml.NodeType.Element);\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
+ JalviewUserColours target = (JalviewUserColours) object;\r
+ return target.getVersion();\r
+ }\r
+\r
+ public void setValue(java.lang.Object object, java.lang.Object value)\r
+ throws IllegalStateException, IllegalArgumentException\r
+ {\r
+ try\r
+ {\r
+ JalviewUserColours target = (JalviewUserColours) object;\r
+ target.setVersion((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: _version\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