org.nodal.model
Interface NodeHistory

All Superinterfaces:
Node

public interface NodeHistory
extends Node

An interface to the transaction history of a Node.

See Also:
NodeVersion

Method Summary
 NodeVersion dated(Timestamp time)
          The NodeVersion record that reflects this Node's state at the requested time.
 NodeVersion newestVersion()
          The most recent version of this Node.
 NodeVersion oldestVersion()
          The oldest version of this Node.
 NodeVersion.Iterator versions()
          An Iterator over all the versions of this Node, from newest to oldest.
 
Methods inherited from interface org.nodal.model.Node
asAnchor, asMapNode, asRecordNode, asSequenceNode, bareNode, capability, content, edit, editMap, editRecord, editSequence, history, id, path, repository, type
 

Method Detail

versions

public NodeVersion.Iterator versions()
An Iterator over all the versions of this Node, from newest to oldest.

Returns:
an Iterator over all NodeVersions of the Node

dated

public NodeVersion dated(Timestamp time)
The NodeVersion record that reflects this Node's state at the requested time.


newestVersion

public NodeVersion newestVersion()
The most recent version of this Node.

Returns:
the newest NodeVersion record for this Node

oldestVersion

public NodeVersion oldestVersion()
The oldest version of this Node. This version holds the transaction that created the Node.

Returns:
the oldest NodeVersion record for this Node.