|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dom4j.xpath.XPathPattern
XPathPattern is an implementation of Pattern
which uses an XPath xpath.
| Field Summary |
| Fields inherited from interface org.dom4j.rule.Pattern |
ANY_NODE, DEFAULT_PRIORITY, NONE, NUMBER_OF_TYPES |
| Constructor Summary | |
XPathPattern(org.jaxen.pattern.Pattern pattern)
|
|
XPathPattern(java.lang.String text)
|
|
| Method Summary | |
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()
|
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 e)
|
boolean |
matches(Node node)
matches returns true if the given node matches
the filter condition. |
void |
setVariableContext(org.jaxen.VariableContext variableContext)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public XPathPattern(org.jaxen.pattern.Pattern pattern)
public XPathPattern(java.lang.String text)
| Method Detail |
public boolean matches(Node node)
NodeFiltermatches returns true if the given node matches
the filter condition.
matches in interface Patternpublic java.lang.String getText()
public double getPriority()
Pattern
getPriority in interface Patternpublic Pattern[] getUnionPatterns()
Pattern
getUnionPatterns in interface Patternpublic short getMatchType()
getMatchType in interface Patternpublic java.lang.String getMatchesNodeName()
Pattern
getMatchesNodeName in interface Patternpublic void setVariableContext(org.jaxen.VariableContext variableContext)
public java.lang.String toString()
protected org.jaxen.ContextSupport getContextSupport()
protected void handleJaxenException(org.jaxen.JaxenException e)
throws XPathException
XPathException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||