public interface MutableDocument extends Document
Document
used when building a MutableBsonObject.Document.Field, Document.ValueTransformer
Modifier and Type | Method and Description |
---|---|
MutableDocument |
clone()
Obtain a clone of this document.
|
default Editor |
edit(boolean clone)
Obtains an editor for the supplied document.
|
default EditableDocument |
editable()
Returns an editable view of the given document.
|
Object |
put(String name,
Object value)
Sets a name/value pair in this object.
|
void |
putAll(Document object)
Sets on this object all name/value pairs from the supplied object.
|
void |
putAll(Map<? extends String,?> map)
Sets on this object all key/value pairs from the supplied map.
|
Object |
remove(String name)
Removes from this object the name/value pair with the given name.
|
void |
removeAll()
Remove all fields from this document.
|
containsAll, containsField, fields, get, getArray, getBinary, getBoolean, getBoolean, getCode, getCodeWithScope, getDocument, 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, withVariablesReplacedWithSystemProperties
Object put(String name, Object value)
name
- The name; may not be nullvalue
- The value; may be nullvoid putAll(Document object)
object
- the object containing the name/value pairs to be set on this objectvoid putAll(Map<? extends String,?> map)
map
- the map containing the name/value pairs to be set on this objectObject remove(String name)
name
- The name of the pair to removevoid removeAll()
MutableDocument clone()
Document
default Editor edit(boolean clone)
Document
serializable memento
that can be applied to another document.default EditableDocument editable()
Document
editable
in interface Document
EditableDocument
instance, never null
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.