Interface Path
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
AbstractTagPath
,AbstractTagPath
,BasicTagPath
,BasicTagPath
,PropertyAlteredTagPath
,PropertyAlteredTagPath
,QualifiedPath
,SimplifiedTagPath
,SimplifiedTagPath
,SourceAlteredTagPath
,SourceAlteredTagPath
,StringPath
,StringPath.CaseSensitiveStringPath
public interface Path extends java.io.Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getLastPathComponent()
Convenience function to return the last path element.Path
getParentPath()
Returns a path representing the element above the current path.java.lang.String
getPathComponent(int i)
Returns the path element at the specified location.int
getPathLength()
Returns the number of elements in the path, which can be retrieved through getPathComponent().boolean
isAncestorOf(Path path)
Returns whether the provided path is a child path of this one.
-
-
-
Method Detail
-
getPathLength
int getPathLength()
Returns the number of elements in the path, which can be retrieved through getPathComponent().
-
getPathComponent
java.lang.String getPathComponent(int i)
Returns the path element at the specified location.
-
getLastPathComponent
java.lang.String getLastPathComponent()
Convenience function to return the last path element.
-
isAncestorOf
boolean isAncestorOf(Path path)
Returns whether the provided path is a child path of this one.
-
getParentPath
Path getParentPath()
Returns a path representing the element above the current path.
-
-