import java.util.ArrayList;
import java.util.List;
-public abstract class AutoCalcSetting
+public class AutoCalcSetting
{
protected boolean autoUpdate;
}
/**
+ * default WsParamFile generator method - clients with custom formats should
+ * override and implement their own
*
* @return stringified representation of the parameters for this setting
*/
- public abstract String getWsParamFile();
-
+ public String getWsParamFile()
+ {
+ List<ArgumentI> opts = null;
+ if (jobArgset != null)
+ {
+ opts = jobArgset;
+ }
+ else
+ {
+ if (preset != null)
+ {
+ opts = preset.getArguments();
+ }
+ }
+ if (opts == null || opts.size() == 0)
+ {
+ return "";
+ }
+ StringBuffer pset = new StringBuffer();
+ for (ArgumentI ps : opts)
+ {
+ pset.append(ps.getName() + "\t" + ps.getValue());
+ pset.append("\n");
+ }
+ return pset.toString();
+ }
public ServiceWithParameters getService()
{
return service;