FileDocCategorySizeDatePackage
RegExpMatcher.javaAPI DocGlassfish v2 API2982Fri May 04 22:34:10 BST 2007com.sun.enterprise.admin.util

RegExpMatcher

public class RegExpMatcher extends Object implements IPatternMatcher

Fields Summary
private String
mPatternString
private String
mTestString
private static com.sun.enterprise.admin.util.SOMLocalStringsManager
localizedStrMgr
Constructors Summary
public RegExpMatcher(String patternString, String testString)
Creates new RegExpMatcher.


	 		  	
	
	    
	
        if (patternString == null || testString == null)
        {
			String msg = localizedStrMgr.getString( "admin.util.regexpmatcher_null_arg" );
            throw new IllegalArgumentException( msg );
        }
		mPatternString	= patternString;
		mTestString		= testString;
    
Methods Summary
public booleanmatches()

		Pattern strPattern	= Pattern.compile(mPatternString);
		Matcher matcher		= strPattern.matcher(mTestString);
		
		return ( matcher.matches() );