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
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
ConstructorsConstructorDescriptionThe constructor is called during the static initialization of the Configuration -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFunctionLibraries
(FunctionLibraryList list, Configuration config, int hostLanguage) Add the platform-specific function libraries to a function library list.Get the default DynamicLoader for the platformboolean
Is an ICU collator loaded?boolean
Is an ICU numberer loaded?void
initialize
(Configuration config) Perform platform-specific initialization of the configurationmakeUcaCollator
(String uri, Configuration config) If available, make a collation using the ICU-J Libraryvoid
Register all the external object models that are provided as standard with the relevant edition of Saxon for this ConfigurationMethods inherited from class net.sf.saxon.java.JavaPlatform
canReturnCollationKeys, compileRegularExpression, getCollationKey, getDefaultCountry, getDefaultLanguage, getExternalObjectType, getInstallationDirectory, getPlatformSuffix, getPlatformVersion, isDotNet, isJava, isWindows, JAXPStaticContextCheck, loadParser, loadParserForXmlFragments, locateResource, makeCollation, 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
-
Constructor Details
-
JavaPlatformPE
public JavaPlatformPE()The constructor is called during the static initialization of the Configuration
-
-
Method Details
-
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
Perform platform-specific initialization of the configuration- Specified by:
initialize
in interfacePlatform
- Overrides:
initialize
in classJavaPlatform
- Parameters:
config
- the Saxon Configuration
-
getDefaultDynamicLoader
Get the default DynamicLoader for the platform- Specified by:
getDefaultDynamicLoader
in interfacePlatform
- Overrides:
getDefaultDynamicLoader
in classJavaPlatform
- Returns:
- the default DynamicLoader
-
addFunctionLibraries
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
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
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
-