org.apache.cocoon.matching
Class AbstractWildcardMatcher

java.lang.Object
  extended byorg.apache.cocoon.util.AbstractLogEnabled
      extended byorg.apache.cocoon.matching.AbstractWildcardMatcher
All Implemented Interfaces:
org.apache.cocoon.matching.Matcher, ThreadSafe

public abstract class AbstractWildcardMatcher
extends org.apache.cocoon.util.AbstractLogEnabled
implements org.apache.cocoon.matching.Matcher, ThreadSafe

Base class for wildcard matchers

Version:
$Id: AbstractWildcardMatcher.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
 
Fields inherited from interface org.apache.cocoon.matching.Matcher
ROLE
 
Constructor Summary
AbstractWildcardMatcher()
           
 
Method Summary
protected abstract  String getMatchString(Map objectModel, Parameters parameters)
          Get the string to test against the wildcard expression.
 Map match(String pattern, Map objectModel, Parameters parameters)
          Match the prepared pattern against the result of getMatchString(Map, Parameters).
 
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractWildcardMatcher

public AbstractWildcardMatcher()
Method Detail

match

public Map match(String pattern,
                 Map objectModel,
                 Parameters parameters)
          throws org.apache.cocoon.sitemap.PatternException
Match the prepared pattern against the result of getMatchString(Map, Parameters).

Specified by:
match in interface org.apache.cocoon.matching.Matcher
Throws:
org.apache.cocoon.sitemap.PatternException
See Also:
AbstractPreparableMatcher.match(String, Map, Parameters)

getMatchString

protected abstract String getMatchString(Map objectModel,
                                         Parameters parameters)
Get the string to test against the wildcard expression. To be defined by concrete subclasses.



Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.