public class BasicPath extends Object implements ArchivePath, Comparable<ArchivePath>
SEPARATOR, SEPARATOR_STRING
Constructor and Description |
---|
BasicPath()
Creates a new Path representing the root context
|
BasicPath(ArchivePath 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(String context)
Creates a new Path with the specified context
|
BasicPath(String basePath,
ArchivePath context)
Creates a new Path using the specified base and specified relative context.
|
BasicPath(String basePath,
String context)
Creates a new Path using the specified base and specified relative context.
|
public BasicPath()
public BasicPath(String context)
context
- The context which this path represents. Null or blank represents the root. Relative paths will be
adjusted to absolute form.public BasicPath(ArchivePath basePath, ArchivePath context)
basePath
- context
- public BasicPath(ArchivePath basePath, String context)
basePath
- context
- public BasicPath(String basePath, ArchivePath context)
basePath
- context
- public String get()
get
in interface ArchivePath
ArchivePath.get()
public ArchivePath getParent()
getParent
in interface ArchivePath
ArchivePath.getParent()
public int compareTo(ArchivePath path)
compareTo
in interface Comparable<ArchivePath>
Comparable.compareTo(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.