Interface TreeQueryNode

All Superinterfaces:
HasFacetPath
All Known Implementing Classes:
TreeQueryNodeImpl

public interface TreeQueryNode extends HasFacetPath
A node in a tree structure from which FacetPath instances are derived. The underlying tree structure can be modified which may change the result of HasFacetPath.getFacetPath(). The typical transformation is rotating the tree such that another node becomes its root using chRoot(). Instances of this class can be wrapped as Jena Nodes using NodeFacetPath which allows them to use in expressions.
  • Method Details

    • getTree

      TreeQuery getTree()
    • chRoot

      void chRoot()
      Rotate the tree such that this node becomes its root. This means, that if this node has a parent then it will become a child of this node.
    • reachingStep

      FacetStep reachingStep()
    • getParent

      TreeQueryNode getParent()
    • getOrCreateChild

      TreeQueryNode getOrCreateChild(FacetStep facetStep)
    • resolve

      TreeQueryNode resolve(FacetPath facetPath)
      Resolves a path, calls getOrCreateChild on nodes as needed