org.modeshape.graph
Interface SubgraphNode

All Superinterfaces:
Iterable<Location>, Node

public interface SubgraphNode
extends Node

An extended Node that includes the ability to get nodes in the subgraph relative to this node.


Method Summary
 SubgraphNode getNode(Name childName)
          Get the node at the supplied path that is relative to this node.
 SubgraphNode getNode(Path relativePath)
          Get the node at the supplied path that is relative to this node.
 
Methods inherited from interface org.modeshape.graph.Node
getChildren, getChildrenSegments, getExpirationTime, getGraph, getLocation, getProperties, getPropertiesByName, getProperty, getProperty, hasChildren
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

getNode

SubgraphNode getNode(Name childName)
Get the node at the supplied path that is relative to this node.

Parameters:
childName - the name of the child node
Returns:
the node, or null if the node is not included in these results

getNode

SubgraphNode getNode(Path relativePath)
Get the node at the supplied path that is relative to this node.

Parameters:
relativePath - the name that makes up a relative path to the node that is an immediate child of the root
Returns:
the node, or null if the node is not included in these results


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.