Class RegexEngineImpl
- java.lang.Object
-
- com.thaiopensource.datatype.xsd.regex.xerces2.RegexEngineImpl
-
- All Implemented Interfaces:
RegexEngine
public class RegexEngineImpl extends java.lang.Object implements RegexEngine
An implementation ofRegexEngineusing the Xerces 2 regular expression implementation.
-
-
Constructor Summary
Constructors Constructor Description RegexEngineImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Regexcompile(java.lang.String expr)Compiles a string containing a regular expression into aRegexobject.
-
-
-
Method Detail
-
compile
public Regex compile(java.lang.String expr) throws RegexSyntaxException
Description copied from interface:RegexEngineCompiles a string containing a regular expression into aRegexobject. TheRegexobject can be used to test whether a string matches the regular expression.- Specified by:
compilein interfaceRegexEngine- Parameters:
expr- a String containing a regular expression- Returns:
- a
Regexforstr - Throws:
RegexSyntaxException- ifstris not a valid regular expression
-
-