public abstract class AbstractParameterizable extends Object implements Parameterizable
Modifier and Type | Method and Description |
---|---|
void |
complainIfNotSupported(String name)
Check if a parameter is supported and throw an IllegalArgumentException if not.
|
Collection<String> |
getParametersNames()
Get the names of the supported parameters.
|
boolean |
isSupported(String name)
Check if a parameter is supported.
|
public Collection<String> getParametersNames()
getParametersNames
in interface Parameterizable
Parameterizable.isSupported(String)
public boolean isSupported(String name)
Supported parameters are those listed by Parameterizable.getParametersNames()
.
isSupported
in interface Parameterizable
name
- parameter name to checkParameterizable.getParametersNames()
public void complainIfNotSupported(String name) throws UnknownParameterException
name
- name of the parameter to checkUnknownParameterException
- if the parameter is not supportedisSupported(String)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics