Package com.networknt.schema.regex
Class AllowRegularExpressionFactory
java.lang.Object
com.networknt.schema.regex.AllowRegularExpressionFactory
- All Implemented Interfaces:
RegularExpressionFactory
RegularExpressionFactory that allows regular expressions to be used.-
Constructor Summary
ConstructorsConstructorDescriptionAllowRegularExpressionFactory(RegularExpressionFactory delegate, Predicate<String> allowed) -
Method Summary
-
Constructor Details
-
AllowRegularExpressionFactory
-
-
Method Details
-
getRegularExpression
Description copied from interface:RegularExpressionFactoryGets aRegularExpression.- Specified by:
getRegularExpressionin interfaceRegularExpressionFactory- Parameters:
regex- the regular expression text value- Returns:
- the regular expression
-