org.infinispan.schematic.internal.document
Class ObservableDocumentEditor
java.lang.Object
org.infinispan.schematic.internal.document.DocumentEditor
org.infinispan.schematic.internal.document.ObservableDocumentEditor
- All Implemented Interfaces:
- Serializable, Document, EditableDocument
- Direct Known Subclasses:
- Schematic.EditorImpl
public class ObservableDocumentEditor
- extends DocumentEditor
- See Also:
- Serialized Form
Methods inherited from class org.infinispan.schematic.internal.document.DocumentEditor |
asMutableDocument, clone, containsAll, containsField, editable, editable, fields, get, getArray, getBinary, getBoolean, getBoolean, getCode, getCodeWithScope, getDocument, getDouble, getDouble, getInteger, getInteger, getLong, getLong, getMaxKey, getMinKey, getNumber, getNumber, getObjectId, getOrCreateArray, getOrCreateDocument, getPattern, getString, getString, getSymbol, getType, getUuid, getUuid, isEmpty, isNull, isNullOrMissing, keySet, put, putAll, putAll, 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, size, toMap, toString, unwrap, unwrap, unwrap, unwrap, with, with, withVariablesReplaced, withVariablesReplacedWithSystemProperties |
ObservableDocumentEditor
public ObservableDocumentEditor(MutableDocument document,
Path path,
DocumentObserver delta,
DocumentValueFactory factory)
doSetValue
protected Object doSetValue(String name,
Object newValue)
- Description copied from class:
DocumentEditor
- The method that does the actual setting for all of the
set...
methods. This method may be overridden by
subclasses when additional work needs to be performed during the set operations.
- Overrides:
doSetValue
in class DocumentEditor
- Parameters:
name
- the name of the field being setnewValue
- the new value
- Returns:
- the old value, or null if there was no existing value
doSetValueIfAbsent
protected Object doSetValueIfAbsent(String name,
Object value)
- Description copied from class:
DocumentEditor
- The method that does the actual setting for all of the
set...
methods. This method may be overridden by
subclasses when additional work needs to be performed during the set operations.
- Overrides:
doSetValueIfAbsent
in class DocumentEditor
- Parameters:
name
- the name of the field being setvalue
- the new value
- Returns:
- the old value, or null if there was no existing value
remove
public Object remove(String name)
- Description copied from interface:
EditableDocument
- Remove the field with the supplied name, and return the value.
- Specified by:
remove
in interface EditableDocument
- Overrides:
remove
in class DocumentEditor
- Parameters:
name
- The name of the field
- Returns:
- the value that was removed, or null if there was no such value
copy
protected Object copy(Object value)
removeAll
public void removeAll()
- Description copied from interface:
EditableDocument
- Remove all fields from this document.
- Specified by:
removeAll
in interface EditableDocument
- Overrides:
removeAll
in class DocumentEditor
createEditableDocument
protected EditableDocument createEditableDocument(MutableDocument document,
String fieldName,
DocumentValueFactory factory)
- Overrides:
createEditableDocument
in class DocumentEditor
createEditableArray
protected EditableArray createEditableArray(MutableArray array,
String fieldName,
DocumentValueFactory factory)
- Overrides:
createEditableArray
in class DocumentEditor
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.