com.icl.saxon
Class KeyManager
KeyManager manages the set of key definitions in a stylesheet, and the indexes
associated with these key definitions
KeyManager() - create a KeyManager and initialise variables
|
KeyManager
public KeyManager()
create a KeyManager and initialise variables
getKeyDefinitions
public Vector getKeyDefinitions(int fingerprint)
Get all the key definitions that match a particular fingerprint
fingerprint
- The fingerprint of the name of the required key
- The key definition of the named key if there is one, or null otherwise.
selectByKey
public NodeEnumeration selectByKey(int fingerprint,
DocumentInfo doc,
String value,
Controller controller)
throws XPathException
Get the nodes with a given key value
fingerprint
- The fingerprint of the 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
- an enumeration of nodes, always in document order
setKeyDefinition
public void setKeyDefinition(KeyDefinition keydef)
Register a key definition. Note that multiple key definitions with the same name are
allowed