Package org.jboss.shrinkwrap.api
Interface ArchivePath
- All Superinterfaces:
Comparable<ArchivePath>
- All Known Implementing Classes:
BasicPath
Represents a target context within an
Archive
under which an Node
may be found. All
ArchivePath
contexts are absolute (ie. prepended with the '/' character). ArchivePath
s may have
parent contexts, unless the path is at the root.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionget()
Obtains the context which thisArchivePath
representsObtains the parent of this Path, if exists, else null.Methods inherited from interface java.lang.Comparable
compareTo
-
Field Details
-
SEPARATOR
static final char SEPARATORSeparator character- See Also:
-
SEPARATOR_STRING
Separator character as aString
-
-
Method Details
-
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:
-