org.apache.commons.digester

Class SimpleRegexMatcher

public class SimpleRegexMatcher extends RegexMatcher

Simple regex pattern matching algorithm.

This uses just two wildcards:

Escaping these wildcards is not supported .

Since: 1.5

Method Summary
LoggetLog()
Gets the Log implementation.
booleanmatch(String basePattern, String regexPattern)
Matches using simple regex algorithm.
voidsetLog(Log log)
Sets the current Log implementation used by this class.

Method Detail

getLog

public Log getLog()
Gets the Log implementation.

match

public boolean match(String basePattern, String regexPattern)
Matches using simple regex algorithm.

Parameters: basePattern the standard digester path representing the element regexPattern the regex pattern the path will be tested against

Returns: true if the given pattern matches the given path

setLog

public void setLog(Log log)
Sets the current Log implementation used by this class.
Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved.