Package com.networknt.schema.regex
Class JoniRegularExpressionFactory
java.lang.Object
com.networknt.schema.regex.JoniRegularExpressionFactory
- All Implemented Interfaces:
RegularExpressionFactory
Joni
RegularExpressionFactory
.
This requires a dependency on org.jruby.joni:joni which along with its dependency libraries are 2 MB.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JoniRegularExpressionFactory
getRegularExpression
(String regex) Gets aRegularExpression
.
-
Constructor Details
-
JoniRegularExpressionFactory
public JoniRegularExpressionFactory()
-
-
Method Details
-
getInstance
-
getRegularExpression
Description copied from interface:RegularExpressionFactory
Gets aRegularExpression
.- Specified by:
getRegularExpression
in interfaceRegularExpressionFactory
- Parameters:
regex
- the regular expression text value- Returns:
- the regular expression
-