|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xsl.process.Key
A class implementing the xsl:key functionality
Constructor Summary | |
Key(ExpandedQName name,
Pattern match,
Expression use,
Node namespaceContext)
Create a Key with the passed name, match pattern, and use expression |
Method Summary | |
void |
dump(PrintWriter writer,
int indent)
Dumps this object to the specified output stream. |
NodeSet |
evaluate(String value,
Node contextNode,
ExpressionContext context)
Return a node set of nodes in the same document as the context node that match the match pattern of the key and that have the passed value in the location specified by the use expression of the key. |
ExpandedQName |
getName()
Return the expanded name of this key |
void |
resetCache()
Reset any cached information in preparation for document evaluation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Key(ExpandedQName name, Pattern match, Expression use, Node namespaceContext)
name
- The expanded name of the keymatch
- The match pattern of the keyuse
- The use expression of the keynamespaceContext
- The node in the stylesheet that gives the namespace context
for the pattern and expression (the xsl:key element)Method Detail |
public ExpandedQName getName()
public NodeSet evaluate(String value, Node contextNode, ExpressionContext context) throws XPathEvaluationException
value
- The value to findcontextNode
- The context node specifying the document to referencecontext
- The expression context for evaluating the match pattern and use
expression
XPathEvaluationException
- If an error occurs during the evaluation of the
match pattern or use expression.public void resetCache()
resetCache
in interface XPathResetCache
public void dump(PrintWriter writer, int indent)
writer
- the PrintWriter
to write toindent
- the number of tabs to indent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |