Class RegexEngineImpl
java.lang.Object
com.thaiopensource.datatype.xsd.regex.java.RegexEngineImpl
- All Implemented Interfaces:
RegexEngine
An implementation of
RegexEngine using the JDK 1.4+ java.util.regex
package.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RegexEngineImpl
public RegexEngineImpl()
-
-
Method Details
-
compile
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:
str- a String containing a regular expression- Returns:
- a
Regexforstr - Throws:
RegexSyntaxException- ifstris not a valid regular expression
-