|
ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.impl.base.NodeImpl
public class NodeImpl
The default implementation of Node
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public ArchivePath getPath()
getPath
in interface Node
Archive
public Asset getAsset()
getAsset
in interface Node
Asset
this node holds, null if it is a directorypublic 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 childspublic boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |