org.modeshape.graph.connector.base
Interface Node

All Known Implementing Classes:
InfinispanNode, InMemoryNode, JBossCacheNode, MapNode, PathNode

@Immutable
public interface Node

A snapshot of a single node within a map-based repository.


Method Summary
 Path.Segment getName()
          Returns the name of this node along with its SNS index within its parent's children
 Map<Name,Property> getProperties()
          Returns properties of this node.
 Property getProperty(Name name)
          Returns the property with the supplied name.
 UUID getUuid()
          Returns the UUID for this node
 

Method Detail

getUuid

UUID getUuid()
Returns the UUID for this node

Returns:
the UUID for this node

getName

Path.Segment getName()
Returns the name of this node along with its SNS index within its parent's children

Returns:
the name of this node along with its SNS index within its parent's children, or null for the root node

getProperties

Map<Name,Property> getProperties()
Returns properties of this node.

Returns:
an immutable map of properties keyed by their name.

getProperty

Property getProperty(Name name)
Returns the property with the supplied name.

Parameters:
name - the name of the property
Returns:
the property, or null if this node has no such property


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