public class PathPatternType
extends java.lang.Object
Constructor and Description |
---|
PathPatternType() |
PathPatternType(java.lang.String pattern) |
PathPatternType(java.lang.String prefix,
java.lang.String pattern) |
Modifier and Type | Method and Description |
---|---|
void |
addText(java.lang.String text)
Sets the pattern name.
|
java.lang.String |
getPrefix() |
void |
init()
initialize the pattern.
|
boolean |
isMatch(java.lang.String path)
Check for a match.
|
boolean |
isValidPrefix(java.lang.String path)
Checks that the path is an allowable prefix.
|
void |
setName(java.lang.String pattern)
Sets the pattern name.
|
void |
setPrefix(java.lang.String prefix) |
java.lang.String |
toString() |
public PathPatternType()
public PathPatternType(java.lang.String pattern) throws ConfigException, java.util.regex.PatternSyntaxException
ConfigException
java.util.regex.PatternSyntaxException
public PathPatternType(java.lang.String prefix, java.lang.String pattern) throws ConfigException, java.util.regex.PatternSyntaxException
ConfigException
java.util.regex.PatternSyntaxException
public void setPrefix(java.lang.String prefix)
public java.lang.String getPrefix()
public void setName(java.lang.String pattern) throws ConfigException, java.util.regex.PatternSyntaxException
ConfigException
java.util.regex.PatternSyntaxException
public void addText(java.lang.String text) throws ConfigException, java.util.regex.PatternSyntaxException
ConfigException
java.util.regex.PatternSyntaxException
@PostConstruct public void init() throws ConfigException
ConfigException
public boolean isValidPrefix(java.lang.String path)
public boolean isMatch(java.lang.String path)
public java.lang.String toString()
toString
in class java.lang.Object