public interface PathSpec extends Comparable<PathSpec>
Implementors must override Object.equals(Object) and Object.hashCode().
| Modifier and Type | Method and Description |
|---|---|
String |
getDeclaration()
The as-provided path spec.
|
PathSpecGroup |
getGroup()
The spec group.
|
int |
getPathDepth()
Get the number of path elements that this path spec declares.
|
String |
getPathInfo(String path)
Return the portion of the path that is after the path spec.
|
String |
getPathMatch(String path)
Return the portion of the path that matches a path spec.
|
String |
getPrefix()
A simple prefix match for the pathspec or null
|
int |
getSpecLength()
The length of the spec.
|
String |
getSuffix()
A simple suffix match for the pathspec or null
|
boolean |
matches(String path)
Test to see if the provided path matches this path spec
|
compareToint getSpecLength()
PathSpecGroup getGroup()
int getPathDepth()
This is used to determine longest match logic.
String getPathInfo(String path)
path - the path to match againstString getPathMatch(String path)
path - the path to match againstString getDeclaration()
String getPrefix()
String getSuffix()
boolean matches(String path)
path - the path to testCopyright © 2010 - 2020 Adobe. All Rights Reserved