wt.folder
Class PathComponents
java.lang.Object
wt.folder.PathComponents
- public class PathComponents
- extends Object
Parses a folder path into two components, a head and a tail. The tail is
the very last folder in the path and the head is everything before it.
Example: /Design/Car/Door, the head is /Design/Car and the tail is Door.
A valid path must have a leading slash, "/" and at least one folder in the
path. This means "/" alone is not a valid path.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE
private static final String RESOURCE
head
private String head
tail
private String tail
PathComponents
public PathComponents(String path)
throws FolderException
splitOutPath
private void splitOutPath(String path)
throws FolderException
- Throws:
FolderException
getHead
public String getHead()
getTail
public String getTail()