Modifier and Type | Class and Description |
---|---|
static class |
Parameter.ParametersProcessor
Defines the object which will process parameters.
|
Modifier and Type | Field and Description |
---|---|
protected String |
key
Key of the parameter.
|
protected Object |
value
Value of the parameter.
|
Constructor and Description |
---|
Parameter(String key,
Object value)
Build a new parameter.
|
Modifier and Type | Method and Description |
---|---|
static Properties |
exportParameters(Object env) |
String |
getKey()
Get the key of this parameter.
|
<T> T |
getValue()
Get the value of this parameter.
|
static Parameter |
parameter(String key,
Object value)
Shortcut for "new Parameter(key,value)".
|
static void |
processParameters(Object env,
InputStream in,
boolean xml) |
static void |
processParameters(Object env,
Parameter... params)
Process parameters.
|
static void |
processParameters(Object env,
Properties prop) |
static void |
processParameters(Object env,
String propertiesPath) |
public static final Parameter parameter(String key, Object value)
key
- key of the parametervalue
- value of the parameterpublic static void processParameters(Object env, Parameter... params) throws InvalidParameterException, MissingParameterException
env
- object to set attributesparams
- parametersInvalidParameterException
MissingParameterException
public static void processParameters(Object env, Properties prop) throws InvalidParameterException, MissingParameterException
public static void processParameters(Object env, String propertiesPath) throws InvalidParameterException, MissingParameterException, InvalidPropertiesFormatException, IOException
public static void processParameters(Object env, InputStream in, boolean xml) throws InvalidParameterException, MissingParameterException, InvalidPropertiesFormatException, IOException
public static Properties exportParameters(Object env)
public <T> T getValue()
T
- type asked for the valueWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses