Package net.sf.saxon.trans
Class KeyDefinitionSet
java.lang.Object
net.sf.saxon.trans.KeyDefinitionSet
- All Implemented Interfaces:
Serializable
A set of xsl:key definitions in a stylesheet that share the same name
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean
(package private) String
(package private) List<KeyDefinition>
(package private) StructuredQName
(package private) int
-
Constructor Summary
ConstructorsConstructorDescriptionKeyDefinitionSet
(StructuredQName keyName, int keySetNumber) Create a key definition set for keys sharing a given name -
Method Summary
Modifier and TypeMethodDescriptionvoid
addKeyDefinition
(KeyDefinition keyDef) Add a key definition to this set of key definitions.Get the key definitions in this setGet the name of the key definitions in this set (they all share the same name)int
Get the KeySet number.boolean
Determine if the keys are to be evaluated in backwards compatible mode
-
Field Details
-
keyName
StructuredQName keyName -
keySetNumber
int keySetNumber -
keyDefinitions
List<KeyDefinition> keyDefinitions -
collationName
String collationName -
backwardsCompatible
boolean backwardsCompatible
-
-
Constructor Details
-
KeyDefinitionSet
Create a key definition set for keys sharing a given name- Parameters:
keyName
- the name of the key definitions in this setkeySetNumber
- a unique number identifying this key definition set
-
-
Method Details
-
addKeyDefinition
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- Parameters:
keyDef
- the key definition to be added- Throws:
XPathException
- if the key definition uses a different collation from others in the set
-
getKeyName
Get the name of the key definitions in this set (they all share the same name)- Returns:
- the name of these key definitions
-
getKeySetNumber
public int getKeySetNumber()Get the KeySet number. This uniquely identifies the KeyDefinitionSet within a KeyManager- Returns:
- the unique number
-
getKeyDefinitions
Get the key definitions in this set- Returns:
- the key definitions in this set
-
isBackwardsCompatible
public boolean isBackwardsCompatible()Determine if the keys are to be evaluated in backwards compatible mode- Returns:
- true if backwards compatibility is in force for at least one of the keys in the set
-