public class ParameterSupportBase extends Object implements ParameterSupport
ParameterSupport
implementation.Modifier | Constructor and Description |
---|---|
protected |
ParameterSupportBase(String prefix,
String suffix) |
protected |
ParameterSupportBase(String prefix,
String suffix,
Map<String,String> parameters) |
Modifier and Type | Method and Description |
---|---|
void |
allowDotInName()
Call this method to allow dots in parameter names, which is disabled by default.
|
ExpressionEvaluator |
getExpressionEvaluator()
Returns an
ExpressionEvaluator created with the parameters of this ParameterSupport . |
Collection<String> |
getParameterNames()
Returns the names of all parameters this
ParameterSupport is aware of. |
Map<String,String> |
getParameters()
Returns an immutable
Map containing all parameters this ParameterSupport is aware of. |
List<String> |
getParameters(String source)
Returns the names of all parameters used in the given
String , without affixes. |
String |
replaceParameters(String source)
Replaces all parameters in the given
String and returns a new one containing the replacements. |
protected ParameterSupportBase(String prefix, String suffix, Map<String,String> parameters)
public void allowDotInName()
public final String replaceParameters(String source)
ParameterSupport
String
and returns a new one containing the replacements.replaceParameters
in interface ParameterSupport
source
- the String
to replace the parameters inString
with the parameters replacedpublic final List<String> getParameters(String source)
ParameterSupport
String
, without affixes.getParameters
in interface ParameterSupport
source
- the String
to search the parameters forString
, without affixes.public final Collection<String> getParameterNames()
ParameterSupport
ParameterSupport
is aware of.getParameterNames
in interface ParameterSupport
ParameterSupport
is aware ofpublic final Map<String,String> getParameters()
ParameterSupport
Map
containing all parameters this ParameterSupport
is aware of.getParameters
in interface ParameterSupport
Map
containing all parameters this ParameterSupport
is aware of.public final ExpressionEvaluator getExpressionEvaluator()
ParameterSupport
ExpressionEvaluator
created with the parameters of this ParameterSupport
.getExpressionEvaluator
in interface ParameterSupport
ExpressionEvaluator
created with the parameters of this ParameterSupport
.Copyright © 2011–2017 aiticon GmbH. All rights reserved.