wt.folder
Class PathComponents

java.lang.Object
  extended bywt.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.


Field Summary
private  String head
           
private static String RESOURCE
           
private  String tail
           
 
Constructor Summary
PathComponents(String path)
           
 
Method Summary
 String getHead()
           
 String getTail()
           
private  void splitOutPath(String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE

head

private String head

tail

private String tail
Constructor Detail

PathComponents

public PathComponents(String path)
               throws FolderException
Method Detail

splitOutPath

private void splitOutPath(String path)
                   throws FolderException
Throws:
FolderException

getHead

public String getHead()

getTail

public String getTail()