|
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 Editor.Observer
An interface that can be supplied to the Editor.apply(Changes,Observer)
and Editor.apply(Changes, Observer)
methods to receive notifications of the changes that were applied or undone.
Method Summary | |
---|---|
void |
addArrayValue(Path path,
Array.Entry entry)
Insert the entry into the array at the given path. |
void |
clear(Path path)
Remove all fields from the document at the supplied path. |
void |
put(Path parentPath,
String field,
Object newValue)
Set to the given value the field in the document at the supplied path. |
void |
remove(Path parentPath,
String field)
Remove the field from the document at the supplied path. |
void |
removeArrayValue(Path path,
Array.Entry entry)
Remove the entry from the array at the given path. |
void |
setArrayValue(Path path,
Array.Entry entry)
Set the supplied entry in the array at the given path. |
Method Detail |
---|
void setArrayValue(Path path, Array.Entry entry)
path
- the path within the document of the arrayentry
- the entry containing the new value and the indexvoid addArrayValue(Path path, Array.Entry entry)
path
- the path within the document of the arrayentry
- the entry containing the new value and the indexvoid removeArrayValue(Path path, Array.Entry entry)
path
- the path within the document of the arrayentry
- the entry containing the new value and the indexvoid clear(Path path)
path
- the path to the documentvoid put(Path parentPath, String field, Object newValue)
parentPath
- the path to the parent document in which the field should be updatedfield
- the name of the field to be updatednewValue
- the new valuevoid remove(Path parentPath, String field)
parentPath
- the path to the parent document in which the field should be removedfield
- the name of the field to be removed
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |