org.nodal.model
Interface AnchorNode

All Superinterfaces:
Node

public interface AnchorNode
extends Node

A Node that is formed by reference (via Paths) to some other Node.

Author:
leei

Method Summary
 Path contextPath()
          The Path to the anchor's context.
 Node target()
          The target Node of this anchor.
 Path targetPath()
          The Path to the anchor's target Node.
 
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

contextPath

public Path contextPath()
The Path to the anchor's context. If the targetPath() is an absolute Path, then this may be null.

Returns:
the context of this anchor as a Path

targetPath

public Path targetPath()
The Path to the anchor's target Node. This Path may be either absolute or relative. If it is relative, then the contextPath() must be a non-null absolute Path.

Returns:
the Path to the target Node for this anchor

target

public Node target()
The target Node of this anchor.

Returns:
the target Node of this anchor.