storage.memory
Class BareMap

java.lang.Object
  extended byorg.nodal.util.NodeFilter
      extended bystorage.memory.BareContent
          extended bystorage.memory.BareMap
All Implemented Interfaces:
Content, MapContent, MapNode, Node, NodeContent, TxnMonitorable

public abstract class BareMap
extends BareContent
implements MapNode


Nested Class Summary
 
Nested classes inherited from class storage.memory.BareContent
BareContent.Editor
 
Nested classes inherited from class org.nodal.model.MapNode
MapNode.Editor
 
Field Summary
protected  MapNode.Editor editMap
           
protected  memMapContent map
           
 
Fields inherited from class storage.memory.BareContent
c, cap, services, txnHandlers
 
Fields inherited from class org.nodal.util.NodeFilter
node
 
Method Summary
 java.util.Map asMap()
          Return the contents of this collection as an unmodifiable java Map.
 MapNode asMapNode()
          The Node's contents expressed as a Map.
 NodeContent.Editor edit()
          An Editor for changing the Content of this Node.
abstract  MapNode.Editor editMap()
          Directly access MapEditor.
 boolean isValidProperty(java.lang.Object property)
          Check for the validity of a given property value.
 java.lang.String toString()
           
 
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 org.nodal.util.NodeFilter
bareNode, editRecord, editSequence, history, id, path, repository, type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nodal.model.Content
getValue, invert, properties, size, type, value
 
Methods inherited from interface org.nodal.model.Node
asAnchor, asRecordNode, asSequenceNode, bareNode, capability, content, editRecord, editSequence, history, id, path, repository, type
 
Methods inherited from interface org.nodal.model.TxnMonitorable
addTxnHandler, removeTxnHandler
 

Field Detail

map

protected memMapContent map

editMap

protected MapNode.Editor editMap
Method Detail

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()