storage.memory
Class BareMap
java.lang.Object
org.nodal.util.NodeFilter
storage.memory.BareContent
storage.memory.BareMap
- All Implemented Interfaces:
- Content, MapContent, MapNode, Node, NodeContent, TxnMonitorable
- public abstract class BareMap
- extends BareContent
- implements MapNode
Methods inherited from class storage.memory.BareContent |
addTxnHandler, asAnchor, asRecordNode, asSequenceNode, capability, content, getValue, invert, notifyInsertAfter, notifyInsertBefore, notifyRemoveKey, notifyRemoveRange, notifyReplaceRange, notifySetValue, properties, removeTxnHandler, size, value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.nodal.model.Node |
asAnchor, asRecordNode, asSequenceNode, bareNode, capability, content, editRecord, editSequence, history, id, path, repository, type |
map
protected memMapContent map
editMap
protected MapNode.Editor editMap
isValidProperty
public boolean isValidProperty(java.lang.Object property)
- Description copied from interface:
Content
- Check for the validity of a given property value.
- Specified by:
isValidProperty
in interface Content
- Parameters:
property
- the property to be checked
- Returns:
- true if that value can be used as a property of this Node
asMapNode
public MapNode asMapNode()
- Description copied from interface:
Node
- The Node's contents expressed as a Map.
This is a shortcut for content().asMap().
- Specified by:
asMapNode
in interface Node
- Overrides:
asMapNode
in class BareContent
edit
public final NodeContent.Editor edit()
- Description copied from interface:
Node
- An Editor for changing the Content of this Node.
If the Capability does not provide write access, then this will
return null.
- Specified by:
edit
in interface Node
- Specified by:
edit
in class BareContent
asMap
public java.util.Map asMap()
- Description copied from interface:
MapContent
- Return the contents of this collection as an unmodifiable java Map.
- Specified by:
asMap
in interface MapContent
- Returns:
editMap
public abstract MapNode.Editor editMap()
- Description copied from interface:
MapNode
- Directly access MapEditor.
- Specified by:
editMap
in interface MapNode
- Overrides:
editMap
in class NodeFilter
toString
public java.lang.String toString()