From be6c6e7d865f1359b5075ed72778fb2217d32392 Mon Sep 17 00:00:00 2001 From: James Procter Date: Fri, 5 Jun 2015 11:02:25 +0100 Subject: [PATCH] JAL-1601 JAL-715 allow format to be specified for uploading alignments --- src/jalview/ws/rest/params/Alignment.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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; -- 1.7.10.2