|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nodal.util.NodeFilter
storage.memory.BareContent
Nested Class Summary | |
static class |
BareContent.Editor
|
Field Summary | |
protected storage.memory.MemContentI |
c
|
protected Capability |
cap
|
protected storage.framework.RepoServices |
services
|
protected java.util.List |
txnHandlers
|
Fields inherited from class org.nodal.util.NodeFilter |
node |
Constructor Summary | |
protected |
BareContent(Node n,
memContent c,
Capability cap,
storage.framework.RepoServices nodeFactory)
|
Method Summary | |
void |
addTxnHandler(TxnHandler handler)
Add a TxnHandler to be invoked when this object changes. |
AnchorNode |
asAnchor()
An AnchorNode interface if this Node is an anchor, otherwise null. |
MapNode |
asMapNode()
The Node's contents expressed as a Map. |
RecordNode |
asRecordNode()
The Node's contents expressed as a Record. |
SequenceNode |
asSequenceNode()
The Node's contents expressed as a Sequence. |
Capability |
capability()
A Capability describing the User's current permissions for this Node. |
NodeContent |
content()
The Node's contents. |
abstract NodeContent.Editor |
edit()
An Editor for changing the Content of this Node. |
java.lang.Object |
getValue(java.lang.Object idx)
Access the property value, given a property. |
Operator |
invert(Operator op)
Produce an Operator that would undo the application of op
on this Content. |
protected void |
notifyInsertAfter(int index,
java.lang.Object value)
|
protected void |
notifyInsertBefore(int index,
java.lang.Object value)
|
protected void |
notifyRemoveKey(java.lang.Object key)
|
protected void |
notifyRemoveRange(int start,
int end)
|
protected void |
notifyReplaceRange(int start,
int end,
java.lang.Object seq)
|
protected void |
notifySetValue(java.lang.Object property,
java.lang.Object value)
|
java.util.Iterator |
properties()
A sequence of all of the properties currently indexing the contents if this Content. |
void |
removeTxnHandler(TxnHandler handler)
Remove a previously added TxnHandler. |
int |
size()
The number of properties contained in this Content object. |
Getter |
value(java.lang.Object obj)
A generic Getter for property values, given a property. |
Methods inherited from class org.nodal.util.NodeFilter |
bareNode, editMap, editRecord, editSequence, history, id, path, repository, type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.nodal.model.Node |
bareNode, editMap, editRecord, editSequence, history, id, path, repository, type |
Methods inherited from interface org.nodal.model.Content |
isValidProperty, type |
Field Detail |
protected final Capability cap
protected final storage.memory.MemContentI c
protected final storage.framework.RepoServices services
protected java.util.List txnHandlers
Constructor Detail |
protected BareContent(Node n, memContent c, Capability cap, storage.framework.RepoServices nodeFactory)
Method Detail |
public Capability capability()
Node
capability
in interface Node
capability
in class NodeFilter
public NodeContent content()
Node
If the Capability does not provide read access, then this will return null.
content
in interface Node
content
in class NodeFilter
public AnchorNode asAnchor()
Node
asAnchor
in interface Node
asAnchor
in class NodeFilter
public void addTxnHandler(TxnHandler handler)
TxnMonitorable
addTxnHandler
in interface TxnMonitorable
handler
- a TxnHandler whose notify methods will be invoked
when this object changes.public void removeTxnHandler(TxnHandler handler)
TxnMonitorable
removeTxnHandler
in interface TxnMonitorable
handler
- a TxnHandler that has previously been added.protected void notifyInsertAfter(int index, java.lang.Object value)
protected void notifyInsertBefore(int index, java.lang.Object value)
protected void notifyRemoveKey(java.lang.Object key)
protected void notifyRemoveRange(int start, int end)
protected void notifyReplaceRange(int start, int end, java.lang.Object seq)
protected void notifySetValue(java.lang.Object property, java.lang.Object value)
public int size()
Content
size
in interface Content
public java.util.Iterator properties()
Content
properties
in interface Content
public Getter value(java.lang.Object obj) throws PropertyConstraintFailure
Content
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.
value
in interface Content
obj
- the Object that identifies this property
PropertyConstraintFailure
public final java.lang.Object getValue(java.lang.Object idx) throws PropertyConstraintFailure
Content
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.
getValue
in interface Content
idx
- the Object that identifies this property
PropertyConstraintFailure
public Operator invert(Operator op) throws InvalidOperator, ConstraintFailure
Content
op
on this Content.
invert
in interface Content
InvalidOperator
ConstraintFailure
public MapNode asMapNode()
Node
asMapNode
in interface Node
asMapNode
in class NodeFilter
public RecordNode asRecordNode()
Node
asRecordNode
in interface Node
asRecordNode
in class NodeFilter
public SequenceNode asSequenceNode()
Node
asSequenceNode
in interface Node
asSequenceNode
in class NodeFilter
public abstract NodeContent.Editor edit()
Node
edit
in interface Node
edit
in class NodeFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |