public class ZipCascadeURIResolver extends java.lang.Object implements DTSCascadeSchemaURIResolver, org.xml.sax.EntityResolver
| Modifier and Type | Class and Description |
|---|---|
static class |
ZipCascadeURIResolver.ZipPackage
Handles extraction of Source from a document inside the ZIP file.
|
| Modifier and Type | Field and Description |
|---|---|
static net.sf.saxon.s9api.QName |
caseAt
The Constant caseAt.
|
static java.lang.String |
catalogsFileName
The Constant catalogsFileName.
|
static net.sf.saxon.s9api.QName |
dir
The Constant dir.
|
static net.sf.saxon.s9api.QName |
fileUri
The Constant fileUri.
|
static net.sf.saxon.s9api.QName |
id
The Constant id.
|
static net.sf.saxon.s9api.QName |
name
The Constant name.
|
static java.lang.String |
ns
The Constant ns.
|
static net.sf.saxon.s9api.QName |
rootNode
The Constant rootNode.
|
static java.lang.String |
typicalDirectoryOfPackages
This is the recommended directory name for packages of taxonomies.
|
static net.sf.saxon.s9api.QName |
uriStartString
The Constant uriStartString.
|
static net.sf.saxon.s9api.QName |
zipPath
The Constant zipPath.
|
| Constructor and Description |
|---|
ZipCascadeURIResolver(net.sf.saxon.lib.SchemaURIResolver nextResolver)
Instantiates a new zip cascade uri resolver.
|
ZipCascadeURIResolver(javax.xml.transform.URIResolver nextResolver)
Instantiates a new zip cascade uri resolver.
|
| Modifier and Type | Method and Description |
|---|---|
javax.xml.transform.URIResolver |
getNextResolver()
The next resolved in the cascade. null means this is the last resolver
|
net.sf.saxon.lib.SchemaURIResolver |
getNextSchemaResolver()
Return the next SchemaURIResolver.
|
static int |
getVersion(java.lang.String packageID)
Returns the version of a package already installed in the local catalog.
|
static java.util.Vector<java.lang.String> |
installedPackages()
Access to all packages installed in the ZIP catalog.
|
static java.util.HashSet<java.lang.String> |
installedPackagesIDs()
Returns a HashSet with the content of the id attribute in the xbrlCacheInfo.properties of all
loaded packages.
|
static void |
removePackage(java.lang.String packageID)
Removes the package.
|
javax.xml.transform.Source |
resolve(java.lang.String href,
java.lang.String base) |
javax.xml.transform.Source[] |
resolve(java.lang.String targetNamespace,
java.lang.String baseURI,
java.lang.String[] locations) |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId) |
void |
setConfiguration(net.sf.saxon.Configuration config) |
void |
setNextResolver(net.sf.saxon.lib.SchemaURIResolver newNextResolver)
Establish the next SchemaURIResolver.
|
void |
setNextResolver(javax.xml.transform.URIResolver newNextResolver)
Sets the next resolver to the resolver specified in the parameter.
|
public static final java.lang.String catalogsFileName
public static final java.lang.String typicalDirectoryOfPackages
public static final net.sf.saxon.s9api.QName uriStartString
public static final net.sf.saxon.s9api.QName dir
public static final net.sf.saxon.s9api.QName fileUri
public static final java.lang.String ns
public static final net.sf.saxon.s9api.QName rootNode
public static final net.sf.saxon.s9api.QName zipPath
public static final net.sf.saxon.s9api.QName caseAt
public static final net.sf.saxon.s9api.QName name
public static final net.sf.saxon.s9api.QName id
public ZipCascadeURIResolver(javax.xml.transform.URIResolver nextResolver)
nextResolver - the next resolverpublic ZipCascadeURIResolver(net.sf.saxon.lib.SchemaURIResolver nextResolver)
nextResolver - the next resolverpublic static void removePackage(java.lang.String packageID)
throws java.io.IOException
packageID - the package idjava.io.IOException - Signals that an I/O exception has occurred.public javax.xml.transform.Source resolve(java.lang.String href,
java.lang.String base)
throws javax.xml.transform.TransformerException
resolve in interface javax.xml.transform.URIResolverjavax.xml.transform.TransformerExceptionpublic static java.util.Vector<java.lang.String> installedPackages()
public javax.xml.transform.URIResolver getNextResolver()
DTSCascadeURIResolvergetNextResolver in interface DTSCascadeURIResolverpublic net.sf.saxon.lib.SchemaURIResolver getNextSchemaResolver()
DTSCascadeSchemaURIResolvergetNextSchemaResolver in interface DTSCascadeSchemaURIResolverpublic void setNextResolver(javax.xml.transform.URIResolver newNextResolver)
DTSCascadeURIResolversetNextResolver in interface DTSCascadeURIResolvernewNextResolver - the new next resolverpublic void setNextResolver(net.sf.saxon.lib.SchemaURIResolver newNextResolver)
DTSCascadeSchemaURIResolversetNextResolver in interface DTSCascadeSchemaURIResolvernewNextResolver - the new next resolverpublic static int getVersion(java.lang.String packageID)
packageID - the ID of the package to obtain the versionpublic org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException,
java.io.IOException
resolveEntity in interface org.xml.sax.EntityResolverorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic void setConfiguration(net.sf.saxon.Configuration config)
setConfiguration in interface net.sf.saxon.lib.SchemaURIResolverpublic javax.xml.transform.Source[] resolve(java.lang.String targetNamespace,
java.lang.String baseURI,
java.lang.String[] locations)
throws net.sf.saxon.trans.XPathException
resolve in interface net.sf.saxon.lib.SchemaURIResolvernet.sf.saxon.trans.XPathExceptionpublic static java.util.HashSet<java.lang.String> installedPackagesIDs()