org.exolab.adaptx.xslt
public class Pattern extends Object
Version: $Revision: 3740 $ $Date: 2003-05-13 04:01:53 -0400 (Tue, 13 May 2003) $
Constructor Summary | |
---|---|
Pattern()
Creates a new default pattern. | |
Pattern(String pattern) |
Method Summary | |
---|---|
LocationPathPattern | getMatchingPattern(XPathNode node, XPathContext context)
Returns the LocationPathPattern with the highest priority
that matches the given XPathNode using the given XPathContext.
|
boolean | matches(XPathNode node, XPathContext context)
Determines if the given node is matched by this Pattern with
respect to the given context.
|
String | toString()
Returns the String representation of this Pattern. |
Parameters: node the node to determine a match for context the XPathContext
Returns: the LocationPathPattern with the highest priority that matches the given XPathNode using the given XPathContext. Null will be returned if no matching LocationPathPattern objects are contained in this Pattern.
Parameters: node the node to determine a match for context the XPathContext
Returns: true if the given node is matched by this Pattern
Throws: XPathException when an error occurs during evaluation
Returns: the String representation of this Pattern.