public class XPathPattern extends java.lang.Object implements Pattern
XPathPattern is an implementation of Pattern which uses an
XPath xpath.
ANY_NODE, DEFAULT_PRIORITY, NONE, NUMBER_OF_TYPES| Constructor and Description |
|---|
XPathPattern(org.jaxen.pattern.Pattern pattern) |
XPathPattern(java.lang.String text) |
| Modifier and Type | Method and Description |
|---|---|
protected org.jaxen.ContextSupport |
getContextSupport() |
java.lang.String |
getMatchesNodeName()
For patterns which only match an ATTRIBUTE_NODE or an ELEMENT_NODE then
this pattern may return the name of the element or attribute it matches.
|
short |
getMatchType()
DOCUMENT ME!
|
double |
getPriority()
Returns the default resolution policy of the pattern according to the XSLT conflict resolution
spec .
|
java.lang.String |
getText() |
Pattern[] |
getUnionPatterns()
If this pattern is a union pattern then this method should return an
array of patterns which describe the union pattern, which should contain
more than one pattern.
|
protected void |
handleJaxenException(org.jaxen.JaxenException exception) |
boolean |
matches(Node node)
DOCUMENT ME!
|
void |
setVariableContext(org.jaxen.VariableContext variableContext) |
java.lang.String |
toString() |
public XPathPattern(org.jaxen.pattern.Pattern pattern)
public XPathPattern(java.lang.String text)
public boolean matches(Node node)
Patternmatches in interface NodeFiltermatches in interface Patternnode - DOCUMENT ME!public java.lang.String getText()
public double getPriority()
PatterngetPriority in interface Patternpublic Pattern[] getUnionPatterns()
PatterngetUnionPatterns in interface Patternpublic short getMatchType()
PatterngetMatchType in interface Patternpublic java.lang.String getMatchesNodeName()
PatterngetMatchesNodeName in interface Patternpublic void setVariableContext(org.jaxen.VariableContext variableContext)
public java.lang.String toString()
toString in class java.lang.Objectprotected org.jaxen.ContextSupport getContextSupport()
protected void handleJaxenException(org.jaxen.JaxenException exception)
throws XPathException
XPathException