Class NodeImpl
java.lang.Object
org.jboss.shrinkwrap.impl.base.NodeImpl
- All Implemented Interfaces:
Node
The default implementation of
Node- Author:
- German Escobar
-
Constructor Summary
ConstructorsConstructorDescriptionNodeImpl(ArchivePath path) ConstructorNodeImpl(ArchivePath path, Asset asset) Constructor -
Method Summary
-
Constructor Details
-
NodeImpl
ConstructorThis constructor will create a directory Node with the specified path.
- Parameters:
path- TheArchivePaththis Node is placed within theArchive
-
NodeImpl
ConstructorThis constructor will create an asset Node with the specified path.
- Parameters:
path- TheArchivePaththis Node is placed within theArchiveasset- TheAssetthat this Node holds.
-
-
Method Details
-
getPath
-
getAsset
-
getChildren
- Specified by:
getChildrenin interfaceNode
-
addChild
Adds a child to the Set of nodes. If already exists, nothing happens.- Parameters:
node- The Node that will be added as a child
-
removeChild
Removes a child from the Set of nodes. If it doesn't exist, nothing happens.- Parameters:
node- The Node that will be removed from the children
-
equals
-
hashCode
-
toString
-