2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3 * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
11 * Jalview is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty
13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
18 package jalview.ws.params;
20 import java.io.IOException;
21 import java.util.List;
23 public interface ParamDatastoreI
26 public List<WsParamSetI> getPresets();
28 public WsParamSetI getPreset(String name);
30 public List<ArgumentI> getServiceParameters();
32 public boolean presetExists(String name);
34 public void deletePreset(String name);
37 * writes or overwrites the record for a modifiable WsParamSetI entry with a
38 * given name in the datastore.
43 * may throw an illegal argument RunTimeException if the presetName
44 * overwrites an existing, unmodifiable preset.
46 public void storePreset(String presetName, String text,
47 List<ArgumentI> jobParams);
50 * update an existing instance with a new name, descriptive text and
58 public void updatePreset(String oldName, String presetName, String text,
59 List<ArgumentI> jobParams);
62 * factory method - builds a service specific parameter object using the given
69 * @param parameterfile
70 * Service specific jalview parameter file (as returned from new
72 * @return null or valid WsParamSetI object for this service.
75 public WsParamSetI parseServiceParameterFile(String name,
76 String description, String[] serviceURL, String parameters)
80 * create the service specific parameter file for this pset object.
83 * @return string representation of the parameters specified by this set.
86 public String generateServiceParameterFile(WsParamSetI pset)