public class MatchPattern extends Object
Modifier and Type | Method and Description |
---|---|
static MatchPattern |
fromString(String source) |
String[] |
getTokenizedPathString() |
boolean |
matchPath(String str,
boolean isCaseSensitive) |
boolean |
matchPatternStart(String str,
boolean isCaseSensitive) |
boolean |
startsWith(String string) |
public boolean matchPath(String str, boolean isCaseSensitive)
str
- The string to match for.isCaseSensitive
- case sensitive true false otherwise.public boolean matchPatternStart(@Nonnull String str, boolean isCaseSensitive)
str
- The string to check.isCaseSensitive
- Check case sensitive or not.public String[] getTokenizedPathString()
public boolean startsWith(String string)
string
- The part which will be checked to start with.public static MatchPattern fromString(String source)
source
- The source.Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.