public class PackageData extends Object
Constructor and Description |
---|
PackageData(Configuration config)
Create a PackageData object
|
Modifier and Type | Method and Description |
---|---|
Configuration |
getConfiguration()
Get the Configuration to which this package belongs
|
int |
getHostLanguage()
Get the language in which this package is written
|
LocationMap |
getLocationMap()
Get the location map for this package.
|
boolean |
isAllowXPath30()
Ask whether XPath 3.0 syntax is permitted in this package
|
boolean |
isSchemaAware()
Ask whether the package is schema-aware
|
void |
setAllowXPath30(boolean xpath30allowed)
Say whether XPath 3.0 syntax is permitted in this package
|
void |
setConfiguration(Configuration configuration)
Set the Configuration to which this package belongs
|
void |
setHostLanguage(int hostLanguage)
Set the language in which this package is written
|
void |
setLocationMap(LocationMap locationMap)
Set the location map for this package.
|
void |
setSchemaAware(boolean schemaAware)
Say whether the package is schema-aware
|
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 boolean isAllowXPath30()
public void setAllowXPath30(boolean xpath30allowed)
xpath30allowed
- set to true if XPath 3.0 (and by implication XQuery 3.0, XSLT 3.0) is enabledpublic boolean isSchemaAware()
public void setSchemaAware(boolean schemaAware)
schemaAware
- set to true if the package is schema-awarepublic LocationMap getLocationMap()
public void setLocationMap(LocationMap locationMap)
locationMap
- the location map for this packageCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.