Package org.jboss.shrinkwrap.api
Interface Node
- All Known Implementing Classes:
NodeImpl
public interface Node
Represents an entry inside an
Archive
. Indicates an empty directory if getAsset()
returns null. May be
the parent of child Node
s. Lives inside the Archive
under the context denoted by
getPath()
.-
Method Summary
-
Method Details
-
getAsset
Asset getAsset()- Returns:
- The
Asset
this node holds, null if it is an empty directory
-
getChildren
- Returns:
- The child nodes of this node or, an empty set if it has no children or holds an asset. This method will never return null. The returned Set will be an immutable view.
-
getPath
ArchivePath getPath()- Returns:
- The path where this node is placed within the
Archive
-