com.xml_project.morganaxproc.core
Class XPathInXProcPattern

java.lang.Object
  extended by com.xml_project.morganaxproc.core.XPathInXProcPattern

public class XPathInXProcPattern
extends java.lang.Object

Instances of this class represent a ready to evaluate XPath match pattern


Method Summary
 nu.xom.Node[] evaluate(nu.xom.Node context, boolean deepVisit)
           Returns an array of nodes all matching the test expression.
 java.lang.String getExpression()
           Returns the expression represented in this XPath match pattern as string
 boolean matches(nu.xom.Node context)
           Tests, whether the given node matches the test.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

matches

public boolean matches(nu.xom.Node context)
                throws XPathException

Tests, whether the given node matches the test.

Parameters:
context - the node to be tested.
Returns:
true, if the node matches the test, false otherwise.
Throws:
XPathException

evaluate

public nu.xom.Node[] evaluate(nu.xom.Node context,
                              boolean deepVisit)
                       throws XPathException

Returns an array of nodes all matching the test expression.

Parameters:
context - the node to be tested.
deepVisit - true means, test all children too.
Returns:
an array of matching nodes.
Throws:
XPathException - if an error occurred.

getExpression

public java.lang.String getExpression()

Returns the expression represented in this XPath match pattern as string

Returns:
the expression