Package org.irods.irods4j.high_level.vfs
Class LogicalPath
java.lang.Object
org.irods.irods4j.high_level.vfs.LogicalPath
This class provides support methods for operating on iRODS logical paths.
The methods exposed by this class assume paths are non-null.
- Since:
- 0.3.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAbsolute(String path) Returns whether the logical path represents an absolute path.static StringobjectName(String path) Returns the farthest path element of the given logical path.static StringparentPath(String path) Returns the parent path of the given logical path.Returns the list of segments which make up the logical path.
-
Method Details
-
isAbsolute
Returns whether the logical path represents an absolute path.- Parameters:
path- The logical path to operate on.- Since:
- 0.3.0
-
parentPath
Returns the parent path of the given logical path.Returns null if the path is relative or no forward slash is found.
- Parameters:
path- The logical path to operate on.- Since:
- 0.3.0
-
objectName
Returns the farthest path element of the given logical path.Returns the given path if no forward slash is found.
- Parameters:
path- The logical path to operate on.- Since:
- 0.3.0
-
segments
Returns the list of segments which make up the logical path.- Parameters:
path- The logical path to operate on.- Since:
- 0.3.0
-