|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.MiToBo.core.datatypes.MTBTreeNodeData
de.unihalle.informatik.MiToBo.io.dirs.DirectoryTreeNodeData
public class DirectoryTreeNodeData
Implements class TreeNodeData for DirectoryTree. In particular, each node of the tree is associated with an absolute path and a list of files. These data are stored inside objects of this class.
MTBTreeNodeData
Field Summary | |
---|---|
(package private) java.util.Vector<java.lang.String> |
files
List of files (no subdirectories!) |
(package private) java.lang.String |
path
Absolute directory path associated with this node. |
Fields inherited from class de.unihalle.informatik.MiToBo.core.datatypes.MTBTreeNodeData |
---|
node |
Constructor Summary | |
---|---|
DirectoryTreeNodeData(java.lang.String p)
Default constructor. |
Method Summary | |
---|---|
void |
addFile(java.lang.String f)
Adds a file to the list of the node. |
java.util.Vector<java.lang.String> |
getFileList()
Get the list of all files inside the directory. |
java.lang.String |
getPath()
Request path associated with the node. |
java.util.Vector<java.lang.String> |
getSubtreeFileList()
Collects the list of all files inside this directory AND inside all subdirectories. |
void |
printData()
Method to print the data associated with the node. |
void |
setNode(MTBTreeNode n)
Sets the node the object is associated with. |
void |
setPath(java.lang.String p)
Specify path associated with the node. |
Methods inherited from class de.unihalle.informatik.MiToBo.core.datatypes.MTBTreeNodeData |
---|
getNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.util.Vector<java.lang.String> files
java.lang.String path
Constructor Detail |
---|
public DirectoryTreeNodeData(java.lang.String p)
p
- absolute path of directoryMethod Detail |
---|
public void addFile(java.lang.String f)
f
- file to be addedpublic java.util.Vector<java.lang.String> getFileList()
public java.lang.String getPath()
public java.util.Vector<java.lang.String> getSubtreeFileList()
public void printData()
MTBTreeNodeData
printData
in class MTBTreeNodeData
public void setNode(MTBTreeNode n)
MTBTreeNodeData
setNode
in class MTBTreeNodeData
n
- TreeNode the data object belongs to.public void setPath(java.lang.String p)
p
- path of the node's directory
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |