org.nodal.model
Class NodeAdapter

java.lang.Object
  extended byorg.nodal.model.NodeAdapter

public class NodeAdapter
extends java.lang.Object

A utility class for those Objects that are interfaces on top of a Node.


Field Summary
protected  Node node
          The Node that is being adapted.
 
Constructor Summary
protected NodeAdapter()
          Initialize an unattached adapter.
protected NodeAdapter(Node node)
          Initialize an adapter with the given Node.
 
Method Summary
protected  void attachNode(Node node)
          Attach a Node to an unattached adapter.
 Capability capability()
          A Capability describing the permissions we have for this object.
 Node node()
           
 Path path()
          The Path that was used to access this object.
 Repository repository()
          The Repository within which this object is stored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

protected Node node
The Node that is being adapted.

Constructor Detail

NodeAdapter

protected NodeAdapter(Node node)
Initialize an adapter with the given Node.


NodeAdapter

protected NodeAdapter()
Initialize an unattached adapter.

Method Detail

repository

public Repository repository()
The Repository within which this object is stored.


path

public Path path()
The Path that was used to access this object.


capability

public Capability capability()
A Capability describing the permissions we have for this object.


node

public Node node()

attachNode

protected void attachNode(Node node)
Attach a Node to an unattached adapter.

Throws:
java.lang.RuntimeException - if the adapter is already attached.