public interface Editor extends EditableDocument
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Editor.Observer
An interface that can be supplied to the
apply(Changes,Observer) and apply(Changes, Observer)
methods to receive notifications of the changes that were applied or undone. |
Document.Field, Document.ValueTransformer| Modifier and Type | Method and Description |
|---|---|
void |
apply(Changes changes)
After making changes to another document, apply the same changes to this document.
|
void |
apply(Changes changes,
Editor.Observer observer)
After making changes to another document, apply the same changes to this document.
|
Changes |
getChanges()
Get the changes that have been made to this document.
|
getArray, getDocument, getOrCreateArray, getOrCreateDocument, merge, putAll, putAll, remove, removeAll, set, setArray, setArray, setArray, setBinary, setBoolean, setCode, setCode, setDate, setDate, setDocument, setDocument, setNull, setNumber, setNumber, setNumber, setNumber, setObjectId, setObjectId, setObjectId, setRegularExpression, setRegularExpression, setString, setSymbol, setTimestamp, setUuid, unwrapclone, containsAll, containsField, fields, get, getBinary, getBoolean, getBoolean, getCode, getCodeWithScope, getDouble, getDouble, getInteger, getInteger, getLong, getLong, getMaxKey, getMinKey, getNumber, getNumber, getObjectId, getPattern, getString, getString, getSymbol, getType, getUuid, getUuid, isEmpty, isNull, isNullOrMissing, keySet, size, toMap, with, with, with, withVariablesReplaced, withVariablesReplacedWithSystemPropertiesChanges getChanges()
void apply(Changes changes)
changes - the changes that are to be applied to this document; may not be nullapply(Changes, Observer)void apply(Changes changes, Editor.Observer observer)
changes - the changes that are to be applied to this document; may not be nullobserver - an observer that will be called as changes are undone; may be nullapply(Changes)Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.