public abstract class AbstractParameterizable extends java.lang.Object implements Parameterizable
| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection<java.lang.String> |
parametersNames
List of the parameters names.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractParameterizable(java.util.Collection<java.lang.String> names)
Simple constructor.
|
protected |
AbstractParameterizable(java.lang.String... names)
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
complainIfNotSupported(java.lang.String name)
Check if a parameter is supported and throw an IllegalArgumentException if not.
|
java.util.Collection<java.lang.String> |
getParametersNames()
Get the names of the supported parameters.
|
boolean |
isSupported(java.lang.String name)
Check if a parameter is supported.
|
private final java.util.Collection<java.lang.String> parametersNames
protected AbstractParameterizable(java.lang.String... names)
names - names of the supported parametersprotected AbstractParameterizable(java.util.Collection<java.lang.String> names)
names - names of the supported parameterspublic java.util.Collection<java.lang.String> getParametersNames()
getParametersNames in interface ParameterizableParameterizable.isSupported(String)public boolean isSupported(java.lang.String name)
Supported parameters are those listed by Parameterizable.getParametersNames().
isSupported in interface Parameterizablename - parameter name to checkParameterizable.getParametersNames()public void complainIfNotSupported(java.lang.String name)
throws UnknownParameterException
name - name of the parameter to checkUnknownParameterException - if the parameter is not supportedisSupported(String)Copyright (c) 2003-2015 Apache Software Foundation