Class ResourcePath

java.lang.Object
io.wcm.sling.commons.resource.ResourcePath

@Deprecated(since="1.2.0") public final class ResourcePath extends Object
Deprecated.
Use io.wcm.wcm.commons.util.Path instead.
Helper methods for resource path handling.
  • Method Details

    • getAbsoluteLevel

      public static int getAbsoluteLevel(@NotNull @NotNull String path)
      Deprecated.
      Gets level from parent use same logic (but reverse) as Text.getAbsoluteParent(String, int).
      Parameters:
      path - Path
      Returns:
      level >= 0 if path is value, -1 if path is invalid