|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tiles.definition.pattern.PatternUtil
public final class PatternUtil
Utilities for pattern matching and substitution.
Method Summary | ||
---|---|---|
static
|
createExtractedMap(Map<K,V> map,
Set<K> keys)
Creates a new map that contains all the entries of the defsMap whose keys are contained in keys . |
|
static Definition |
replacePlaceholders(Definition d,
String name,
Object... vars)
Creates a definition given its representation with wildcards and attribute values with placeholders, replacing real values into placeholders. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Definition replacePlaceholders(Definition d, String name, Object... vars)
d
- The definition to replace.name
- The name of the definition to be created.vars
- The variables to be substituted.
public static <K,V> Map<K,V> createExtractedMap(Map<K,V> map, Set<K> keys)
defsMap
whose keys are contained in keys
.
K
- The key of the map.V
- The value of the map.map
- The map to read.keys
- The keys to extract.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |