org.jboss.dna.graph.connector.map
Class MapNode

java.lang.Object
  extended by org.jboss.dna.graph.connector.map.MapNode

public class MapNode
extends Object

A node within a MapRepository.


Constructor Summary
MapNode(UUID uuid)
           
 
Method Summary
 boolean equals(Object obj)
          
 LinkedList<MapNode> getChildren()
           
 Path.Segment getName()
           
 MapNode getParent()
           
 Property getProperty(ExecutionContext context, String name)
          Returns the named property
 Property getProperty(Name name)
          Returns the named property
 Set<Name> getUniqueChildNames()
           
 UUID getUuid()
           
 int hashCode()
          
 void setName(Path.Segment name)
           
 void setParent(MapNode parent)
           
 MapNode setProperty(ExecutionContext context, String name, Object... values)
          Sets the property with the given name, overwriting any previous property for the given name
 MapNode setProperty(Property property)
          Sets the property with the given name, overwriting any previous property for the given name
 String toString()
          
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapNode

public MapNode(UUID uuid)
Method Detail

getUuid

public UUID getUuid()

getName

public Path.Segment getName()

setName

public void setName(Path.Segment name)
Parameters:
name - Sets name to the specified value.

getUniqueChildNames

public Set<Name> getUniqueChildNames()

getParent

public MapNode getParent()

setParent

public void setParent(MapNode parent)
Parameters:
parent - Sets parent to the specified value.

getChildren

public LinkedList<MapNode> getChildren()
Returns:
children

setProperty

public MapNode setProperty(Property property)
Sets the property with the given name, overwriting any previous property for the given name

Parameters:
property - the property to set
Returns:
this map node

setProperty

public MapNode setProperty(ExecutionContext context,
                           String name,
                           Object... values)
Sets the property with the given name, overwriting any previous property for the given name

Parameters:
context - the current execution context, used to get a name factory and property factory.
name - the name of the property
values - the values for the property
Returns:
this map node

getProperty

public 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

public Property getProperty(Name name)
Returns the named property

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

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


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