package com.treelight.krnl;

/**
 * A node that stores text, and that's all.
 *
 * @version 0.1
 * @author Eric Armstrong
 * @see ../NodesAndLists.html
 */
public class TextNode extends ContentNode {
  static final String type = TEXT_NODE;

  // Text contained in the node
  private String text;

  // Return the node's content.
  // (No setter. We always want to create a new node
  // and do the appropriate versioning.
  public String getContent() {return this.text; }  

  public TextNode(String text) {
    this.text = text;
  }

}//TextNode
