Class RegexpDefinitionPatternMatcher
- java.lang.Object
-
- org.apache.tiles.definition.pattern.regexp.RegexpDefinitionPatternMatcher
-
- All Implemented Interfaces:
DefinitionPatternMatcher
public class RegexpDefinitionPatternMatcher extends java.lang.Object implements DefinitionPatternMatcher
Matches regular expression patterns in definitions.- Since:
- 2.2.0
- Version:
- $Rev: 795343 $ $Date: 2009-07-18 21:26:09 +1000 (Sat, 18 Jul 2009) $
-
-
Constructor Summary
Constructors Constructor Description RegexpDefinitionPatternMatcher(java.lang.String pattern, Definition definition)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Definition
createDefinition(java.lang.String definitionName)
Creates a definition, given the definition name, through the use of pattern matching.
-
-
-
Constructor Detail
-
RegexpDefinitionPatternMatcher
public RegexpDefinitionPatternMatcher(java.lang.String pattern, Definition definition)
Constructor.- Parameters:
pattern
- The pattern to use, in string form.definition
- The definition to use as a basis.- Since:
- 2.2.0
-
-
Method Detail
-
createDefinition
public Definition createDefinition(java.lang.String definitionName)
Creates a definition, given the definition name, through the use of pattern matching.- Specified by:
createDefinition
in interfaceDefinitionPatternMatcher
- Parameters:
definitionName
- The definition name to match.- Returns:
- The created definition, if matched, or
null
if not matched.
-
-