public class TaxonomyPackageURIResolver extends java.lang.Object implements DTSCascadeSchemaURIResolver, org.xml.sax.EntityResolver
| Modifier and Type | Class and Description |
|---|---|
static class |
TaxonomyPackageURIResolver.EntryPointHRefs
The Class EntryPointHRefs.
|
static class |
TaxonomyPackageURIResolver.EntryPointLangInfo
Represents an entry point in a taxonomy package.
|
static class |
TaxonomyPackageURIResolver.EntryPointLangInfoKey
The Class EntryPointLangInfoKey.
|
static class |
TaxonomyPackageURIResolver.PackageByLangInfo
Holds all elements that may contain different values by language.
|
static class |
TaxonomyPackageURIResolver.TaxonomyPackage
Represents a package (zip file) that contains a set of entry points and mapping rules
as indicated in the Taxonomy Packages Specification(s) .
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
mandatoryFileName
The Constant mandatoryFileName.
|
static java.lang.String |
namespace
from the multiple namespaces recognized, this will point to the last one implemented.
|
static java.lang.String |
schemaURL
from the multiple schema versions recognized, this will point to the last one implemented.
|
static javax.xml.namespace.QName |
taxonomyPackage
This is the taxonomyPackage element declaration using the last implemented namespace.
|
static java.lang.String |
tpNamespace_Corefiling
The Constant tpNamespace_Corefiling.
|
static java.lang.String |
tpNamespace_PWD_20140115
The Constant tpNamespace_PWD_20140115.
|
static java.lang.String |
tpNamespace_PWD_20150114
The Constant tpNamespace_PWD_20150114.
|
static java.lang.String |
tpURL_PWD_20140115
The Constant tpURL_PWD_20140115.
|
static java.lang.String |
typicalDirectoryOfPackages
The Constant typicalDirectoryOfPackages.
|
| Constructor and Description |
|---|
TaxonomyPackageURIResolver(net.sf.saxon.lib.SchemaURIResolver nextResolver)
Instantiates a new zip cascade uri resolver.
|
TaxonomyPackageURIResolver(javax.xml.transform.URIResolver nextResolver)
Instantiates a new zip cascade uri resolver.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
checkInstalled(RSRemoteCatalogResolver.StaticCatalogEntry sce)
Check installed.
|
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 TaxonomyPackageURIResolver.TaxonomyPackage |
getPackage(java.io.File zipFile)
Gets the package.
|
static java.util.Collection<TaxonomyPackageURIResolver.TaxonomyPackage> |
getPackages(java.io.File fDirectory)
Read all packages in a directory.
|
static RSRemoteCatalogResolver.StaticCatalogEntry |
getStaticCatalogEntry(TaxonomyPackageURIResolver.TaxonomyPackage tp)
Gets the static catalog entry.
|
static java.lang.String |
getVersion(java.lang.String id)
Gets the version.
|
static java.util.HashSet<java.lang.String> |
installedPackagesIDs()
Installed packages i ds.
|
static void |
removePackage(java.lang.String id)
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 typicalDirectoryOfPackages
public static final java.lang.String tpNamespace_Corefiling
public static final java.lang.String tpNamespace_PWD_20140115
public static final java.lang.String tpNamespace_PWD_20150114
public static final java.lang.String tpURL_PWD_20140115
public static final java.lang.String namespace
public static final java.lang.String schemaURL
public static final javax.xml.namespace.QName taxonomyPackage
public static final java.lang.String mandatoryFileName
public TaxonomyPackageURIResolver(javax.xml.transform.URIResolver nextResolver)
nextResolver - the next resolverpublic TaxonomyPackageURIResolver(net.sf.saxon.lib.SchemaURIResolver nextResolver)
nextResolver - the next resolverpublic static java.util.Collection<TaxonomyPackageURIResolver.TaxonomyPackage> getPackages(java.io.File fDirectory)
fDirectory - the f directorypublic static TaxonomyPackageURIResolver.TaxonomyPackage getPackage(java.io.File zipFile)
zipFile - the zip filepublic 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 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 javax.xml.transform.URIResolver getNextResolver()
DTSCascadeURIResolvergetNextResolver in interface DTSCascadeURIResolverpublic void setNextResolver(javax.xml.transform.URIResolver newNextResolver)
DTSCascadeURIResolversetNextResolver in interface DTSCascadeURIResolvernewNextResolver - the new next resolverpublic static java.util.HashSet<java.lang.String> installedPackagesIDs()
public static void checkInstalled(RSRemoteCatalogResolver.StaticCatalogEntry sce)
sce - the scepublic static RSRemoteCatalogResolver.StaticCatalogEntry getStaticCatalogEntry(TaxonomyPackageURIResolver.TaxonomyPackage tp)
tp - the tppublic static java.lang.String getVersion(java.lang.String id)
id - the idpublic static void removePackage(java.lang.String id)
id - the idpublic 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 void setNextResolver(net.sf.saxon.lib.SchemaURIResolver newNextResolver)
DTSCascadeSchemaURIResolversetNextResolver in interface DTSCascadeSchemaURIResolvernewNextResolver - the new next resolverpublic net.sf.saxon.lib.SchemaURIResolver getNextSchemaResolver()
DTSCascadeSchemaURIResolvergetNextSchemaResolver in interface DTSCascadeSchemaURIResolver