public abstract class AbstractParameterizable extends Object implements Parameterizable
Modifier | Constructor and Description |
---|---|
protected |
AbstractParameterizable(Collection<String> names)
Simple constructor.
|
protected |
AbstractParameterizable(String... names)
Simple constructor.
|
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.
|
protected AbstractParameterizable(String... names)
names
- names of the supported parametersprotected AbstractParameterizable(Collection<String> names)
names
- names of the supported parameterspublic 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)
name
- name of the parameter to checkUnknownParameterException
- if the parameter is not supportedisSupported(String)
Copyright © 2019 CNES. All rights reserved.