Class DefaultControlExpressionParser

java.lang.Object
org.citrusframework.validation.matcher.DefaultControlExpressionParser
All Implemented Interfaces:
ControlExpressionParser

public class DefaultControlExpressionParser extends Object implements ControlExpressionParser
Default implementation of control expression parser.
Since:
2.5
Author:
Martin Maher
  • Constructor Details

    • DefaultControlExpressionParser

      public DefaultControlExpressionParser()
  • Method Details

    • extractControlValues

      public List<String> extractControlValues(String controlExpression, Character delimiter)
      Description copied from interface: ControlExpressionParser
      Some validation matchers can optionally contain one or more control values nested within a control expression. Matchers implementing this interface should take care of extracting the individual control values from the expression.
      For example, the org.citrusframework.validation.matcher.core.DateRangeValidationMatcher expects between 2 to 3 control values (dateFrom, dateTo and optionally datePattern) to be provided. It's ControlExpressionParser would be expected to parse the control expression, returning each individual control value for each nested parameter found within the control expression.
      Specified by:
      extractControlValues in interface ControlExpressionParser
      Parameters:
      controlExpression - the control expression to be parsed
      delimiter - the delimiter to use. When NULL the ControlExpressionParser.DEFAULT_DELIMITER is assumed.
      Returns: