Class 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 Detail

      • JavaPlatformPE

        public JavaPlatformPE()
        The constructor is called during the static initialization of the Configuration
    • Method Detail

      • initialize

        public void initialize​(Configuration config)
        Perform platform-specific initialization of the configuration
        Specified by:
        initialize in interface Platform
        Overrides:
        initialize in class JavaPlatform
        Parameters:
        config - the Saxon Configuration
      • addFunctionLibraries

        public void addFunctionLibraries​(FunctionLibraryList list,
                                         Configuration config,
                                         int hostLanguage)
        Add the platform-specific function libraries to a function library list.
        Overrides:
        addFunctionLibraries in class JavaPlatform
        Parameters:
        list - the function library list that is to be extended
        config - the Configuration
        hostLanguage - the host language, for example Configuration.XQUERY
      • 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 interface Platform
        Overrides:
        makeUcaCollator in class JavaPlatform
        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