Class RegexEngineImpl
java.lang.Object
com.thaiopensource.datatype.xsd.regex.xerces2.RegexEngineImpl
- All Implemented Interfaces:
RegexEngine
An implementation of
RegexEngine
using the Xerces 2 regular expression
implementation.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RegexEngineImpl
public RegexEngineImpl()
-
-
Method Details
-
compile
Description copied from interface:RegexEngine
Compiles a string containing a regular expression into aRegex
object. TheRegex
object can be used to test whether a string matches the regular expression.- Specified by:
compile
in interfaceRegexEngine
- Parameters:
expr
- a String containing a regular expression- Returns:
- a
Regex
forstr
- Throws:
RegexSyntaxException
- ifstr
is not a valid regular expression
-