Class RegexEngineImpl
- java.lang.Object
-
- com.thaiopensource.datatype.xsd.regex.java.RegexEngineImpl
-
- All Implemented Interfaces:
RegexEngine
public class RegexEngineImpl extends java.lang.Object implements RegexEngine
An implementation ofRegexEngineusing the JDK 1.4+java.util.regexpackage.
-
-
Constructor Summary
Constructors Constructor Description RegexEngineImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Regexcompile(java.lang.String str)Compiles a string containing a regular expression into aRegexobject.
-
-
-
Method Detail
-
compile
public Regex compile(java.lang.String str) 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:
str- a String containing a regular expression- Returns:
- a
Regexforstr - Throws:
RegexSyntaxException- ifstris not a valid regular expression
-
-