Package org.ec4j.core.model
Interface Ec4jPath
- All Superinterfaces:
Adaptable
- All Known Implementing Classes:
Ec4jPath.Ec4jPaths.NioPath,Ec4jPath.Ec4jPaths.StringPath
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.ec4j.core.model.Adaptable
Adaptable.DefaultAdaptable -
Method Summary
Modifier and TypeMethodDescriptionbooleanrelativize(Ec4jPath other) Constructs a relative path between this path and the givenEc4jPath.toString()Methods inherited from interface org.ec4j.core.model.Adaptable
getAdapter
-
Method Details
-
getLastSegment
String getLastSegment()- Returns:
- the last segment of this
Ec4jPath
-
getParentPath
Ec4jPath getParentPath() -
isAbsolute
boolean isAbsolute()- Returns:
trueif thisEc4jPathis absolute (i.e. starting with a slash/or any other implementation specific way) orfalseotherwise
-
relativize
Constructs a relative path between this path and the givenEc4jPath. If thisEc4jPathis/dir1andotheris/dir1/dir2/filethen the relative path isdir2/file.- Parameters:
other- the path to relativize- Returns:
- a relative path between this path and a given path.
-
resolve
-
toString
String toString()
-