Package org.jboss.shrinkwrap.api
Interface ArchivePath
-
- All Superinterfaces:
Comparable<ArchivePath>
- All Known Implementing Classes:
BasicPath
public interface ArchivePath extends Comparable<ArchivePath>
Represents a target context within anArchive
under which anNode
may be found. AllArchivePath
contexts are absolute (ie. prepended with the '/' character).ArchivePath
s may have parent contexts, unless the path is at the root.- Author:
- ALR
-
-
Field Summary
Fields Modifier and Type Field Description static char
SEPARATOR
Separator characterstatic String
SEPARATOR_STRING
Separator character as aString
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
get()
Obtains the context which thisArchivePath
representsArchivePath
getParent()
Obtains the parent of this Path, if exists, else null.-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
SEPARATOR
static final char SEPARATOR
Separator character- See Also:
- Constant Field Values
-
-
Method Detail
-
get
String get()
Obtains the context which thisArchivePath
represents- Returns:
-
getParent
ArchivePath getParent()
Obtains the parent of this Path, if exists, else null. For instance if the Path is "/my/path", the parent will be "/my". Each call will result in a new object reference, though subsequent calls upon the same Path will be equal by value.- Returns:
-
-