org.apache.cocoon.matching
Interface Matcher

All Known Subinterfaces:
PreparableMatcher

public interface Matcher

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

Field Summary
static String ROLE
           
 
Method Summary
 Map match(String pattern, Map objectModel, Parameters parameters)
          Matches the pattern against some Request values and returns a Map object with replacements for wildcards contained in the pattern.
 

Field Detail

ROLE

public static final String ROLE
Method Detail

match

public Map match(String pattern,
                 Map objectModel,
                 Parameters parameters)
          throws PatternException
Matches the pattern against some Request values and returns a Map object with replacements for wildcards contained in the pattern.

Parameters:
pattern - The pattern to match against. Depending on the implementation the pattern can contain wildcards or regular expressions.
objectModel - The Map with object of the calling environment which can be used to select values this matchers matches against.
Returns:
Map The returned Map object with replacements for wildcards/regular-expressions contained in the pattern. If the return value is null there was no match.
Throws:
PatternException


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