|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface ChildReferences.Changes
The representation of a set of changes for the child references.
Method Summary | |
---|---|
ChildReference |
inserted(NodeKey key)
Get the child reference for the inserted node with the supplied key. |
int |
insertionCount()
Get the number of child references that were inserted. |
Iterator<ChildReferences.ChildInsertions> |
insertions(Name name)
Get the references to the children with the supplied name that were inserted. |
ChildReferences.ChildInsertions |
insertionsBefore(ChildReference key)
Get the set of child references that were inserted before the node with the supplied key. |
boolean |
isEmpty()
Determine if this set of changes is empty. |
boolean |
isRemoved(ChildReference ref)
Determine whether the supplied child reference was removed. |
boolean |
isRenamed(ChildReference ref)
Determine whether the supplied child reference was renamed. |
boolean |
isRenamed(Name newName)
Determine whether any of the child references were renamed to the supplied name. |
int |
removalCount()
Get the number of child references that were removed. |
int |
renameCount()
Get the number of child references that were renamed. |
Name |
renamed(NodeKey key)
Return the new name for the child node with the supplied key. |
Method Detail |
---|
Iterator<ChildReferences.ChildInsertions> insertions(Name name)
name
- the name; may not be null
ChildReference inserted(NodeKey key)
key
- the node key for the inserted node; may not be null
ChildReferences.ChildInsertions insertionsBefore(ChildReference key)
key
- the node key for the node before which the inserted nodes are to be returned; may not be null
boolean isRemoved(ChildReference ref)
ref
- the reference; may not be null
boolean isRenamed(ChildReference ref)
ref
- the reference; may not be null
boolean isRenamed(Name newName)
newName
- the new name; may not be null
Name renamed(NodeKey key)
key
- the child node's key; may not be null
boolean isEmpty()
int removalCount()
int insertionCount()
int renameCount()
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |