org.apache.cocoon.matching.modular
Class CachingRegexpMatcher

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.matching.AbstractPreparableMatcher
          extended by org.apache.cocoon.matching.AbstractRegexpMatcher
              extended by org.apache.cocoon.matching.modular.CachingRegexpMatcher
All Implemented Interfaces:
Disposable, Initializable, Component, Composable, Configurable, LogEnabled, ThreadSafe, Matcher, PreparableMatcher

public class CachingRegexpMatcher
extends AbstractRegexpMatcher
implements Configurable, Initializable, Composable, Disposable

Matches against a regular expression. Needs an input module to obtain value to match against.

Global and local configuration

input-moduleName of the input module used to obtain the value
parameter-nameName of the parameter to match * against

Version:
CVS $Id: CachingRegexpMatcher.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Christian Haul, Sylvain Wallez, Vadim Gritsenko

Field Summary
protected  ComponentManager manager
          The component manager instance
 
Fields inherited from interface org.apache.cocoon.matching.Matcher
ROLE
 
Constructor Summary
CachingRegexpMatcher()
           
 
Method Summary
 void compose(ComponentManager manager)
          Set the current ComponentManager instance used by this Composable.
 void configure(Configuration config)
           
 void dispose()
           
protected  String getMatchString(Map objectModel, Parameters parameters)
          Get the string to test against the regular expression.
 void initialize()
           
 
Methods inherited from class org.apache.cocoon.matching.AbstractRegexpMatcher
preparedMatch, preparePattern
 
Methods inherited from class org.apache.cocoon.matching.AbstractPreparableMatcher
match
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manager

protected ComponentManager manager
The component manager instance

Constructor Detail

CachingRegexpMatcher

public CachingRegexpMatcher()
Method Detail

compose

public void compose(ComponentManager manager)
             throws ComponentException
Set the current ComponentManager instance used by this Composable.

Specified by:
compose in interface Composable
Throws:
ComponentException

configure

public void configure(Configuration config)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Throws:
ConfigurationException

initialize

public void initialize()
Specified by:
initialize in interface Initializable

dispose

public void dispose()
Specified by:
dispose in interface Disposable

getMatchString

protected String getMatchString(Map objectModel,
                                Parameters parameters)
Description copied from class: AbstractRegexpMatcher
Get the string to test against the regular expression. To be defined by concrete subclasses.

Specified by:
getMatchString in class AbstractRegexpMatcher


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