public class MongoNode
extends com.mongodb.BasicDBObject
MongoDB representation of a node.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_BRANCH_ID |
static String |
KEY_CHILDREN |
static String |
KEY_DELETED |
static String |
KEY_PATH |
static String |
KEY_PROPERTIES |
static String |
KEY_REVISION_ID |
| Constructor and Description |
|---|
MongoNode() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(String childName) |
void |
addProperty(String key,
Object value) |
boolean |
childExists(String childName) |
MongoNode |
copy() |
List<String> |
getAddedChildren() |
Map<String,Object> |
getAddedProps() |
String |
getBranchId() |
List<String> |
getChildren() |
String |
getPath() |
Map<String,Object> |
getProperties() |
List<String> |
getRemovedChildren() |
Map<String,Object> |
getRemovedProps() |
Long |
getRevisionId() |
boolean |
isDeleted() |
void |
removeChild(String childName) |
void |
removeProp(String key) |
void |
setBranchId(String branchId) |
void |
setChildren(List<String> children) |
void |
setDeleted(boolean deleted) |
void |
setPath(String path) |
void |
setProperties(Map<String,Object> properties) |
void |
setRevisionId(long revisionId) |
static NodeImpl |
toNode(MongoNode nodeMongo) |
String |
toString() |
containsField, containsKey, equals, get, getBoolean, getBoolean, getDate, getDate, getDouble, getDouble, getInt, getInt, getLong, getLong, getObjectId, getObjectId, getString, getString, put, putAll, putAll, removeField, toMapclear, containsValue, get, removeEldestEntryclone, containsKey, entrySet, isEmpty, keySet, remove, size, valueshashCodefinalize, getClass, notify, notifyAll, wait, wait, waitpublic static final String KEY_CHILDREN
public static final String KEY_DELETED
public static final String KEY_PATH
public static final String KEY_PROPERTIES
public static final String KEY_REVISION_ID
public static final String KEY_BRANCH_ID
public String getBranchId()
public void setBranchId(String branchId)
public boolean isDeleted()
public void setDeleted(boolean deleted)
public String getPath()
public void setPath(String path)
public Long getRevisionId()
public void setRevisionId(long revisionId)
public MongoNode copy()
copy in class com.mongodb.BasicDBObjectpublic void addChild(String childName)
public void removeChild(String childName)
public void removeProp(String key)
public boolean childExists(String childName)
public String toString()
toString in class com.mongodb.BasicDBObjectCopyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.