total annotation score is a double for maximum precision.
[jalview.git] / src / jalview / schemabinding / version2 / AnnotationDescriptor.java
index e0061ae..28ceec1 100755 (executable)
@@ -343,7 +343,7 @@ public class AnnotationDescriptor extends org.exolab.castor.xml.util.XMLClassDes
         }\r
         desc.setValidator(fieldValidator);\r
         //-- _score\r
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(float.class, "_score", "score", org.exolab.castor.xml.NodeType.Attribute);\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Double.TYPE, "_score", "score", 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
@@ -351,7 +351,7 @@ public class AnnotationDescriptor extends org.exolab.castor.xml.util.XMLClassDes
                 Annotation target = (Annotation) object;\r
                 if(!target.hasScore())\r
                     return null;\r
-                return new java.lang.Float(target.getScore());\r
+                return new java.lang.Double(target.getScore());\r
             }\r
             public void setValue( java.lang.Object object, java.lang.Object value) \r
                 throws IllegalStateException, IllegalArgumentException\r
@@ -363,7 +363,7 @@ public class AnnotationDescriptor extends org.exolab.castor.xml.util.XMLClassDes
                         target.deleteScore();\r
                         return;\r
                     }\r
-                    target.setScore( ((java.lang.Float)value).floatValue());\r
+                    target.setScore( ((java.lang.Double)value).doubleValue());\r
                 }\r
                 catch (java.lang.Exception ex) {\r
                     throw new IllegalStateException(ex.toString());\r
@@ -379,7 +379,7 @@ public class AnnotationDescriptor extends org.exolab.castor.xml.util.XMLClassDes
         //-- validation code for: _score\r
         fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
         { //-- local scope\r
-            FloatValidator typeValidator = new FloatValidator();\r
+            DoubleValidator typeValidator = new DoubleValidator();\r
             fieldValidator.setValidator(typeValidator);\r
         }\r
         desc.setValidator(fieldValidator);\r