edu.umd.cs.db.xsq
Class XPathNode

java.lang.Object
  |
  +--edu.umd.cs.db.xsq.XPathNode

public class XPathNode
extends java.lang.Object

XPathNode is the functional unit, location step, in the XPath query expression. Please refer to README for general information about the XPath query expression. For example, the XPath expression "/publication//book[@price>20]/title" contains three context nodes: 1. /publication 2. //book[@price>20] 3. /title


Constructor Summary
XPathNode()
           
XPathNode(java.lang.String tag, java.lang.String filter, java.lang.String output, boolean closure)
           
 
Method Summary
 java.lang.String getFilter()
          Get the filter String.
 java.lang.String getOutput()
          Get the output String.
 java.lang.String getTag()
          Get the tag.
 boolean isClosure()
          Get the value of closure.
 boolean nextIsClosure()
          Get the value of mNextIsClosure.
 void printNode(int depth)
           
 void setClosure(boolean v)
          Set the value of closure.
 void setFilter(java.lang.String newFilter)
          Set the filter String.
 void setNextIsClosure(boolean v)
          Set the value of nextIsClosure.
 void setOutput(java.lang.String newOutput)
          Set the output String.
 void setTag(java.lang.String newTag)
          Set the tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathNode

public XPathNode()

XPathNode

public XPathNode(java.lang.String tag,
                 java.lang.String filter,
                 java.lang.String output,
                 boolean closure)
Method Detail

nextIsClosure

public boolean nextIsClosure()
Get the value of mNextIsClosure.

Returns:
value of mNextIsClosure.

setNextIsClosure

public void setNextIsClosure(boolean v)
Set the value of nextIsClosure.

Parameters:
v - Value to assign to nextIsClosure.

isClosure

public boolean isClosure()
Get the value of closure.

Returns:
value of closure.

setClosure

public void setClosure(boolean v)
Set the value of closure.

Parameters:
v - Value to assign to closure.

setTag

public void setTag(java.lang.String newTag)
Set the tag.


getTag

public java.lang.String getTag()
Get the tag.


setFilter

public void setFilter(java.lang.String newFilter)
Set the filter String.


getFilter

public java.lang.String getFilter()
Get the filter String.


setOutput

public void setOutput(java.lang.String newOutput)
Set the output String.


getOutput

public java.lang.String getOutput()
Get the output String.


printNode

public void printNode(int depth)