1 package jalview.ws.params;
3 import java.io.IOException;
6 public interface ParamDatastoreI
9 public List<WsParamSetI> getPresets();
11 public WsParamSetI getPreset(String name);
13 public List<ArgumentI> getServiceParameters();
15 public boolean presetExists(String name);
17 public void deletePreset(String name);
20 * writes or overwrites the record for a modifiable WsParamSetI entry with a given name in the
26 * may throw an illegal argument RunTimeException if the presetName
27 * overwrites an existing, unmodifiable preset.
29 public void storePreset(String presetName, String text,
30 List<ArgumentI> jobParams);
33 * update an existing instance with a new name, descriptive text and parameters.
39 public void updatePreset(String oldName, String presetName, String text,
40 List<ArgumentI> jobParams);
43 * factory method - builds a service specific parameter object using the given
50 * @param parameterfile
51 * Service specific jalview parameter file (as returned from new
53 * @return null or valid WsParamSetI object for this service.
56 public WsParamSetI parseServiceParameterFile(String name,
57 String description, String[] serviceURL, String parameters)
61 * create the service specific parameter file for this pset object.
64 * @return string representation of the parameters specified by this set.
67 public String generateServiceParameterFile(WsParamSetI pset)