JAL-715 - allow rest service attributes to be exported and imported as a | separated...
[jalview.git] / src / jalview / ws / rest / params / Tree.java
index 91fab40..69d2f58 100644 (file)
@@ -3,8 +3,12 @@ package jalview.ws.rest.params;
 import jalview.datamodel.AlignmentI;
 import jalview.ws.rest.InputType;
 import jalview.ws.rest.RestJob;
+import jalview.ws.rest.RestServiceDescription;
+import jalview.ws.rest.InputType.molType;
 
 import java.io.UnsupportedEncodingException;
+import java.util.ArrayList;
+import java.util.List;
 
 import org.apache.http.entity.mime.content.ContentBody;
 
@@ -13,7 +17,7 @@ import org.apache.http.entity.mime.content.ContentBody;
  * @author JimP
  *
  */
-class Tree extends InputType {
+public class Tree extends InputType {
   public Tree()
   {
     super(new Class[] { jalview.analysis.NJTree.class} );
@@ -29,5 +33,24 @@ class Tree extends InputType {
     throw new Error("Tree InputType not yet implemented");
     //return null;
   }
+  public String getURLtokenPrefix()
+  {
+    return "NEWICK"; 
+  }
   
+  @Override
+  public List<String> getURLEncodedParameter()
+  {
+    ArrayList<String> prms = new ArrayList<String>();
+    super.addBaseParams(prms);
+    return prms;
+  }
+
+  @Override
+  public boolean configureProperty(String tok, String val,
+          StringBuffer warnings)
+  {
+    return true;
+  }
+
 }
\ No newline at end of file