| 
||||||||||
| 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 Nodecapability in class NodeFilterpublic NodeContent content()
NodeIf the Capability does not provide read access, then this will return null.
content in interface Nodecontent in class NodeFilterpublic AnchorNode asAnchor()
Node
asAnchor in interface NodeasAnchor in class NodeFilterpublic void addTxnHandler(TxnHandler handler)
TxnMonitorable
addTxnHandler in interface TxnMonitorablehandler - a TxnHandler whose notify methods will be invoked
 when this object changes.public void removeTxnHandler(TxnHandler handler)
TxnMonitorable
removeTxnHandler in interface TxnMonitorablehandler - 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 Contentpublic java.util.Iterator properties()
Content
properties in interface Content
public Getter value(java.lang.Object obj)
             throws PropertyConstraintFailure
ContentWill 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 Contentobj - the Object that identifies this property
PropertyConstraintFailure
public final java.lang.Object getValue(java.lang.Object idx)
                                throws PropertyConstraintFailure
ContentWill 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 Contentidx - the Object that identifies this property
PropertyConstraintFailure
public Operator invert(Operator op)
                throws InvalidOperator,
                       ConstraintFailure
Contentop
 on this Content.
invert in interface ContentInvalidOperator
ConstraintFailurepublic MapNode asMapNode()
Node
asMapNode in interface NodeasMapNode in class NodeFilterpublic RecordNode asRecordNode()
Node
asRecordNode in interface NodeasRecordNode in class NodeFilterpublic SequenceNode asSequenceNode()
Node
asSequenceNode in interface NodeasSequenceNode in class NodeFilterpublic abstract NodeContent.Editor edit()
Node
edit in interface Nodeedit in class NodeFilter
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||