Interface RegularExpressionFactory

All Known Implementing Classes:
AllowRegularExpressionFactory, ECMAScriptRegularExpressionFactory, GraalJSRegularExpressionFactory, JDKRegularExpressionFactory, JoniRegularExpressionFactory

public interface RegularExpressionFactory
Factory for RegularExpression.
  • Method Details

    • getRegularExpression

      RegularExpression getRegularExpression(String regex)
      Parameters:
      regex - the regular expression text value
      Returns:
      the regular expression
    • getRegularExpression

      default RegularExpression getRegularExpression(String regex, SchemaContext schemaContext)
      Gets a RegularExpression in the context of the schema being evaluated.
      Parameters:
      regex - the regular expression text value
      schemaContext - the schema context
      Returns:
      the regular expression