1 package jalview.ws.rest.params;
3 import jalview.datamodel.AlignmentI;
4 import jalview.ws.params.ArgumentI;
5 import jalview.ws.params.OptionI;
6 import jalview.ws.rest.InputType;
7 import jalview.ws.rest.RestJob;
8 import jalview.ws.rest.RestServiceDescription;
9 import jalview.ws.rest.InputType.molType;
11 import java.io.UnsupportedEncodingException;
12 import java.util.ArrayList;
13 import java.util.List;
15 import org.apache.http.entity.mime.content.ContentBody;
18 * format a tree for input to a rest service
22 public class Tree extends InputType {
25 super(new Class[] { jalview.analysis.NJTree.class} );
28 // TODO specify modifiers for tree output format
30 public ContentBody formatForInput(RestJob rj) throws UnsupportedEncodingException
32 // TODO: implement tree inputType
33 /*rj.getTreeForInput(token);
34 return new StringBody(new ) */
35 throw new Error("Tree InputType not yet implemented");
38 public String getURLtokenPrefix()
44 public List<String> getURLEncodedParameter()
46 ArrayList<String> prms = new ArrayList<String>();
47 super.addBaseParams(prms);
52 public boolean configureProperty(String tok, String val,
53 StringBuffer warnings)
59 public List<OptionI> getOptions()
61 return getBaseOptions();