Package com.networknt.schema.regex
Interface RegularExpressionFactory
- All Known Implementing Classes:
AllowRegularExpressionFactory,ECMAScriptRegularExpressionFactory,GraalJSRegularExpressionFactory,JDKRegularExpressionFactory,JoniRegularExpressionFactory
public interface RegularExpressionFactory
Factory for
RegularExpression.-
Method Summary
Modifier and TypeMethodDescriptiongetRegularExpression(String regex) Gets aRegularExpression.default RegularExpressiongetRegularExpression(String regex, SchemaContext schemaContext) Gets aRegularExpressionin the context of the schema being evaluated.
-
Method Details
-
getRegularExpression
Gets aRegularExpression.- Parameters:
regex- the regular expression text value- Returns:
- the regular expression
-
getRegularExpression
Gets aRegularExpressionin the context of the schema being evaluated.- Parameters:
regex- the regular expression text valueschemaContext- the schema context- Returns:
- the regular expression
-