org.exolab.adaptx.xslt
Class LocationPathPattern
java.lang.Object
org.exolab.adaptx.xslt.LocationPathPattern
public abstract class LocationPathPattern
- extends java.lang.Object
This class represents a "Location Path Pattern" as specified in the
W3C XSLT 1.0 Recommendation.
- Version:
- $Revision: 3633 $ $Date: 2003-03-01 02:38:44 -0500 (Sat, 01 Mar 2003) $
- Author:
- Keith Visco
Method Summary |
abstract double |
getDefaultPriority()
Determines the priority of a PatternExpr as follows: |
abstract boolean |
matches(XPathNode node,
XPathContext context)
Determines if the given node is matched by this Pattern with
respect to the given context. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocationPathPattern
public LocationPathPattern()
getDefaultPriority
public abstract double getDefaultPriority()
- Determines the priority of a PatternExpr as follows:
From the 19991116 XSLT 1.0 Recommendation:
+ If the pattern has the form of a QName preceded by a
ChildOrAttributeAxisSpecifier or has the form
processing-instruction(Literal) then the priority is 0.
+ If the pattern has the form NCName:* preceded by a
ChildOrAttributeAxisSpecifier, then the priority is -0.25
+ Otherwise if the pattern consists of just a NodeTest
preceded by a ChildOrAttributeAxisSpecifier then the
priority is -0.5
+ Otherwise the priority is 0.5
- Returns:
- the priority for this PatternExpr
matches
public abstract boolean matches(XPathNode node,
XPathContext context)
throws XPathException
- Determines if the given node is matched by this Pattern with
respect to the given context.
- Parameters:
node
- the node to determine a match forcontext
- the XPathContext
- Returns:
- true if the given node is matched by this Pattern
- Throws:
XPathException
- when an error occurs during
evaluation