001 package com.thaiopensource.datatype.xsd.regex;
002
003 /**
004 * A regular expression that can be matched against a string.
005 * @see RegexEngine
006 */
007 public interface Regex {
008 /**
009 * Tests whether this regular expression matches a string.
010 *
011 * @param str the String to be tested
012 * @return <code>true</code> if <code>str</code> matches this regular expression,
013 * <code>false</code> otherwise
014 */
015 boolean matches(String str);
016 }