org.planx.xpath
Class Context

java.lang.Object
  extended by org.planx.xpath.Context

public class Context
extends Object

An XPath context.


Constructor Summary
Context()
          Create an empty context.
Context(Object ctxtNode, int ctxtPosition, int ctxtSize)
          Create a context with the context node, context position, and context size.
 
Method Summary
 Object getNode()
          Returns the context node.
 int getPosition()
          Returns the context position of the context node.
 int getSize()
          Returns the context size.
 void setNode(Object ctxtNode)
          Set the context node.
 void setPosition(int ctxtPosition)
          Set the context position.
 void setSize(int ctxtSize)
          Set the context size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Context

public Context()
Create an empty context.


Context

public Context(Object ctxtNode,
               int ctxtPosition,
               int ctxtSize)
Create a context with the context node, context position, and context size.

Method Detail

getNode

public Object getNode()
Returns the context node.


setNode

public void setNode(Object ctxtNode)
Set the context node.


getPosition

public int getPosition()
Returns the context position of the context node.


setPosition

public void setPosition(int ctxtPosition)
Set the context position.


getSize

public int getSize()
Returns the context size.


setSize

public void setSize(int ctxtSize)
Set the context size.



Copyright © 2010. All Rights Reserved.