Package com.saxonica.config
Class JavaPlatformPE
- java.lang.Object
-
- net.sf.saxon.java.JavaPlatform
-
- com.saxonica.config.JavaPlatformPE
-
- All Implemented Interfaces:
Platform
- Direct Known Subclasses:
JavaPlatformEE
public class JavaPlatformPE extends JavaPlatform
Implementation of the Platform class containing methods specific to the Java platform (as distinct from .NET) for Saxon-PE and Saxon-EE. This is a singleton class with no instance data.
-
-
Constructor Summary
Constructors Constructor Description JavaPlatformPE()
The constructor is called during the static initialization of the Configuration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFunctionLibraries(FunctionLibraryList list, Configuration config, int hostLanguage)
Add the platform-specific function libraries to a function library list.IDynamicLoader
getDefaultDynamicLoader()
Get the default DynamicLoader for the platformboolean
hasICUCollator()
Is an ICU collator loaded?boolean
hasICUNumberer()
Is an ICU numberer loaded?void
initialize(Configuration config)
Perform platform-specific initialization of the configurationStringCollator
makeUcaCollator(java.lang.String uri, Configuration config)
If available, make a collation using the ICU-J Libraryvoid
registerAllBuiltInObjectModels(Configuration config)
Register all the external object models that are provided as standard with the relevant edition of Saxon for this Configuration-
Methods inherited from class net.sf.saxon.java.JavaPlatform
canReturnCollationKeys, compileRegularExpression, getCollationKey, getDefaultCountry, getDefaultLanguage, getExternalObjectType, getInstallationDirectory, getPlatformSuffix, getPlatformVersion, isDotNet, isJava, JAXPStaticContextCheck, loadParser, loadParserForXmlFragments, locateResource, makeCollation, makeGeneratedClassLoader, makeStandardModuleURIResolver, resolveSource, setDefaultSAXParserFactory
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.Platform
showEmbeddedResources
-
-
-
-
Method Detail
-
hasICUCollator
public boolean hasICUCollator()
Is an ICU collator loaded?- Specified by:
hasICUCollator
in interfacePlatform
- Overrides:
hasICUCollator
in classJavaPlatform
- Returns:
- true if ICU collations appear loaded
-
hasICUNumberer
public boolean hasICUNumberer()
Is an ICU numberer loaded?- Specified by:
hasICUNumberer
in interfacePlatform
- Overrides:
hasICUNumberer
in classJavaPlatform
- Returns:
- true if ICU numberers appear loaded
-
initialize
public void initialize(Configuration config)
Perform platform-specific initialization of the configuration- Specified by:
initialize
in interfacePlatform
- Overrides:
initialize
in classJavaPlatform
- Parameters:
config
- the Saxon Configuration
-
getDefaultDynamicLoader
public IDynamicLoader getDefaultDynamicLoader()
Get the default DynamicLoader for the platform- Specified by:
getDefaultDynamicLoader
in interfacePlatform
- Overrides:
getDefaultDynamicLoader
in classJavaPlatform
- Returns:
- the default DynamicLoader
-
addFunctionLibraries
public void addFunctionLibraries(FunctionLibraryList list, Configuration config, int hostLanguage)
Add the platform-specific function libraries to a function library list.- Overrides:
addFunctionLibraries
in classJavaPlatform
- Parameters:
list
- the function library list that is to be extendedconfig
- the ConfigurationhostLanguage
- the host language, for example Configuration.XQUERY
-
registerAllBuiltInObjectModels
public void registerAllBuiltInObjectModels(Configuration config)
Register all the external object models that are provided as standard with the relevant edition of Saxon for this Configuration- Specified by:
registerAllBuiltInObjectModels
in interfacePlatform
- Overrides:
registerAllBuiltInObjectModels
in classJavaPlatform
- Parameters:
config
- the Saxon configuration- Since:
- 9.3
-
makeUcaCollator
public StringCollator makeUcaCollator(java.lang.String uri, Configuration config) throws XPathException
If available, make a collation using the ICU-J Library- Specified by:
makeUcaCollator
in interfacePlatform
- Overrides:
makeUcaCollator
in classJavaPlatform
- Parameters:
uri
- the collation URI (which will always be a UCA collation URI as defined in XSLT 3.0)config
- the Saxon configuration- Returns:
- the collation, or null if not available
- Throws:
XPathException
- if the URI is malformed in some way
-
-