|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.modules.vcscore.VcsDirContainer
Container for objects belonging to directories. Is needed to store data when downloading directory recursively.
Constructor Summary | |
VcsDirContainer()
Creates new empty VcsDirContainer |
|
VcsDirContainer(String path)
Creates new VcsDirContainer with given path. |
Method Summary | |
VcsDirContainer |
addSubdir(String path)
Add a subdirectory with the given path. |
VcsDirContainer |
addSubdirRecursive(String path)
Add a subdirectory tree with the given path. |
VcsDirContainer |
getContainerWithPath(String path)
Get the container of the given path. |
VcsDirContainer |
getDirContainer(String name)
Get the directory container of subdirectory of the given name. |
Object |
getElement()
Get the element belonging to this directory. |
String |
getName()
Get the name of this directory. |
VcsDirContainer |
getParent(String path)
Get the parent directory container. |
String |
getPath()
Get the directory path. |
VcsDirContainer |
getSubdir(String path)
Get the subdirectory with the given path. |
VcsDirContainer[] |
getSubdirContainers()
Get all subdirectories. |
String[] |
getSubdirs()
Get all subdirectories of this directory. |
void |
setElement(Object element)
Set the element object belonging to this directory. |
void |
setName(String name)
Set the name of this directory. |
void |
setPath(String path)
Set the directory path. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VcsDirContainer()
public VcsDirContainer(String path)
path
- the directory path.Method Detail |
public String getPath()
public void setPath(String path)
path
- the directory pathpublic String getName()
public void setName(String name)
name
- the name of this directorypublic void setElement(Object element)
element
- the element to assignpublic Object getElement()
null
for empty folders.public VcsDirContainer getSubdir(String path)
public VcsDirContainer[] getSubdirContainers()
public VcsDirContainer addSubdir(String path)
path
- the path of new directory
public VcsDirContainer addSubdirRecursive(String path)
path
- the path of new directory
public String[] getSubdirs()
public VcsDirContainer getDirContainer(String name)
name
- the directory name to look for
public VcsDirContainer getContainerWithPath(String path)
path
- return the container of the given path or null when not foundpublic VcsDirContainer getParent(String path)
path
- the directory path of which the container we are looking for
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |