|
||||||||||
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
@ALDMetaInfo(export=ALLOWED) 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 |
---|
Fields inherited from class de.unihalle.informatik.MiToBo.core.datatypes.MTBTreeNodeData |
---|
node |
Constructor Summary | |
---|---|
DirectoryTreeNodeData(String p)
Default constructor. |
Method Summary | |
---|---|
void |
addFile(String f)
Adds a file to the list of the node. |
Vector<String> |
getFileList()
Get the list of all files inside the directory. |
String |
getPath()
Request path associated with the node. |
Vector<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(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 |
Constructor Detail |
---|
public DirectoryTreeNodeData(String p)
p
- absolute path of directoryMethod Detail |
---|
public void setNode(MTBTreeNode n)
MTBTreeNodeData
setNode
in class MTBTreeNodeData
n
- TreeNode the data object belongs to.public String getPath()
public void setPath(String p)
p
- path of the node's directorypublic void addFile(String f)
f
- file to be addedpublic Vector<String> getFileList()
public void printData()
MTBTreeNodeData
printData
in class MTBTreeNodeData
public Vector<String> getSubtreeFileList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |