|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The fundamental unit of data in the NODAL data model.
The Node is the fundamental unit of data in the NODAL data model. It represents both the fundamental unit of addressability, granularity of storage, permission management and history.
The Node interface is essentially a meeting place for all of these different roles, presenting only enough information to allow for identification of a Node object and a set of methods for accessing other (possibly restricted access) interfaces that represent these other roles.
As an addressible unit, every Node has a unique identifer known
as the NID or Node id. It is a globally unique Name that is bound
to this Node object. It also has a fixed Type
,
that identifies the
kind of collection represented by its Content
. Both of these
properties are established at the time of creation and are
accessible directly via the Node interface.
Method Summary | |
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. |
Node |
bareNode()
The canonical "bare" instance of this Node. |
Capability |
capability()
A Capability describing the User's current permissions for this Node. |
NodeContent |
content()
The Node's contents. |
NodeContent.Editor |
edit()
An Editor for changing the Content of this Node. |
MapNode.Editor |
editMap()
This NodeEditor as a MapEditor. |
RecordNode.Editor |
editRecord()
This NodeEditor as a RecordEditor. |
SequenceNode.Editor |
editSequence()
This NodeEditor as a SequenceEditor. |
NodeHistory |
history()
The Node's history. |
Name |
id()
The Node's global identity expressed as a Name. |
Path |
path()
An absolute Path that is bound to this Node. |
Repository |
repository()
The Repository containing this Node. |
NodeType |
type()
The data Type of the Node's contents. |
Method Detail |
public Repository repository()
public Path path()
public Capability capability()
public Name id()
public NodeType type()
public Node bareNode()
A "bare" instance is the instance of this Node that is not a NodeContent, NodeEditor or NodeHistory instance and that has a trivial, direct Path.
public NodeContent content()
If the Capability does not provide read access, then this will return null.
public MapNode asMapNode()
public SequenceNode asSequenceNode()
public RecordNode asRecordNode()
public NodeContent.Editor edit()
public MapNode.Editor editMap()
Returns null if the type is not MapType.
public RecordNode.Editor editRecord()
Returns null if the type is not RecordType.
public SequenceNode.Editor editSequence()
Returns null if the type is not SequenceType.
public NodeHistory history()
If the Capability does not provide history access, then this will return null.
public AnchorNode asAnchor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |