org.apache.commons.digester

Class RegexMatcher

Known Direct Subclasses:
SimpleRegexMatcher

public abstract class RegexMatcher
extends java.lang.Object

Regular expression matching strategy for RegexRules.

Since:
1.5

Method Summary

boolean
match(String pathPattern, String rulePattern)
Returns true if the given pattern matches the given path according to the regex algorithm that this strategy applies.

Method Details

match

public boolean match(String pathPattern,
                     String rulePattern)
Returns true if the given pattern matches the given path according to the regex algorithm that this strategy applies.

Parameters:
pathPattern - the standard digester path representing the element
rulePattern - the regex pattern the path will be tested against

Returns:
true if the given pattern matches the given path


Copyright (c) 2001-2004 - Apache Software Foundation