org.jboss.shrinkwrap.api
Interface Node


public interface Node

Represents an entry inside an Archive. It can be a directory or an Asset.

Author:
German Escobar

Method Summary
 Asset getAsset()
           
 Set<Node> getChildren()
           
 ArchivePath getPath()
           
 

Method Detail

getAsset

Asset getAsset()
Returns:
The Asset this node holds, null if it is a directory

getChildren

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 © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.