|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dna.graph.connector.map.DefaultMapNode
public class DefaultMapNode

| Constructor Summary | |
|---|---|
DefaultMapNode(UUID uuid)
|
|
| Method Summary | |
|---|---|
void |
addChild(int index,
MapNode child)
Inserts the specified child at the specified position in the list of children. |
void |
addChild(MapNode child)
Adds the given child to the end of the list of children for this node |
void |
clearChildren()
Removes all of the children for this node in a single operation. |
boolean |
equals(Object obj)
|
LinkedList<MapNode> |
getChildren()
|
Path.Segment |
getName()
Returns the name of this node along with its SNS index within its parent's children |
MapNode |
getParent()
Returns the parent of this node or null if the node is the root node for its workspace. |
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 |
int |
hashCode()
|
boolean |
removeChild(MapNode child)
Removes the given child from the list of children |
MapNode |
removeProperty(Name propertyName)
Removes the property with the given name |
void |
setName(Path.Segment name)
|
void |
setParent(MapNode parent)
|
MapNode |
setProperties(Iterable<Property> properties)
Sets the given properties in a single operation, overwriting any previous properties for the same name This bulk mutator should be used when multiple properties are being set in order to allow underlying implementations to optimize their access to their respective persistent storage mechanism. |
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 |
|---|
public DefaultMapNode(UUID uuid)
| Method Detail |
|---|
public UUID getUuid()
MapNode
getUuid in interface MapNodepublic Path.Segment getName()
MapNode
getName in interface MapNodepublic void setName(Path.Segment name)
setName in interface MapNodename - Sets name to the specified value.public Set<Name> getUniqueChildNames()
MapNode
getUniqueChildNames in interface MapNodepublic MapNode getParent()
MapNode
getParent in interface MapNodepublic void setParent(MapNode parent)
setParent in interface MapNodeparent - Sets parent to the specified value.public LinkedList<MapNode> getChildren()
getChildren in interface MapNodepublic Map<Name,Property> getProperties()
MapNode
getProperties in interface MapNode
public void addChild(int index,
MapNode child)
MapNode
addChild in interface MapNodeindex - index at which the specified child is to be insertedchild - the child to be insertedpublic void addChild(MapNode child)
MapNode
addChild in interface MapNodechild - the child to add to this nodepublic void clearChildren()
MapNode
clearChildren in interface MapNodepublic boolean removeChild(MapNode child)
MapNode
removeChild in interface MapNodechild - the child to be removed
public MapNode removeProperty(Name propertyName)
MapNode
removeProperty in interface MapNodepropertyName - the name of the property to remove
public MapNode setProperties(Iterable<Property> properties)
MapNode
setProperties in interface MapNodeproperties - the properties to set
public MapNode setProperty(Property property)
setProperty in interface MapNodeproperty - the property to set
public MapNode setProperty(ExecutionContext context,
String name,
Object... values)
setProperty in interface MapNodecontext - the current execution context, used to get a name factory and property factory.name - the name of the propertyvalues - the values for the property
public Property getProperty(ExecutionContext context,
String name)
getProperty in interface MapNodecontext - the current execution context, used to get a name factoryname - the name of the property to return
public Property getProperty(Name name)
getProperty in interface MapNodename - the name of the property to return
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||