com.japisoft.xpath.node
Class Node

java.lang.Object
  |
  +--com.japisoft.xpath.node.AbstractNode
        |
        +--com.japisoft.xpath.node.Node

public class Node
extends AbstractNode

Real node

Author:
(c) 2003 JAPISOFT
See Also:
AbstractNode

Constructor Summary
Node()
           
 
Method Summary
 java.lang.Object eval(XPathContext context)
           
 java.lang.String getAxis()
           
 java.lang.String getName()
           
 Node getNextNodeLocation()
           
 Predicate[] getPredicates()
           
 java.lang.String getType()
           
 boolean hasAxis()
           
 boolean isFromRoot()
           
 void setAxis(java.lang.String axis)
          Axis name : 'ancestor' 'ancestor-or-self' 'attribute' 'child' 'descendant' 'descendant-or-self' 'following' 'following-sibling' 'namespace' 'parent' 'preceding' 'preceding-sibling' 'self'
 void setFromRoot(boolean from)
          Set if this node starts from the document root
 void setName(java.lang.String name, java.lang.String namespacePrefix)
          Node name
 void setType(java.lang.String type)
           
 java.lang.String toString()
           
 
Methods inherited from class com.japisoft.xpath.node.AbstractNode
addNode, getNodeAt, getNodeCount, getParentNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Node

public Node()
Method Detail

setName

public void setName(java.lang.String name,
                    java.lang.String namespacePrefix)
Node name

Parameters:
name - The node name

getName

public java.lang.String getName()
Returns:
the node name

setAxis

public void setAxis(java.lang.String axis)
Axis name : 'ancestor' 'ancestor-or-self' 'attribute' 'child' 'descendant' 'descendant-or-self' 'following' 'following-sibling' 'namespace' 'parent' 'preceding' 'preceding-sibling' 'self'


hasAxis

public boolean hasAxis()

getAxis

public java.lang.String getAxis()

setType

public void setType(java.lang.String type)

getType

public java.lang.String getType()

setFromRoot

public void setFromRoot(boolean from)
Set if this node starts from the document root


isFromRoot

public boolean isFromRoot()
Returns:
true if this node starts from the document root

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getNextNodeLocation

public Node getNextNodeLocation()
Returns:
the next sub-node from this node

getPredicates

public Predicate[] getPredicates()
Returns:
all predicates for this node

eval

public java.lang.Object eval(XPathContext context)
Specified by:
eval in class AbstractNode