org.jboss.shrinkwrap.api
Interface Node
public interface Node
Represents an entry inside an Archive.
Indicates a directory if getAsset()
returns null. May be the parent of child
Nodes. Lives inside the Archive under the context
denoted by getPath().
- Author:
- German Escobar
getAsset
Asset getAsset()
- Returns:
- The
Asset this node holds, null if it is a directory
getChildren
java.util.Set<Node> 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
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.