Class PatternUtil
java.lang.Object
org.apache.tiles.core.definition.pattern.PatternUtil
Utilities for pattern matching and substitution.
- Since:
- 2.2.0
- 
Method SummaryModifier and TypeMethodDescriptionstatic <K,V> Map<K, V> createExtractedMap(Map<K, V> map, Set<K> keys) Creates a new map that contains all the entries of thedefsMapwhose keys are contained inkeys.static DefinitionreplacePlaceholders(Definition d, String name, Object... varsOrig) Creates a definition given its representation with wildcards and attribute values with placeholders, replacing real values into placeholders.
- 
Method Details- 
replacePlaceholdersCreates a definition given its representation with wildcards and attribute values with placeholders, replacing real values into placeholders.- Parameters:
- d- The definition to replace.
- name- The name of the definition to be created.
- varsOrig- The variables to be substituted.
- Returns:
- The definition that can be rendered.
- Since:
- 2.2.0
 
- 
createExtractedMapCreates a new map that contains all the entries of thedefsMapwhose keys are contained inkeys.- Type Parameters:
- K- The key of the map.
- V- The value of the map.
- Parameters:
- map- The map to read.
- keys- The keys to extract.
- Returns:
- The extracted map.
- Since:
- 2.2.1
 
 
-