|
||||||||||
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
org.jboss.dna.graph.connector.inmemory.InMemoryNode
public class InMemoryNode
An MapNode
implementation used by the InMemoryRepository
.
Nested Class Summary | |
---|---|
static interface |
InMemoryNode.ChangeListener
The interface that InMemoryNode objects use to signal when they are about to change. |
Constructor Summary | |
---|---|
InMemoryNode(InMemoryNode.ChangeListener listener,
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 |
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 |
Methods inherited from class org.jboss.dna.graph.connector.map.DefaultMapNode |
---|
equals, getChildren, getName, getParent, getProperties, getProperty, getProperty, getUniqueChildNames, getUuid, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InMemoryNode(InMemoryNode.ChangeListener listener, UUID uuid)
listener
- the listener that is to be notified of any changesuuid
- the UUID of the nodeMethod Detail |
---|
public void addChild(int index, MapNode child)
addChild
in interface MapNode
addChild
in class DefaultMapNode
index
- index at which the specified child is to be insertedchild
- the child to be insertedDefaultMapNode.addChild(int, org.jboss.dna.graph.connector.map.MapNode)
public void addChild(MapNode child)
addChild
in interface MapNode
addChild
in class DefaultMapNode
child
- the child to add to this nodeDefaultMapNode.addChild(org.jboss.dna.graph.connector.map.MapNode)
public void clearChildren()
clearChildren
in interface MapNode
clearChildren
in class DefaultMapNode
DefaultMapNode.clearChildren()
public boolean removeChild(MapNode child)
removeChild
in interface MapNode
removeChild
in class DefaultMapNode
child
- the child to be removed
DefaultMapNode.removeChild(org.jboss.dna.graph.connector.map.MapNode)
public MapNode removeProperty(Name propertyName)
removeProperty
in interface MapNode
removeProperty
in class DefaultMapNode
propertyName
- the name of the property to remove
DefaultMapNode.removeProperty(org.jboss.dna.graph.property.Name)
public void setName(Path.Segment name)
setName
in interface MapNode
setName
in class DefaultMapNode
name
- Sets name to the specified value.DefaultMapNode.setName(org.jboss.dna.graph.property.Path.Segment)
public void setParent(MapNode parent)
setParent
in interface MapNode
setParent
in class DefaultMapNode
parent
- Sets parent to the specified value.DefaultMapNode.setParent(org.jboss.dna.graph.connector.map.MapNode)
public MapNode setProperties(Iterable<Property> properties)
setProperties
in interface MapNode
setProperties
in class DefaultMapNode
properties
- the properties to set
DefaultMapNode.setProperties(java.lang.Iterable)
public MapNode setProperty(ExecutionContext context, String name, Object... values)
setProperty
in interface MapNode
setProperty
in class DefaultMapNode
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
DefaultMapNode.setProperty(org.jboss.dna.graph.ExecutionContext, java.lang.String,
java.lang.Object[])
public MapNode setProperty(Property property)
setProperty
in interface MapNode
setProperty
in class DefaultMapNode
property
- the property to set
DefaultMapNode.setProperty(org.jboss.dna.graph.property.Property)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |