1 package com.thaiopensource.datatype.xsd.regex;2 3 /**4 * A regular expression that can be matched against a string.5 * @see RegexEngine6 */7 public interface Regex {8 /**9 * Tests whether this regular expression matches a string.10 *11 * @param str the String to be tested12 * @return <code>true</code> if <code>str</code> matches this regular expression,13 * <code>false</code> otherwise14 */15 boolean matches(String str);16 }17