|
IcedTea-Web NetX |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jnlp.cache.DirectoryNode
public class DirectoryNode
Constructor Summary | |
---|---|
DirectoryNode(java.lang.String name,
java.io.File absPathToNode,
java.util.ArrayList<DirectoryNode> childNodes,
DirectoryNode parent)
Create a new instance of DirectoryNode. |
|
DirectoryNode(java.lang.String name,
java.io.File absPathToNode,
DirectoryNode parent)
Create a new instance of DirectoryNode. |
|
DirectoryNode(java.lang.String name,
java.lang.String absPathToNode,
DirectoryNode parent)
Create a new instance of DirectoryNode. |
Method Summary | |
---|---|
void |
addChild(DirectoryNode node)
Append the given node to the list of child nodes. |
java.util.ArrayList<DirectoryNode> |
getChildren()
Retrieves the list of child nodes. |
java.io.File |
getFile()
Retrieve the file associated with this node. |
java.io.File |
getInfoFile()
|
java.lang.String |
getName()
Retrieve the name of this node. |
DirectoryNode |
getParent()
Retrieve the parent node. |
boolean |
isDir()
Check if this node is a directory. |
boolean |
removeChild(DirectoryNode node)
Removes the node specified. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DirectoryNode(java.lang.String name, java.lang.String absPathToNode, DirectoryNode parent)
name
- Name representing this node.absPathToNode
- Absolute path to this node given as a String.parent
- The parent node.public DirectoryNode(java.lang.String name, java.io.File absPathToNode, DirectoryNode parent)
name
- Name representing this node.absPathToNode
- Absolute path to this node as a File.parent
- The parent node.public DirectoryNode(java.lang.String name, java.io.File absPathToNode, java.util.ArrayList<DirectoryNode> childNodes, DirectoryNode parent)
name
- Name representing this node.absPathToNode
- Absolute path to this node given as a File.childNodes
- List of children nodes.parent
- The parent node.Method Detail |
---|
public void addChild(DirectoryNode node)
node
- Node to be appended.public boolean removeChild(DirectoryNode node)
node
- Node to be removed from the list of children
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public java.io.File getFile()
public DirectoryNode getParent()
public java.util.ArrayList<DirectoryNode> getChildren()
public boolean isDir()
public java.io.File getInfoFile()
|
IcedTea-Web NetX |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |