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 |
|---|---|
void |
endDTSDiscovery()
End DTS discovery.
|
static java.util.Iterator<java.net.URI> |
getIterator(java.lang.String id)
Gets the iterator.
|
javax.xml.transform.URIResolver |
getNextResolver()
Gets the next resolver.
|
net.sf.saxon.lib.SchemaURIResolver |
getNextSchemaResolver()
Gets the next schema resolver.
|
static int |
getVersion(java.lang.String packageID)
Returns the version of a package already installed in the local catalog.
|
static java.util.List<java.lang.String> |
installedPackages()
Access to all packages installed in the ZIP catalog.
|
static java.util.Set<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)
Resolve.
|
javax.xml.transform.Source[] |
resolve(java.lang.String targetNamespace,
java.lang.String baseURI,
java.lang.String[] locations)
Resolve.
|
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Resolve entity.
|
void |
setConfiguration(net.sf.saxon.Configuration config)
Sets the configuration.
|
void |
setNextResolver(net.sf.saxon.lib.SchemaURIResolver newNextResolver)
Sets the next resolver.
|
void |
setNextResolver(javax.xml.transform.URIResolver newNextResolver)
Sets the next resolver.
|
void |
startDTSDiscovery()
Start DTS discovery.
|
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.URIResolverhref - the hrefbase - the basejavax.xml.transform.TransformerException - the transformer exceptionpublic static java.util.List<java.lang.String> installedPackages()
public javax.xml.transform.URIResolver getNextResolver()
getNextResolver in interface DTSCascadeURIResolverpublic net.sf.saxon.lib.SchemaURIResolver getNextSchemaResolver()
getNextSchemaResolver in interface DTSCascadeSchemaURIResolverpublic void setNextResolver(javax.xml.transform.URIResolver newNextResolver)
setNextResolver in interface DTSCascadeURIResolvernewNextResolver - the new next resolverpublic void setNextResolver(net.sf.saxon.lib.SchemaURIResolver newNextResolver)
setNextResolver 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.EntityResolverpublicId - the public idsystemId - the system idorg.xml.sax.SAXException - the SAX exceptionjava.io.IOException - Signals that an I/O exception has occurred.public void setConfiguration(net.sf.saxon.Configuration config)
setConfiguration in interface net.sf.saxon.lib.SchemaURIResolverconfig - the new configurationpublic 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.SchemaURIResolvertargetNamespace - the target namespacebaseURI - the base URIlocations - the locationsnet.sf.saxon.trans.XPathException - the x path exceptionpublic static java.util.Set<java.lang.String> installedPackagesIDs()
public void startDTSDiscovery()
startDTSDiscovery in interface DTSCascadeURIResolverpublic void endDTSDiscovery()
endDTSDiscovery in interface DTSCascadeURIResolverpublic static java.util.Iterator<java.net.URI> getIterator(java.lang.String id)
id - the idCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa