org.mmbase.bridge.util
Class NodeMap
java.lang.Object
org.mmbase.bridge.util.NodeWrapper
org.mmbase.bridge.util.NodeMap
- All Implemented Interfaces:
- Comparable<Node>, Map<String,Object>, Node
- Direct Known Subclasses:
- NodeMapWithoutProcess
public class NodeMap
- extends NodeWrapper
- implements Map<String,Object>
A 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.
- Since:
- MMBase-1.8
- Version:
- $Id: NodeMap.java 41943 2010-04-16 17:18:19Z michiel $
- Author:
- Michiel Meeuwissen
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from class org.mmbase.bridge.util.NodeWrapper |
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, validate |
NodeMap
public NodeMap(Node node)
- Parameters:
node - The Node which is wrapped, and is presented as a Map.
clear
public void clear()
- Specified by:
clear in interface Map<String,Object>
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey in interface Map<String,Object>
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue in interface Map<String,Object>
remove
public Object remove(Object key)
- Specified by:
remove in interface Map<String,Object>
getValueForMap
protected Object getValueForMap(String field)
- Defaults to
NodeWrapper.getValue(java.lang.String), but could e.g. be overridden with NodeWrapper.getValueWithoutProcess(java.lang.String)
- Since:
- MMBase-1.9.2
setValueForMap
protected void setValueForMap(String field,
Object value)
- Defaults to
NodeWrapper.setValue(java.lang.String, java.lang.Object), but could e.g. be overridden with NodeWrapper.setValueWithoutProcess(java.lang.String, java.lang.Object)
- Since:
- MMBase-1.9.2
entrySet
public Set<Map.Entry<String,Object>> entrySet()
- Specified by:
entrySet in interface Map<String,Object>
values
public Collection<Object> values()
- Specified by:
values in interface Map<String,Object>
keySet
public Set<String> keySet()
- Specified by:
keySet in interface Map<String,Object>
putAll
public void putAll(Map<? extends String,? extends Object> map)
- Specified by:
putAll in interface Map<String,Object>
put
public Object put(String key,
Object value)
- Specified by:
put in interface Map<String,Object>
get
public Object get(Object key)
- Specified by:
get in interface Map<String,Object>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Map<String,Object>
size
public int size()
- Specified by:
size in interface Map<String,Object>
toString
public String toString()
- Description copied from interface:
Node
- Converts the node to a string
- Specified by:
toString in interface Node- Overrides:
toString in class NodeWrapper
- Returns:
- string representation of a node
MMBase 2.0-SNAPSHOT - null