2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
3 * Copyright (C) 2014 The Jalview Authors
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
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
21 package jalview.ws.params;
23 import java.io.IOException;
24 import java.util.List;
26 public interface ParamDatastoreI
29 public List<WsParamSetI> getPresets();
31 public WsParamSetI getPreset(String name);
33 public List<ArgumentI> getServiceParameters();
35 public boolean presetExists(String name);
37 public void deletePreset(String name);
40 * writes or overwrites the record for a modifiable WsParamSetI entry with a
41 * given name in the datastore.
46 * may throw an illegal argument RunTimeException if the presetName
47 * overwrites an existing, unmodifiable preset.
49 public void storePreset(String presetName, String text,
50 List<ArgumentI> jobParams);
53 * update an existing instance with a new name, descriptive text and
61 public void updatePreset(String oldName, String presetName, String text,
62 List<ArgumentI> jobParams);
65 * factory method - builds a service specific parameter object using the given
72 * @param parameterfile
73 * Service specific jalview parameter file (as returned from new
75 * @return null or valid WsParamSetI object for this service.
78 public WsParamSetI parseServiceParameterFile(String name,
79 String description, String[] serviceURL, String parameters)
83 * create the service specific parameter file for this pset object.
86 * @return string representation of the parameters specified by this set.
89 public String generateServiceParameterFile(WsParamSetI pset)