|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object storage.memory.memContent storage.memory.memMapContent
The canonical implementation of a MapContent object in memory. This implementation also contains subclasses for implementing Map and MapEditor given a Node that is using this class as its memContent.
Field Summary | |
protected java.util.HashMap |
content
|
protected CacheMap |
getters
|
protected MapType |
mapType
|
Fields inherited from class storage.memory.memContent |
allContents, nodeContents |
Method Summary | |
java.util.Map |
asMap()
|
protected NodeContent |
createNodeContent(Node n,
Capability cap,
storage.framework.RepoServices s)
Create a NodeContent object with the memContent, and the given Node, Capability, and RepoServices. |
boolean |
isValidProperty(java.lang.Object property)
Check for the validity of a given property value. |
java.util.Iterator |
properties()
A sequence of all of the properties currently indexing the contents if this Content. |
int |
size()
The number of properties contained in this Content object. |
NodeType |
type()
The type of this Content object. |
Getter |
value(java.lang.Object key,
NodeContent node)
A generic Getter for property values, given a property. |
protected GetterUtil |
valueGetter(java.lang.Object key,
NodeContent c)
Create or find a GetterUtil for this key. |
Methods inherited from class storage.memory.memContent |
assignNode, create, findNodeContent, getValue, ingest, initEdit, invert, invert, modify, nodeContent, rememberNodeContent, seatNode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final MapType mapType
protected java.util.HashMap content
protected CacheMap getters
Method Detail |
protected NodeContent createNodeContent(Node n, Capability cap, storage.framework.RepoServices s)
memContent
createNodeContent
in class memContent
n
- a Node associated with this memContentcap
- a Capability restricting access to operationss
- the RepoServices needed to manage Txns and create Nodes
public java.util.Map asMap()
public NodeType type()
storage.memory.MemContentI
Necessarily a NodeType type, and always a specific instance of MapType, RecordType or SequenceType.
public int size()
storage.memory.MemContentI
public java.util.Iterator properties()
storage.memory.MemContentI
protected GetterUtil valueGetter(java.lang.Object key, NodeContent c) throws PropertyTypeMismatch
PropertyTypeMismatch
public Getter value(java.lang.Object key, NodeContent node) throws PropertyTypeMismatch
storage.memory.MemContentI
Will throw an exception if the property type is invalid, but not if the property is not available in this Node's content. This way, a value Getter can be established in anticipation of the addition of a property.
key
- the Object that identifies this property
PropertyTypeMismatch
public boolean isValidProperty(java.lang.Object property)
storage.memory.MemContentI
property
- the property to be checked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |