update author list in license for (JAL-826)
[jalview.git] / src / jalview / ws / jws2 / dm / JabaValueConstrain.java
index d9a2968..b30326f 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6)
- * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
+ * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
  * 
  * This file is part of Jalview.
  * 
@@ -25,17 +25,23 @@ import jalview.ws.params.ValueConstrainI;
 public class JabaValueConstrain implements ValueConstrainI
 {
 
-  ValueConstrain vc=null;
+  ValueConstrain vc = null;
+
   public JabaValueConstrain(ValueConstrain vc)
   {
     this.vc = vc;
   }
 
   @Override
-  public Type getType()
+  public ValueType getType()
   {
-    // TODO: refactor to local Jalview parameter type system.
-    return vc.getType();
+    if (vc.getType()==ValueConstrain.Type.Float) {
+      return ValueType.Float;
+    }
+    if (vc.getType()==ValueConstrain.Type.Integer) {
+      return ValueType.Integer;
+    }
+    throw new Error("IMPLEMENTATION ERROR: jalview.ws.params.ValueConstrainI.ValueType does not support the JABAWS type :"+vc.toString());
   }
 
   @Override