Class XPathPattern
java.lang.Object
org.dom4j.xpath.XPathPattern
- All Implemented Interfaces:
NodeFilter, Pattern
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.jaxen.Contextprivate org.jaxen.pattern.Patternprivate StringFields inherited from interface Pattern
ANY_NODE, DEFAULT_PRIORITY, NONE, NUMBER_OF_TYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jaxen.ContextSupportFor 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.shortDOCUMENT ME!doubleReturns the default resolution policy of the pattern according to the XSLT conflict resolution spec .getText()Pattern[]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 voidhandleJaxenException(org.jaxen.JaxenException exception) booleanDOCUMENT ME!voidsetVariableContext(org.jaxen.VariableContext variableContext) toString()
-
Field Details
-
text
-
pattern
private org.jaxen.pattern.Pattern pattern -
context
private org.jaxen.Context context
-
-
Constructor Details
-
XPathPattern
public XPathPattern(org.jaxen.pattern.Pattern pattern) -
XPathPattern
-
-
Method Details
-
matches
-
getText
-
getPriority
public double getPriority()Description copied from interface:PatternReturns the default resolution policy of the pattern according to the XSLT conflict resolution spec .- Specified by:
getPriorityin interfacePattern- Returns:
- DOCUMENT ME!
-
getUnionPatterns
Description copied from interface:PatternIf 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. Otherwise this method should return null.- Specified by:
getUnionPatternsin interfacePattern- Returns:
- an array of the patterns which make up this union pattern or null if this pattern is not a union pattern
-
getMatchType
public short getMatchType()Description copied from interface:PatternDOCUMENT ME!- Specified by:
getMatchTypein interfacePattern- Returns:
- the type of node the pattern matches which by default should return ANY_NODE if it can match any kind of node.
-
getMatchesNodeName
Description copied from interface:PatternFor 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. This allows a more efficient rule matching algorithm to be performed, rather than a brute force approach of evaluating every pattern for a given Node.- Specified by:
getMatchesNodeNamein interfacePattern- Returns:
- the name of the element or attribute this pattern matches or null if this pattern matches any or more than one name.
-
setVariableContext
public void setVariableContext(org.jaxen.VariableContext variableContext) -
toString
-
getContextSupport
protected org.jaxen.ContextSupport getContextSupport() -
handleJaxenException
- Throws:
XPathException
-