public class SaxonRepository
extends java.lang.Object
| Constructor and Description |
|---|
SaxonRepository(Repository parent) |
SaxonRepository(Storage storage) |
| Modifier and Type | Method and Description |
|---|---|
net.sf.saxon.lib.ModuleURIResolver |
getModuleURIResolver() |
Repository |
getUnderlyingRepo() |
javax.xml.transform.URIResolver |
getURIResolver(URISpace space) |
Package |
installPackage(java.io.File pkg,
boolean force,
UserInteractionStrategy interact)
Install a package from a file.
|
Package |
installPackage(java.net.URI pkg,
boolean force,
UserInteractionStrategy interact)
Install a package from a URI location.
|
void |
registerExtensionFunctions(net.sf.saxon.Configuration config)
TODO: Regarding versionning, see comments of
Repository.resolve(String,URISpace)
(AKA we don't always want the latest version). |
boolean |
removePackage(java.lang.String pkg,
boolean force,
UserInteractionStrategy interact)
Remove a package from the repository, by name.
|
javax.xml.transform.Source |
resolve(java.lang.String href,
URISpace space)
Resolve a Saxon-specific stuff in this repository, in the specified space, return a File.
|
public SaxonRepository(Storage storage) throws PackageException
PackageExceptionpublic SaxonRepository(Repository parent) throws PackageException
PackageExceptionpublic Repository getUnderlyingRepo()
public Package installPackage(java.io.File pkg, boolean force, UserInteractionStrategy interact) throws PackageException
pkg - The package file (typically a *.xar or *.xaw file).force - If false, an error is thrown if the package already exists.
If true, the package is first deleted from the repository if it already exists.interact - How the repository interacts with the user.PackageException - If any error occurs.public Package installPackage(java.net.URI pkg, boolean force, UserInteractionStrategy interact) throws PackageException
pkg - The package file (typically a *.xar or *.xaw file).force - If false, an error is thrown if the package already exists.
If true, the package is first deleted from the repository if it already exists.interact - How the repository interacts with the user.PackageException - If any error occurs.public boolean removePackage(java.lang.String pkg,
boolean force,
UserInteractionStrategy interact)
throws PackageException
force is true, then simply returns false).pkg - The package name.force - To silently ignore a non existing package (simply returns
false in that case).interact - How the repository interacts with the user.force is true).PackageException - If any error occurs during removal.public javax.xml.transform.Source resolve(java.lang.String href,
URISpace space)
throws PackageException
Repository.resolve(String,URISpace)
(AKA we don't always want the latest version).href - the URIspace - the URI spacePackageException - if an error occurspublic net.sf.saxon.lib.ModuleURIResolver getModuleURIResolver()
throws PackageException
PackageExceptionpublic javax.xml.transform.URIResolver getURIResolver(URISpace space) throws PackageException
PackageExceptionpublic void registerExtensionFunctions(net.sf.saxon.Configuration config)
throws PackageException
Repository.resolve(String,URISpace)
(AKA we don't always want the latest version).config - the configurationPackageException - if an error occursCopyright © 2015-2020 EXPath. All Rights Reserved