Class RegexpDefinitionPatternMatcher
java.lang.Object
org.apache.tiles.core.definition.pattern.regexp.RegexpDefinitionPatternMatcher
- All Implemented Interfaces:
DefinitionPatternMatcher
Matches regular expression patterns in definitions.
- Since:
- 2.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionRegexpDefinitionPatternMatcher
(String pattern, Definition definition) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncreateDefinition
(String definitionName) Creates a definition, given the definition name, through the use of pattern matching.
-
Constructor Details
-
RegexpDefinitionPatternMatcher
Constructor.- Parameters:
pattern
- The pattern to use, in string form.definition
- The definition to use as a basis.- Since:
- 2.2.0
-
-
Method Details
-
createDefinition
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.
-