public WsParamSetI getPreset(String name);
+ /**
+ * Returns if the service has presets.
+ * @return {@code true} if service has presets
+ */
+ public default boolean hasPresets()
+ {
+ var presets = getPresets();
+ return presets != null && presets.size() > 0;
+ }
+
public List<ArgumentI> getServiceParameters();
+ /**
+ * Returns if the service has parameters.
+ * @return {@code true} if service has parameters
+ */
+ public default boolean hasParameters()
+ {
+ var parameters = getServiceParameters();
+ return parameters != null && parameters.size() > 0;
+ }
+
public boolean presetExists(String name);
public void deletePreset(String name);