X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=webservices%2Fcompbio%2Fws%2Fserver%2FSequenceAnnotationService.java;h=afe0bf2fe38a908fb9440e661dcdad8f378fadd2;hb=68fe46f278b4ec408d6c68677bd56199aac749b3;hp=21fcb24853f39b04afbd1c22d8acb44c39ad1dfe;hpb=1e1c3681ba25ee1797a46f871b8c80f259afe2ca;p=jabaws.git diff --git a/webservices/compbio/ws/server/SequenceAnnotationService.java b/webservices/compbio/ws/server/SequenceAnnotationService.java index 21fcb24..afe0bf2 100644 --- a/webservices/compbio/ws/server/SequenceAnnotationService.java +++ b/webservices/compbio/ws/server/SequenceAnnotationService.java @@ -60,20 +60,20 @@ public abstract class SequenceAnnotationService extends GenericMetadataServic return WSUtil.getAnnotation(jobId, log); } + @SuppressWarnings("unchecked") public String analize(List sequences) - throws UnsupportedRuntimeException, LimitExceededException, - JobSubmissionException { + throws UnsupportedRuntimeException, LimitExceededException, JobSubmissionException { WSUtil.validateFastaInput(sequences); ConfiguredExecutable confIUPred = init(sequences); - return WSUtil.analize(sequences, confIUPred, log, "analize", - getLimit("")); + return WSUtil.analize(sequences, confIUPred, log, "analize", getLimit("")); } + @SuppressWarnings("unchecked") public String customAnalize(List sequences, List> options) throws UnsupportedRuntimeException, LimitExceededException, JobSubmissionException, WrongParameterException { - WSUtil.validateAAConInput(sequences); + WSUtil.validateFastaInput(sequences); ConfiguredExecutable confAACon = init(sequences); // Could not do that! Space separated values // will all be treated as keys! thus duplicates removed @@ -81,22 +81,20 @@ public abstract class SequenceAnnotationService extends GenericMetadataServic List params = WSUtil.getCommands(options, AACon.KEY_VALUE_SEPARATOR); confAACon.addParameters(params); - return WSUtil.analize(sequences, confAACon, log, "customAnalize", - getLimit("")); + return WSUtil.analize(sequences, confAACon, log, "customAnalize", getLimit("")); } public String presetAnalize(List sequences, Preset preset) - throws UnsupportedRuntimeException, LimitExceededException, - JobSubmissionException, WrongParameterException { + throws UnsupportedRuntimeException, LimitExceededException, JobSubmissionException, WrongParameterException { WSUtil.validateAAConInput(sequences); if (preset == null) { throw new WrongParameterException("Preset must be provided!"); } + @SuppressWarnings("unchecked") ConfiguredExecutable confAAcon = init(sequences); confAAcon.addParameters(preset.getOptions()); + @SuppressWarnings("unchecked") Limit limit = getLimit(preset.getName()); - return WSUtil - .analize(sequences, confAAcon, log, "presetAnalize", limit); + return WSUtil.analize(sequences, confAAcon, log, "presetAnalize", limit); } - }