|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.util.WildcardMatcherHelper
public class WildcardMatcherHelper
This class is an utility class that perform wildcard-patterns matching and isolation.
Field Summary | |
---|---|
static char |
ESC
Default path separator: "/" |
static char |
PATHSEP
Default path separator: "/" |
static char |
STAR
Default path separator: "/" |
Constructor Summary | |
---|---|
WildcardMatcherHelper()
|
Method Summary | |
---|---|
static Map |
match(String pat,
String str)
Match a pattern agains a string and isolates wildcard replacement into a Map . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char ESC
public static final char PATHSEP
public static final char STAR
Constructor Detail |
---|
public WildcardMatcherHelper()
Method Detail |
---|
public static Map match(String pat, String str)
Map
.
pat
- The pattern string.str
- The string to math agains the pattern
Map
containing the representation of the extracted pattern. The extracted patterns are
keys in the Map
from left to right beginning with "1" for te left most, "2" for the next,
a.s.o. The key "0" is the string itself. If the return value is null, string does not match to the
pattern .
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |