Class BasicPath
java.lang.Object
org.jboss.shrinkwrap.impl.base.path.BasicPath
- All Implemented Interfaces:
Comparable<ArchivePath>, ArchivePath
A Path which may be optionally prefixed with some common namespace context at construction time. Thread-safe.
- Version:
- $Revision: $
- Author:
- ALR, Aslak Knutsen
-
Field Summary
Fields inherited from interface ArchivePath
SEPARATOR, SEPARATOR_STRING -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new Path representing the root contextCreates a new Path with the specified contextCreates a new Path using the specified base and specified relative context.BasicPath(String basePath, ArchivePath context) Creates a new Path using the specified base and specified relative context.BasicPath(ArchivePath basePath, String context) Creates a new Path using the specified base and specified relative context.BasicPath(ArchivePath basePath, ArchivePath context) Creates a new Path using the specified base and specified relative context. -
Method Summary
-
Constructor Details
-
BasicPath
public BasicPath()Creates a new Path representing the root context -
BasicPath
Creates a new Path with the specified context- Parameters:
context- The context which this path represents. Null or blank represents the root. Relative paths will be adjusted to absolute form.
-
BasicPath
Creates a new Path using the specified base and specified relative context.- Parameters:
basePath- The base path from which the new path is constructed, provided as aArchivePathcontext- The relative context to be appended to the base path, provided as aArchivePath
-
BasicPath
Creates a new Path using the specified base and specified relative context.- Parameters:
basePath- The base path from which the new path is constructed, provided as aArchivePathcontext- The relative context to be appended to the base path, provided as aString
-
BasicPath
Creates a new Path using the specified base and specified relative context.- Parameters:
basePath- The base path from which the new path is constructed, provided as aStringcontext- The relative context to be appended to the base path, provided as aArchivePath
-
BasicPath
Creates a new Path using the specified base and specified relative context.
-
-
Method Details
-
get
- Specified by:
getin interfaceArchivePath- See Also:
-
getParent
- Specified by:
getParentin interfaceArchivePath- See Also:
-
compareTo
- Specified by:
compareToin interfaceComparable<ArchivePath>- See Also:
-
hashCode
-
equals
-
toString
-