public class PackageData extends Object
Modifier and Type | Field and Description |
---|---|
protected Configuration |
config |
protected KeyManager |
keyManager |
Constructor and Description |
---|
PackageData(Configuration config)
Create a PackageData object
|
Modifier and Type | Method and Description |
---|---|
void |
addGlobalVariable(GlobalVariable variable)
Add a global variable to the list of global variables contained in this package
|
IAccumulatorRegistry |
getAccumulatorRegistry()
Get the object that manages accumulator functions
|
Configuration |
getConfiguration()
Get the Configuration to which this package belongs
|
DecimalFormatManager |
getDecimalFormatManager()
Get a DecimalFormatManager to resolve the names of decimal formats used in calls
to the format-number() function.
|
SlotManager |
getGlobalSlotManager()
Get the SlotManager used to record the names and slot numbers of all global variables
|
List<GlobalVariable> |
getGlobalVariableList()
Get the list of global variables contained in this package
|
int |
getHostLanguage()
Get the language in which this package is written
|
KeyManager |
getKeyManager()
Get the KeyManager, containing definitions of keys available for use.
|
int |
getLocalLicenseId()
Get the local license id, identifying any local license in the case
where this package was loaded from a compiled package that contained its own
embedded license
|
int |
getXPathVersion()
Get the XPath version in use (as the version number times ten, e.g.
|
boolean |
isSchemaAware()
Ask whether the package is schema-aware
|
void |
setAccumulatorRegistry(IAccumulatorRegistry accumulatorRegistry)
Set the object that manages accumulator functions
|
void |
setConfiguration(Configuration configuration)
Set the Configuration to which this package belongs
|
void |
setDecimalFormatManager(DecimalFormatManager manager)
Set a DecimalFormatManager to resolve the names of decimal formats used in calls
to the format-number() function.
|
void |
setGlobalSlotManager(SlotManager manager)
Set the SlotManager to be used to record the names and slot numbers of all global variables
|
void |
setHostLanguage(int hostLanguage)
Set the language in which this package is written
|
void |
setKeyManager(KeyManager manager)
Set the KeyManager, containing definitions of keys available for use.
|
void |
setLocalLicenseId(int id)
Set the local license id, identifying any local license in the case
where this package was loaded from a compiled package that contained its own
embedded license
|
void |
setSchemaAware(boolean schemaAware)
Say whether the package is schema-aware
|
void |
setXPathVersion(int version)
Set the XPath version in use (as the version number times ten, e.g.
|
protected Configuration config
protected KeyManager keyManager
public PackageData(Configuration config)
config
- the Saxon configurationpublic Configuration getConfiguration()
public void setConfiguration(Configuration configuration)
configuration
- the Saxon configurationpublic int getHostLanguage()
Configuration.XSLT
, Configuration.XQUERY
, or Configuration.XPATH
public void setHostLanguage(int hostLanguage)
hostLanguage
- typically Configuration.XSLT
, Configuration.XQUERY
, or Configuration.XPATH
public void setXPathVersion(int version)
version
- the version number times tenpublic int getXPathVersion()
public void setLocalLicenseId(int id)
id
- identifier used to distinguish this local licensepublic int getLocalLicenseId()
public boolean isSchemaAware()
public void setSchemaAware(boolean schemaAware)
schemaAware
- set to true if the package is schema-awarepublic DecimalFormatManager getDecimalFormatManager()
public void setDecimalFormatManager(DecimalFormatManager manager)
manager
- the decimal format manager for this static contextpublic KeyManager getKeyManager()
public void setKeyManager(KeyManager manager)
manager
- the KeyManager. This is used to resolve key names, both explicit calls
on key() used in XSLT, and system-generated calls on key() which may
also appear in XQuery and XPathpublic IAccumulatorRegistry getAccumulatorRegistry()
public void setAccumulatorRegistry(IAccumulatorRegistry accumulatorRegistry)
accumulatorRegistry
- the manager of accumulator functionspublic SlotManager getGlobalSlotManager()
public void setGlobalSlotManager(SlotManager manager)
manager
- the SlotManager used for global variables contained in this packagepublic void addGlobalVariable(GlobalVariable variable)
variable
- the global variable to be addedpublic List<GlobalVariable> getGlobalVariableList()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.