public class PackageData
extends java.lang.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
|
AccumulatorRegistry |
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
|
java.util.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
|
java.lang.String |
getTargetEdition()
Get the target Saxon edition under which this package will execute
|
int |
getXPathVersion()
Get the XPath version in use (as the version number times ten, e.g.
|
boolean |
isRelocatable()
Ask whether the package can be deployed to a different location, with a different base URI
|
boolean |
isSchemaAware()
Ask whether the package is schema-aware
|
TypeAliasManager |
obtainTypeAliasManager()
Get the type alias manager if one already exists, creating it if it does not already exist
|
void |
setAccumulatorRegistry(AccumulatorRegistry 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 |
setRelocatable(boolean relocatable)
Say whether the package can be deployed to a different location, with a different base URI
|
void |
setSchemaAware(boolean schemaAware)
Say whether the package is schema-aware
|
void |
setTargetEdition(java.lang.String edition)
Set the target Saxon edition under which this package will execute
|
void |
setTypeAliasManager(TypeAliasManager manager) |
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 int getXPathVersion()
public void setLocalLicenseId(int id)
id
- identifier used to distinguish this local licensepublic int getLocalLicenseId()
public void setTargetEdition(java.lang.String edition)
edition
- the Saxon edition e.g. "HE" or "JS"public java.lang.String getTargetEdition()
public boolean isRelocatable()
public void setRelocatable(boolean relocatable)
relocatable
- if true then static-base-uri() represents the deployed location of the package,
rather than its compile time locationpublic 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 AccumulatorRegistry getAccumulatorRegistry()
public void setAccumulatorRegistry(AccumulatorRegistry 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 java.util.List<GlobalVariable> getGlobalVariableList()
public void setTypeAliasManager(TypeAliasManager manager)
public TypeAliasManager obtainTypeAliasManager()
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.