public class NodeMap extends NodeWrapper implements Map<String,Object>
Map representing a Node. This class can be used if you need a bridge Node object to look like a
Map (where the keys are the fields). Don't confuse this with MapNode.
This object is also still a Node object.nodeCLOUD_COMMITNODE_KEY| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Object>> |
entrySet() |
Object |
get(Object key) |
protected Object |
getValueForMap(String field)
Defaults to
NodeWrapper.getValue(java.lang.String), but could e.g. |
boolean |
isEmpty() |
Set<String> |
keySet() |
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,? extends Object> map) |
Object |
remove(Object key) |
protected void |
setValueForMap(String field,
Object value)
Defaults to
NodeWrapper.setValue(java.lang.String, java.lang.Object), but could e.g. |
int |
size() |
String |
toString()
Converts the node to a string
|
Collection<Object> |
values() |
cancel, commit, compareTo, countRelatedNodes, countRelatedNodes, countRelations, countRelations, createAlias, createParameters, createRelation, delete, delete, deleteAlias, deleteRelations, deleteRelations, equals, getAliases, getBooleanValue, getByteValue, getChanged, getCloud, getContext, getDateValue, getDecimalValue, getDoubleValue, getFieldValue, getFieldValue, getFloatValue, getFunction, getFunctions, getFunctionValue, getInputStreamValue, getIntValue, getListValue, getLongValue, getNode, getNodeManager, getNodeValue, getNumber, getObjectValue, getPossibleContexts, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getRelations, getRelations, getRelations, getSize, getStringValue, getValue, getValueWithoutProcess, getXMLValue, getXMLValue, hashCode, hasRelations, isChanged, isChanged, isNew, isNodeManager, isNull, isRelation, isRelationManager, mayChangeContext, mayDelete, mayWrite, setBooleanValue, setByteValue, setContext, setDateValue, setDecimalValue, setDoubleValue, setFloatValue, setInputStreamValue, setIntValue, setListValue, setLongValue, setNodeManager, setNodeValue, setObjectValue, setStringValue, setValue, setValueWithoutProcess, setXMLValue, toNodeManager, toRelation, toRelationManager, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic NodeMap(Node node)
node - The Node which is wrapped, and is presented as a Map.public boolean containsKey(Object key)
containsKey in interface Map<String,Object>public boolean containsValue(Object value)
containsValue in interface Map<String,Object>protected Object getValueForMap(String field)
NodeWrapper.getValue(java.lang.String), but could e.g. be overridden with NodeWrapper.getValueWithoutProcess(java.lang.String)protected void setValueForMap(String field, Object value)
NodeWrapper.setValue(java.lang.String, java.lang.Object), but could e.g. be overridden with NodeWrapper.setValueWithoutProcess(java.lang.String, java.lang.Object)MMBase 1.9-SNAPSHOT - ${javadoctimestamp}