public interface ParameterizedPatternBuilder extends ParameterizedPattern
Parameterized regular expression Pattern.| Modifier and Type | Method and Description |
|---|---|
String |
build(List<Object> values)
Use this expression's pattern to build a
String from the given values. |
String |
build(Map<String,Object> parameters)
Use this expression to build a
String from given values. |
String |
build(Rewrite event,
EvaluationContext context)
Use this expression to build a
String from this expression's pattern. |
String |
build(Rewrite event,
EvaluationContext context,
Transposition<String> transposition)
Use this expression to build a
String from this expression's pattern. |
ParameterizedPatternParser |
getParser()
Return the
ParameterizedPatternParser corresponding to the pattern with which this
ParameterizedPatternBuilder was constructed. |
boolean |
isParameterComplete(Rewrite event,
EvaluationContext context)
Returns
true if all parameters required by this builder are available; otherwise, returns
false. |
getPatterngetRequiredParameterNames, setParameterStoreParameterizedPatternParser getParser()
ParameterizedPatternParser corresponding to the pattern with which this
ParameterizedPatternBuilder was constructed.String build(Rewrite event, EvaluationContext context) throws ParameterizationException
String from this expression's pattern. Extract needed values from the
EvaluationContext.{@link - ParameterizationException} when a required parameter is missing.ParameterizationExceptionString build(Rewrite event, EvaluationContext context, Transposition<String> transposition) throws ParameterizationException
String from this expression's pattern. Extract needed values from the
EvaluationContext. The given Transposition instances will be performed on each parameter in the
order that they were provided.{@link - ParameterizationException} when a required parameter is missing.ParameterizationExceptionString build(Map<String,Object> parameters) throws ParameterizationException
String from given values.{@link - ParameterizationException} when a required parameter is missing.ParameterizationExceptionString build(List<Object> values) throws ParameterizationException
String from the given values. Enforces that the number of values
passed must equal the number of expression parameters. Does not apply any configured Transposition
instances.{@link - ParameterizationException} when a required parameter is missing.ParameterizationExceptionboolean isParameterComplete(Rewrite event, EvaluationContext context)
true if all parameters required by this builder are available; otherwise, returns
false.Copyright © 2014 OCPsoft. All Rights Reserved.