Class WildcardDefinitionPatternMatcherFactory
java.lang.Object
org.apache.tiles.definition.pattern.wildcard.WildcardDefinitionPatternMatcherFactory
- All Implemented Interfaces:
DefinitionPatternMatcherFactory
,PatternRecognizer
public class WildcardDefinitionPatternMatcherFactory
extends Object
implements DefinitionPatternMatcherFactory, PatternRecognizer
Creates instances of
WildcardDefinitionPatternMatcher
.- Since:
- 2.2.0
- Version:
- $Rev: 795343 $ $Date: 2009-07-18 21:26:09 +1000 (Sat, 18 Jul 2009) $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDefinitionPatternMatcher
(String pattern, Definition definition) Creates a new definition pattern matcher.boolean
isPatternRecognized
(String candidatePattern) Checks if a pattern is recognized as a pattern.
-
Constructor Details
-
WildcardDefinitionPatternMatcherFactory
public WildcardDefinitionPatternMatcherFactory()
-
-
Method Details
-
createDefinitionPatternMatcher
public DefinitionPatternMatcher createDefinitionPatternMatcher(String pattern, Definition definition) Creates a new definition pattern matcher.- Specified by:
createDefinitionPatternMatcher
in interfaceDefinitionPatternMatcherFactory
- Parameters:
pattern
- The pattern to be matched.definition
- The base definition. Created definitions byDefinitionPatternMatcher.createDefinition(String)
will created with this one as a basis.- Returns:
- The definition pattern matcher.
-
isPatternRecognized
Checks if a pattern is recognized as a pattern.- Specified by:
isPatternRecognized
in interfacePatternRecognizer
- Parameters:
candidatePattern
- The pattern to check.- Returns:
true
if the pattern has been recognized.
-