public class NodeImpl extends Object implements Node
Node
Constructor and Description |
---|
NodeImpl(ArchivePath path)
Constructor
This constructor will create a directory Node with the specified path.
|
NodeImpl(ArchivePath path,
Asset asset)
Constructor
This constructor will create an asset Node with the specified path.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(Node node)
Adds a child to the Set of nodes.
|
boolean |
equals(Object obj) |
Asset |
getAsset() |
Set<Node> |
getChildren() |
ArchivePath |
getPath() |
int |
hashCode() |
void |
removeChild(Node node)
Removes a child from the Set of nodes.
|
String |
toString() |
public NodeImpl(ArchivePath path)
path
- The ArchivePath
this Node is placed within the Archive
public NodeImpl(ArchivePath path, Asset asset)
path
- The ArchivePath
this Node is placed within the Archive
asset
- The Asset
that this Node holds.public ArchivePath getPath()
public Set<Node> getChildren()
getChildren
in interface Node
public void addChild(Node node)
node
- The Node that will be added as a childpublic void removeChild(Node node)
node
- The Node that will be removed from the childsCopyright © 2013 JBoss by Red Hat. All Rights Reserved.