|
||||||||||
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 MapNode
public Path.Segment getName()
MapNode
getName
in interface MapNode
public void setName(Path.Segment name)
setName
in interface MapNode
name
- Sets name to the specified value.public Set<Name> getUniqueChildNames()
MapNode
getUniqueChildNames
in interface MapNode
public MapNode getParent()
MapNode
getParent
in interface MapNode
public void setParent(MapNode parent)
setParent
in interface MapNode
parent
- Sets parent to the specified value.public LinkedList<MapNode> getChildren()
getChildren
in interface MapNode
public Map<Name,Property> getProperties()
MapNode
getProperties
in interface MapNode
public void addChild(int index, MapNode child)
MapNode
addChild
in interface MapNode
index
- index at which the specified child is to be insertedchild
- the child to be insertedpublic void addChild(MapNode child)
MapNode
addChild
in interface MapNode
child
- the child to add to this nodepublic void clearChildren()
MapNode
clearChildren
in interface MapNode
public boolean removeChild(MapNode child)
MapNode
removeChild
in interface MapNode
child
- the child to be removed
public MapNode removeProperty(Name propertyName)
MapNode
removeProperty
in interface MapNode
propertyName
- the name of the property to remove
public MapNode setProperties(Iterable<Property> properties)
MapNode
setProperties
in interface MapNode
properties
- the properties to set
public MapNode setProperty(Property property)
setProperty
in interface MapNode
property
- the property to set
public MapNode setProperty(ExecutionContext context, String name, Object... values)
setProperty
in interface MapNode
context
- 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 MapNode
context
- the current execution context, used to get a name factory
name
- the name of the property to return
public Property getProperty(Name name)
getProperty
in interface MapNode
name
- the name of the property to return
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |