org.mmbase.bridge.util
Class MapNodeManager
java.lang.Object
org.mmbase.bridge.util.AbstractNode
org.mmbase.bridge.util.AbstractNodeManager
org.mmbase.bridge.util.MapNodeManager
- All Implemented Interfaces:
- Comparable<Node>, Node, NodeManager
public class MapNodeManager
- extends AbstractNodeManager
A bridge NodeManager based on a Map of node values. The type of the values in the mapped is used to infer the 'fieldTypes'.
This happens lazily.
- Since:
- MMBase-1.9
- Version:
- $Id: MapNodeManager.java 41862 2010-04-13 09:32:29Z michiel $
- Author:
- Michiel Meeuwissen
| Methods inherited from class org.mmbase.bridge.util.AbstractNodeManager |
createFieldList, createNode, createNodeList, createQuery, createRelationList, edit, getAllowedRelations, getAllowedRelations, getAllowedRelations, getCloud, getDescendants, getDescription, getDescription, getFields, getFields, getFunctions, getGUIName, getGUIName, getGUIName, getInfo, getInfo, getList, getList, getList, getList, getName, getNodeManager, getParent, getProperties, getProperty, getSize, getValueWithoutProcess, isNodeManager, mayCreateNode, setNodeManager, setSize, setValueWithoutChecks, toNodeManager |
| Methods inherited from class org.mmbase.bridge.util.AbstractNode |
cancel, checkWrite, commit, compareTo, countRelatedNodes, countRelatedNodes, countRelations, countRelations, createAlias, createFunctionValue, createParameters, createRelation, delete, delete, deleteAlias, deleteRelations, deleteRelations, equals, getAliases, getBooleanValue, getByteValue, getChanged, getContext, getDateValue, getDecimalValue, getDoubleValue, getFieldValue, getFieldValue, getFloatValue, getFunction, getFunctionMap, getFunctionValue, getInputStreamValue, getIntValue, getListValue, getLongValue, getNodeFunction, getNodeValue, getNumber, getObjectValue, getPossibleContexts, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getRelations, getRelations, getRelations, getStringValue, getValue, getXMLValue, getXMLValue, hashCode, hasRelations, isChanged, isChanged, isNew, isNull, isRelation, isRelationManager, mayChangeContext, mayDelete, mayWrite, processNull, setBooleanValue, setByteValue, setContext, setDateValue, setDecimalValue, setDoubleValue, setFloatValue, setInputStreamValue, setIntValue, setListValue, setLongValue, setNodeValue, setObjectValue, setStringValue, setValue, setValueWithoutProcess, setXMLValue, toNodeNumber, toRelation, toRelationManager, validate |
| Methods inherited from interface org.mmbase.bridge.Node |
cancel, commit, countRelatedNodes, countRelatedNodes, countRelations, countRelations, createAlias, createParameters, createRelation, delete, delete, deleteAlias, deleteRelations, deleteRelations, getAliases, getBooleanValue, getByteValue, getChanged, getContext, getDateValue, getDecimalValue, getDoubleValue, getFieldValue, getFieldValue, getFloatValue, getFunction, getFunctionValue, getInputStreamValue, getIntValue, getListValue, getLongValue, getNodeValue, getNumber, getObjectValue, getPossibleContexts, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getRelations, getRelations, getRelations, getStringValue, getValue, getXMLValue, getXMLValue, hasRelations, isChanged, isChanged, isNew, isNull, isRelation, isRelationManager, mayChangeContext, mayDelete, mayWrite, setBooleanValue, setByteValue, setContext, setDateValue, setDecimalValue, setDoubleValue, setFloatValue, setInputStreamValue, setIntValue, setListValue, setLongValue, setNodeValue, setObjectValue, setStringValue, setValue, setValueWithoutProcess, setXMLValue, toRelation, toRelationManager, validate |
map
protected final Map<String,?> map
MapNodeManager
public MapNodeManager(Cloud cloud,
Map<String,?> m,
boolean create)
MapNodeManager
public MapNodeManager(Cloud cloud,
Map<String,?> m)
check
protected void check()
getFieldTypes
protected Map<String,Field> getFieldTypes()
- Specified by:
getFieldTypes in class AbstractNodeManager
hasField
public boolean hasField(String fieldName)
- Description copied from interface:
NodeManager
- Tests whether the field with the specified name exists in this nodemanager.
- Specified by:
hasField in interface NodeManager- Overrides:
hasField in class AbstractNodeManager
- Parameters:
fieldName - the name of the field to be returned
- Returns:
true if the field with the requested name exists
getField
public Field getField(String fieldName)
throws NotFoundException
- Description copied from interface:
NodeManager
- Returns the field with the specified name.
- Specified by:
getField in interface NodeManager- Overrides:
getField in class AbstractNodeManager
- Parameters:
fieldName - the name of the field to be returned
- Returns:
- the field with the requested name
- Throws:
NotFoundException - is the field does not exist
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 AbstractNodeManager
- Returns:
- string representation of a node
MMBase 2.0-SNAPSHOT - null