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 ParameterizableParameterizable.isSupported(String)public boolean isSupported(String name)
Supported parameters are those listed by Parameterizable.getParametersNames().
isSupported in interface Parameterizablename - 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)Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.