org.ilrt.inkling.query
Class TreeNode

java.lang.Object
  |
  +--org.ilrt.inkling.api.Node
        |
        +--org.ilrt.inkling.query.TreeNode

public class TreeNode
extends Node

Used in QE.java for building a resultset with no duplicates


Field Summary
 java.util.Vector kids
           
 int level
           
 
Fields inherited from class org.ilrt.inkling.api.Node
isbnode, isresource
 
Constructor Summary
TreeNode()
           
TreeNode(Node node)
          special constructor for converting Nodes to TreenOdes
TreeNode(java.lang.String content)
           
 
Method Summary
 void add(TreeNode node)
           
 java.lang.String dumpall()
           
 void dumpKids()
          printing method for debugging
 boolean equals(java.lang.Object obj)
          Overridden equals method
 java.util.Vector getLinks()
           
 TreeNode getParent()
           
 int getType()
           
 java.lang.String getVar()
           
 boolean hasTextRecursive(java.lang.String text)
          Check that the current treenode doesn't contain a piece of content
 int hasTextVarRecursive(java.lang.String text, java.lang.String var, boolean isresource)
          Check that the current treenode doesn't contain a piece of content and a particular variable name
 void setParent(TreeNode parent)
           
 void setType(int i)
           
 void setVar(java.lang.String var)
           
 java.lang.String spew(int level, java.lang.String s)
          printing for debugging
 java.lang.String toString()
          Method for printing content
 
Methods inherited from class org.ilrt.inkling.api.Node
getBlank, getBlank, getContent, getGraph, getID, getLiteral, getLiteral, getObjects, getObjects, getPredicates, getPredicates, getResource, getResource, getSubjects, getSubjects, inspect, setContent, setGraph, setID, sha1
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

kids

public java.util.Vector kids

level

public int level
Constructor Detail

TreeNode

public TreeNode()

TreeNode

public TreeNode(java.lang.String content)

TreeNode

public TreeNode(Node node)
special constructor for converting Nodes to TreenOdes
Method Detail

setType

public void setType(int i)

getType

public int getType()

getVar

public java.lang.String getVar()

setVar

public void setVar(java.lang.String var)

add

public void add(TreeNode node)

getLinks

public java.util.Vector getLinks()

dumpall

public java.lang.String dumpall()

getParent

public TreeNode getParent()

setParent

public void setParent(TreeNode parent)

toString

public java.lang.String toString()
Description copied from class: Node
Method for printing content
Overrides:
toString in class Node

spew

public java.lang.String spew(int level,
                             java.lang.String s)
printing for debugging

equals

public boolean equals(java.lang.Object obj)
Overridden equals method
Overrides:
equals in class Node

hasTextRecursive

public boolean hasTextRecursive(java.lang.String text)
Check that the current treenode doesn't contain a piece of content

hasTextVarRecursive

public int hasTextVarRecursive(java.lang.String text,
                               java.lang.String var,
                               boolean isresource)
Check that the current treenode doesn't contain a piece of content and a particular variable name

dumpKids

public void dumpKids()
printing method for debugging