public class RegExpPathMacros extends BasePathMacros
Modifier and Type | Field and Description |
---|---|
protected java.util.regex.Pattern[] |
regexpPattern |
fixed, macrosCount, names, patterns
Constructor and Description |
---|
RegExpPathMacros() |
Modifier and Type | Method and Description |
---|---|
boolean |
init(java.lang.String actionPath,
java.lang.String[] separators)
Initializes
PathMacro and returns
true if macros are found in the action
path. |
protected boolean |
matchValue(int macroIndex,
java.lang.String value)
Matches the stripped value with the pattern.
|
extract, macrosCount, match, names, patterns
public boolean init(java.lang.String actionPath, java.lang.String[] separators)
BasePathMacros
PathMacro
and returns
true
if macros are found in the action
path. Otherwise, returns false
and
the instance can be thrown away.
Separators is array of 3 strings that defines: start, dividing string, and end of a macro.
init
in interface PathMacros
init
in class BasePathMacros
protected boolean matchValue(int macroIndex, java.lang.String value)
BasePathMacros
macroIndex
is not null
!matchValue
in class BasePathMacros
Copyright © 2003-present Jodd Team