|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MapNode
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. |
List<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 |
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,
Iterable<Name> removedProperties)
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 |
Method Detail |
---|
UUID getUuid()
Path.Segment getName()
void setName(Path.Segment name)
name
- Sets name to the specified value.Set<Name> getUniqueChildNames()
MapNode getParent()
void setParent(MapNode parent)
parent
- Sets parent to the specified value.List<MapNode> getChildren()
void clearChildren()
void addChild(MapNode child)
child
- the child to add to this nodevoid addChild(int index, MapNode child)
index
- index at which the specified child is to be insertedchild
- the child to be insertedboolean removeChild(MapNode child)
child
- the child to be removed
Map<Name,Property> getProperties()
MapNode setProperties(Iterable<Property> properties, Iterable<Name> removedProperties)
properties
- the properties to set or updateremovedProperties
- the names of the properties that are to be removed; may be null if there are none
MapNode setProperty(Property property)
property
- the property to set
MapNode setProperty(ExecutionContext context, String name, Object... values)
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
MapNode removeProperty(Name propertyName)
propertyName
- the name of the property to remove
Property getProperty(ExecutionContext context, String name)
context
- the current execution context, used to get a name factory
name
- the name of the property to return
Property getProperty(Name name)
name
- the name of the property to return
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |