KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jofti > btree > ResultNodeLink


1 /*
2  * Created on 08-May-2004
3  *
4  */

5 package com.jofti.btree;
6
7 /**
8 * A wrapper for a nodelink in the result node to make the nodelink immutable. <p>
9 * @author Steve Woodcock
10 * @version 1.0<br>
11 */

12 public class ResultNodeLink extends NodeLink{
13     
14     private NodeLink nodeLink;
15
16     
17     public ResultNodeLink(NodeLink link){
18         nodeLink = link;
19     }
20     public INode getNode()
21     {
22         return (INode) new ResultNode(nodeLink.getNode());
23     }
24
25     /**
26      * @param node The node to set.
27      */

28     public void setNode(Node node)
29     {
30         throw new UnsupportedOperationException JavaDoc("Modification of node not supported");
31
32     }
33
34 }
35
Popular Tags