jd.xml.xslt.pattern
Class Key

java.lang.Object
  extended byjd.xml.xslt.pattern.Key

public class Key
extends Object

Key represents the key-element.


Constructor Summary
Key(Pattern pattern, Expression use, int index)
          Create a Key.
 
Method Summary
 void addNext(Key key)
           
 KeyMap buildKeyMap(XsltContext context, XPathNode root)
          Build the KeyMap of this Key for a document.
 int getIndex()
          Return the key index among all Keys of the stylesheet.
 Pattern getMatch()
           
 Key getNext()
           
 Expression getUse()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Key

public Key(Pattern pattern,
           Expression use,
           int index)
Create a Key.

Method Detail

addNext

public void addNext(Key key)

getNext

public Key getNext()

getIndex

public int getIndex()
Return the key index among all Keys of the stylesheet.


getUse

public Expression getUse()

getMatch

public Pattern getMatch()

buildKeyMap

public KeyMap buildKeyMap(XsltContext context,
                          XPathNode root)
Build the KeyMap of this Key for a document. The keyMap is a Hashtable with all possible key values as keys and XNodeSets as values containing the nodes which possess a key with the value.

Parameters:
context - the evaluation context
root - the root of the document for which the