01: /*
02: * Created on 08-May-2004
03: *
04: */
05: package com.jofti.btree;
06:
07: /**
08: * A wrapper for a nodelink in the result node to make the nodelink immutable. <p>
09: * @author Steve Woodcock
10: * @version 1.0<br>
11: */
12: public class ResultNodeLink extends NodeLink {
13:
14: private NodeLink nodeLink;
15:
16: public ResultNodeLink(NodeLink link) {
17: nodeLink = link;
18: }
19:
20: public INode getNode() {
21: return (INode) new ResultNode(nodeLink.getNode());
22: }
23:
24: /**
25: * @param node The node to set.
26: */
27: public void setNode(Node node) {
28: throw new UnsupportedOperationException(
29: "Modification of node not supported");
30:
31: }
32:
33: }
|