Class LogicalPath

java.lang.Object
org.irods.irods4j.high_level.vfs.LogicalPath

public final class LogicalPath extends Object
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 Details

    • isAbsolute

      public static boolean isAbsolute(String path)
      Returns whether the logical path represents an absolute path.
      Parameters:
      path - The logical path to operate on.
      Since:
      0.3.0
    • parentPath

      public static String parentPath(String path)
      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

      public static String objectName(String path)
      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

      public static List<String> segments(String path)
      Returns the list of segments which make up the logical path.
      Parameters:
      path - The logical path to operate on.
      Since:
      0.3.0