Package com.networknt.schema.regex
Interface RegularExpressionFactory
-
- All Known Implementing Classes:
AllowRegularExpressionFactory,ECMAScriptRegularExpressionFactory,GraalJSRegularExpressionFactory,JDKRegularExpressionFactory,JoniRegularExpressionFactory
public interface RegularExpressionFactoryFactory forRegularExpression.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RegularExpressiongetRegularExpression(String regex)Gets aRegularExpression.default RegularExpressiongetRegularExpression(String regex, SchemaContext schemaContext)Gets aRegularExpressionin the context of the schema being evaluated.
-
-
-
Method Detail
-
getRegularExpression
RegularExpression getRegularExpression(String regex)
Gets aRegularExpression.- Parameters:
regex- the regular expression text value- Returns:
- the regular expression
-
getRegularExpression
default RegularExpression getRegularExpression(String regex, SchemaContext schemaContext)
Gets aRegularExpressionin the context of the schema being evaluated.- Parameters:
regex- the regular expression text valueschemaContext- the schema context- Returns:
- the regular expression
-
-