Package com.atlassian.bitbucket.content
Interface Path
- All Known Implementing Classes:
SimplePath
public interface Path
A bean representation of a path
-
Method Details
-
getParent
- Returns:
- the parent string - everything up to the last component, or an empty string if root
-
getName
- Returns:
- everything after the last "/" (the last component), including the extension, or an empty string if there are no components
-
getExtension
- Returns:
- the file extension of the path (with no .), or null if there is no file extension
-
getComponents
- Returns:
- an array of Strings representing the directories followed by a possible file name
-
toString
-