Package org.appng.api
Interface ParameterSupport
-
- All Known Implementing Classes:
DollarParameterSupport,HashParameterSupport,ParameterSupportBase
public interface ParameterSupportSupports finding and replacing parameters inside aString. The parameters need to use a prefix and a suffix so they can be found.- Author:
- Matthias Müller
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExpressionEvaluatorgetExpressionEvaluator()Returns anExpressionEvaluatorcreated with the parameters of thisParameterSupport.Collection<String>getParameterNames()Returns the names of all parameters thisParameterSupportis aware of.Map<String,String>getParameters()Returns an immutableMapcontaining all parameters thisParameterSupportis aware of.List<String>getParameters(String source)Returns the names of all parameters used in the givenString, without affixes.StringreplaceParameters(String source)Replaces all parameters in the givenStringand returns a new one containing the replacements.
-
-
-
Method Detail
-
replaceParameters
String replaceParameters(String source)
Replaces all parameters in the givenStringand returns a new one containing the replacements.- Parameters:
source- theStringto replace the parameters in- Returns:
- a new
Stringwith the parameters replaced
-
getParameters
List<String> getParameters(String source)
Returns the names of all parameters used in the givenString, without affixes.- Parameters:
source- theStringto search the parameters for- Returns:
- the names of all parameters used in the given
String, without affixes.
-
getParameterNames
Collection<String> getParameterNames()
Returns the names of all parameters thisParameterSupportis aware of.- Returns:
- the names of all parameters this
ParameterSupportis aware of
-
getParameters
Map<String,String> getParameters()
Returns an immutableMapcontaining all parameters thisParameterSupportis aware of.- Returns:
- an immutable
Mapcontaining all parameters thisParameterSupportis aware of.
-
getExpressionEvaluator
ExpressionEvaluator getExpressionEvaluator()
Returns anExpressionEvaluatorcreated with the parameters of thisParameterSupport.- Returns:
- an
ExpressionEvaluatorcreated with the parameters of thisParameterSupport.
-
-