Package com.networknt.schema.regex
Class JoniRegularExpressionFactory
- java.lang.Object
-
- com.networknt.schema.regex.JoniRegularExpressionFactory
-
- All Implemented Interfaces:
RegularExpressionFactory
public class JoniRegularExpressionFactory extends java.lang.Object implements RegularExpressionFactory
JoniRegularExpressionFactory.This requires a dependency on org.jruby.joni:joni which along with its dependency libraries are 2 MB.
-
-
Field Summary
Fields Modifier and Type Field Description private static JoniRegularExpressionFactoryINSTANCE
-
Constructor Summary
Constructors Constructor Description JoniRegularExpressionFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JoniRegularExpressionFactorygetInstance()RegularExpressiongetRegularExpression(java.lang.String regex)Gets aRegularExpression.
-
-
-
Field Detail
-
INSTANCE
private static final JoniRegularExpressionFactory INSTANCE
-
-
Method Detail
-
getInstance
public static JoniRegularExpressionFactory getInstance()
-
getRegularExpression
public RegularExpression getRegularExpression(java.lang.String regex)
Description copied from interface:RegularExpressionFactoryGets aRegularExpression.- Specified by:
getRegularExpressionin interfaceRegularExpressionFactory- Parameters:
regex- the regular expression text value- Returns:
- the regular expression
-
-