package com.treelight.krnl;

/**
 * Maintains an old version of information.
 *
 * @version 0.1
 * @author Eric Armstrong
 * @see ../NodesAndLists.html
 */
public class OldVersionWrapper implements NodeTypes {
  static final String type = OLD_VERSION;
  AbstractNode oldNode;

  /**
   * Returns the node or list contained by this wrapper.
   * (a list is an extension of AbstractNode
   */
  public AbstractNode getVersion() {
    return this.oldNode;
  } 

  /**
   * Create a new wrapper
   */
  public OldVersionWrapper(AbstractNode oldNode) { 
    this.oldNode = oldNode;
  } 
 
}//OldVersionWrapper
