com.icl.saxon
Class KeyManager
java.lang.Object
|
+--com.icl.saxon.KeyManager
- public class KeyManager
- extends java.lang.Object
KeyManager manages the set of key definitions in a stylesheet, and the indexes
associated with these key definitions
Constructor Summary |
KeyManager()
create a KeyManager and initialise variables |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyManager
public KeyManager()
- create a KeyManager and initialise variables
setKeyDefinition
public void setKeyDefinition(KeyDefinition keydef)
- Register a key definition. Note that multiple key definitions with the same name are
allowed
- Parameters:
name
- The absolute name of the keykeyDefinition
- The details of the key's definition
getKeyDefinitions
public java.util.Vector getKeyDefinitions(java.lang.String name)
- Get all the key definitions that match a particular name
- Parameters:
name
- The absolute name of the required key- Returns:
- The key definition of the named key if there is one, or null otherwise.
selectByKey
public java.util.Vector selectByKey(java.lang.String name,
DocumentInfo doc,
java.lang.String value,
Controller controller)
throws org.xml.sax.SAXException
- Get the nodes with a given key value
- Parameters:
name
- The absolute name of the required keydoc
- The source document in questionvalue
- The required key valuecontroller
- The controller, needed only the first time when the key is being built- Returns:
- a Vector of nodes, always in document order