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 JoniRegularExpressionFactorygetRegularExpression(String regex) Gets aRegularExpression.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.networknt.schema.regex.RegularExpressionFactory
getRegularExpression
-
Constructor Details
-
JoniRegularExpressionFactory
public JoniRegularExpressionFactory()
-
-
Method Details
-
getInstance
-
getRegularExpression
Description copied from interface:RegularExpressionFactoryGets aRegularExpression.- Specified by:
getRegularExpressionin interfaceRegularExpressionFactory- Parameters:
regex- the regular expression text value- Returns:
- the regular expression
-