org.mmbase.bridge.util
Class NodeMap

java.lang.Object
  extended byorg.mmbase.bridge.util.NodeWrapper
      extended byorg.mmbase.bridge.util.NodeMap
All Implemented Interfaces:
Comparable, Map, Node

public class NodeMap
extends NodeWrapper
implements Map

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). This object is also still a Node object.

Since:
MMBase-1.8
Version:
$Id: NodeMap.java,v 1.1 2005/12/27 21:50:50 michiel Exp $
Author:
Michiel Meeuwissen

Nested Class Summary
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Field Summary
 
Fields inherited from class org.mmbase.bridge.util.NodeWrapper
node
 
Constructor Summary
NodeMap(Node node)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set entrySet()
           
 Object get(Object key)
           
 boolean isEmpty()
           
 Set keySet()
           
 Object put(Object key, Object value)
           
 void putAll(Map map)
           
 Object remove(Object key)
           
 int size()
           
 Collection values()
           
 
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, 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, setDoubleValue, setFloatValue, setInputStreamValue, setIntValue, setListValue, setLongValue, setNodeValue, setObjectValue, setStringValue, setValue, setValueWithoutProcess, setXMLValue, toNodeManager, toRelation, toRelationManager, toString, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

NodeMap

public NodeMap(Node node)
Parameters:
node - The Node which is wrapped, and is presented as a Map.
Method Detail

clear

public void clear()
Specified by:
clear in interface Map

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map

remove

public Object remove(Object key)
Specified by:
remove in interface Map

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map

values

public Collection values()
Specified by:
values in interface Map

keySet

public Set keySet()
Specified by:
keySet in interface Map

putAll

public void putAll(Map map)
Specified by:
putAll in interface Map

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map

get

public Object get(Object key)
Specified by:
get in interface Map

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map

size

public int size()
Specified by:
size in interface Map


MMBase build 1.8.1.20060716