T
- The type of the customization key.public abstract class AbstractPatternDefinitionResolver<T> extends Object implements PatternDefinitionResolver<T>
DefinitionPatternMatcher
separated by customization key. DefinitionPatternMatcher
.Constructor and Description |
---|
AbstractPatternDefinitionResolver() |
Modifier and Type | Method and Description |
---|---|
protected abstract Map<String,Definition> |
addDefinitionsAsPatternMatchers(List<DefinitionPatternMatcher> matchers,
Map<String,Definition> defsMap)
Adds definitions, filtering and adding them to the list of definition
pattern matchers.
|
void |
clearPatternPaths(T customizationKey)
Used to clear all entries in the localePatternPaths for a specific locale.
|
Definition |
resolveDefinition(String name,
T customizationKey)
Resolves a definition searching in all patterns for the requested
customization key.
|
Map<String,Definition> |
storeDefinitionPatterns(Map<String,Definition> localeDefsMap,
T customizationKey)
Stores definition patterns.
|
public Definition resolveDefinition(String name, T customizationKey)
resolveDefinition
in interface PatternDefinitionResolver<T>
name
- The name of the definition.customizationKey
- The customization key.public Map<String,Definition> storeDefinitionPatterns(Map<String,Definition> localeDefsMap, T customizationKey)
storeDefinitionPatterns
in interface PatternDefinitionResolver<T>
localeDefsMap
- The map of definitions that may contain also
patterns.customizationKey
- The customization key.protected abstract Map<String,Definition> addDefinitionsAsPatternMatchers(List<DefinitionPatternMatcher> matchers, Map<String,Definition> defsMap)
matchers
- The list containing the currently stored definition pattern
matchers.defsMap
- The definition map to parse.public void clearPatternPaths(T customizationKey)
clearPatternPaths
in interface PatternDefinitionResolver<T>
customizationKey
- Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.