net.sf.saxon.trans
Class KeyDefinitionSet
java.lang.Object
net.sf.saxon.trans.KeyDefinitionSet
- Serializable
public class KeyDefinitionSet
extends java.lang.Object
implements Serializable
A set of xsl:key definitions in a stylesheet that share the same name
KeyDefinitionSet
public KeyDefinitionSet(StructuredQName keyName,
int keySetNumber)
Create a key definition set for keys sharing a given name
keyName
- the name of the key definitions in this setkeySetNumber
- a unique number identifying this key definition set
addKeyDefinition
public void addKeyDefinition(KeyDefinition keyDef)
throws XPathException
Add a key definition to this set of key definitions. The caller is responsible for ensuring that
all key definitions in a key definition set have the same name
keyDef
- the key definition to be added
XPathException
- if the key definition uses a different collation from others in the set
getKeyDefinitions
public List getKeyDefinitions()
Get the key definitions in this set
- the key definitions in this set
getKeyName
public StructuredQName getKeyName()
Get the name of the key definitions in this set (they all share the same name)
- the name of these key definitions
getKeySetNumber
public int getKeySetNumber()
Get the KeySet number. This uniquely identifies the KeyDefinitionSet within a KeyManager
isBackwardsCompatible
public boolean isBackwardsCompatible()
Determine if the keys are to be evaluated in backwards compatible mode
- true if backwards compatibility is in force for at least one of the keys in the set