|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.statcvs.model.CvsTree
Manages CvsTree
Field Summary | |
static int |
NO_PATH_AVAILABLE
Konstant for no path avaliable |
Constructor Summary | |
CvsTree(CvsContent content)
Constructor for given content |
Method Summary | |
protected java.lang.String |
getDirectoryPrefix(java.lang.String path)
Returns the prefix of a given directory string. |
protected java.lang.String |
getDirectorySuffix(java.lang.String path)
Returns the suffix of a given directory string. |
CvsModule |
getRoot()
Returns the root. |
protected void |
insertDir(java.lang.String name)
Inserts a directory into this tree. |
CvsTreeIterator |
iterator()
Returns an CvsTreeIterator over the elements in this tree. |
java.lang.String |
toString()
Returns a string representation of this tree. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NO_PATH_AVAILABLE
Constructor Detail |
public CvsTree(CvsContent content)
content
- to useMethod Detail |
public CvsModule getRoot()
protected void insertDir(java.lang.String name)
name
- directory to insertprotected java.lang.String getDirectoryPrefix(java.lang.String path)
CvsFile.PATH_DELIMITER
is reached.
CvsFile.PATH_DELIMITER
is included as the last character in
the result.
path
- to use
protected java.lang.String getDirectorySuffix(java.lang.String path)
CvsFile.PATH_DELIMITER
until the end.
CvsFile.PATH_DELIMITER
is is not included as the first character.
path
- path to use
public CvsTreeIterator iterator()
CvsTreeIterator
over the elements in this tree.
CvsTreeIterator
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |