From: James Procter Date: Fri, 5 Jun 2015 10:02:25 +0000 (+0100) Subject: JAL-1601 JAL-715 allow format to be specified for uploading alignments X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=be6c6e7d865f1359b5075ed72778fb2217d32392;p=jalview.git JAL-1601 JAL-715 allow format to be specified for uploading alignments --- diff --git a/src/jalview/ws/rest/params/Alignment.java b/src/jalview/ws/rest/params/Alignment.java index 28f2628..a9255a3 100644 --- a/src/jalview/ws/rest/params/Alignment.java +++ b/src/jalview/ws/rest/params/Alignment.java @@ -58,6 +58,19 @@ public class Alignment extends InputType String format = "FASTA"; + public void setAlignmentFormat(String formatString) + { + if (jalview.io.FormatAdapter.isValidIOFormat(formatString, true)) + { + format = formatString; + } + else + { + throw new Error("Implemementation error: '" + formatString + + "' is not a valid format for writing alignment data."); + } + } + molType type; boolean jvsuffix = false;