org.jboss.dna.graph.connector.path
Interface PathNode

All Known Implementing Classes:
DefaultPathNode

public interface PathNode

Basic interface for a read-only node in a path repository.


Method Summary
 List<Path.Segment> getChildSegments()
           
 Path getPath()
          Returns the full path to this node
 Map<Name,Property> getProperties()
          Returns a map of property names to the property for the given name
 Property getProperty(ExecutionContext context, String name)
          Returns the named property
 Property getProperty(Name name)
          Returns the named property
 Set<Name> getUniqueChildNames()
          Returns the set of child names for this node
 UUID getUuid()
          Returns the UUID for this node.
 

Method Detail

getPath

Path getPath()
Returns the full path to this node

Returns:
the full path to this node

getUuid

UUID getUuid()
Returns the UUID for this node. Only the root node in a PathWorkspace should have a UUID. All other nodes should return null from this method.

Returns:
the UUID for this node; may be null

getUniqueChildNames

Set<Name> getUniqueChildNames()
Returns the set of child names for this node

Returns:
the set of child names for this node

getChildSegments

List<Path.Segment> getChildSegments()
Returns:
children

getProperty

Property getProperty(ExecutionContext context,
                     String name)
Returns the named property

Parameters:
context - the current execution context, used to get a name factory
name - the name of the property to return
Returns:
the property for the given name

getProperty

Property getProperty(Name name)
Returns the named property

Parameters:
name - the name of the property to return
Returns:
the property for the given name

getProperties

Map<Name,Property> getProperties()
Returns a map of property names to the property for the given name

Returns:
a map of property names to the property for the given name


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