| java.lang.Object org.enhydra.shark.xpdl.Path
Path | public class Path (Code) | | Paths are always maintained in canonicalized form. That is, parent
references (i.e., ../../ ) and duplicate separators are
resolved. For example,
new Path("/a/b").append("../foo/bar")
will yield the path
/a/foo/bar
This class is not intended to be subclassed by clients but
may be instantiated.
|
Field Summary | |
final public static char | DEVICE_SEPARATOR Device separator character constant ":" used in paths. | final public static Path | EMPTY Constant value containing the empty path with no device. | final public static Path | ROOT Constant value containing the root path with no device. | final public static char | SEPARATOR Path separator character constant "/" used in paths. |
Constructor Summary | |
public | Path(String fullPath) Constructs a new path from the given string path.
The given string path must be valid.
The path is canonicalized and double slashes are removed
except at the beginning. | public | Path(String device, String path) Constructs a new path from the given device id and string path.
The given string path must be valid.
The path is canonicalized and double slashes are removed except
at the beginning (to handle UNC paths). |
DEVICE_SEPARATOR | final public static char DEVICE_SEPARATOR(Code) | | Device separator character constant ":" used in paths.
|
EMPTY | final public static Path EMPTY(Code) | | Constant value containing the empty path with no device.
|
ROOT | final public static Path ROOT(Code) | | Constant value containing the root path with no device.
|
SEPARATOR | final public static char SEPARATOR(Code) | | Path separator character constant "/" used in paths.
|
Path | public Path(String fullPath)(Code) | | Constructs a new path from the given string path.
The given string path must be valid.
The path is canonicalized and double slashes are removed
except at the beginning. (to handle UNC paths) All backslashes ('\')
are replaced with forward slashes. ('/')
Parameters: fullPath - the string path |
Path | public Path(String device, String path)(Code) | | Constructs a new path from the given device id and string path.
The given string path must be valid.
The path is canonicalized and double slashes are removed except
at the beginning (to handle UNC paths). All backslashes ('\')
are replaced with forward slashes. ('/')
Parameters: device - the device id Parameters: path - the string path See Also: Path.setDevice |
isAbsolute | public boolean isAbsolute()(Code) | | |
matchingFirstSegments | public int matchingFirstSegments(Path anotherPath)(Code) | | |
segmentCount | public int segmentCount()(Code) | | |
|
|