Package com.networknt.schema.regex
Class AllowRegularExpressionFactory
- java.lang.Object
-
- com.networknt.schema.regex.AllowRegularExpressionFactory
-
- All Implemented Interfaces:
RegularExpressionFactory
public class AllowRegularExpressionFactory extends Object implements RegularExpressionFactory
RegularExpressionFactory
that allows regular expressions to be used.
-
-
Constructor Summary
Constructors Constructor Description AllowRegularExpressionFactory(RegularExpressionFactory delegate, Predicate<String> allowed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegularExpression
getRegularExpression(String regex)
Gets aRegularExpression
.
-
-
-
Constructor Detail
-
AllowRegularExpressionFactory
public AllowRegularExpressionFactory(RegularExpressionFactory delegate, Predicate<String> allowed)
-
-
Method Detail
-
getRegularExpression
public RegularExpression getRegularExpression(String regex)
Description copied from interface:RegularExpressionFactory
Gets aRegularExpression
.- Specified by:
getRegularExpression
in interfaceRegularExpressionFactory
- Parameters:
regex
- the regular expression text value- Returns:
- the regular expression
-
-