public class TaxonomyPackageURIResolver extends java.lang.Object implements DTSCascadeSchemaURIResolver, org.xml.sax.EntityResolver
| Modifier and Type | Class and Description | 
|---|---|
| static class  | TaxonomyPackageURIResolver.EntryPointHRefsThe Class EntryPointHRefs. | 
| static class  | TaxonomyPackageURIResolver.EntryPointLangInfoRepresents an entry point in a taxonomy package. | 
| static class  | TaxonomyPackageURIResolver.EntryPointLangInfoKeyThe Class EntryPointLangInfoKey. | 
| static class  | TaxonomyPackageURIResolver.PackageByLangInfoHolds all elements that may contain different values by language. | 
| static class  | TaxonomyPackageURIResolver.TaxonomyPackageRepresents 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 | mandatoryCatalogFileNameThe Constant mandatoryCatalogFileName. | 
| static java.lang.String | mandatoryFileNameThe Constant mandatoryFileName. | 
| static java.lang.String | mandatoryFileNameNewThe Constant mandatoryFileNameNew. | 
| static java.lang.String | namespacefrom the multiple namespaces recognized, this will point to the last one implemented. | 
| static java.lang.String | schemaURLfrom the multiple schema versions recognized, this will point to the last one implemented. | 
| static javax.xml.namespace.QName | taxonomyPackageThis is the taxonomyPackage element declaration using the last implemented namespace. | 
| static java.lang.String | tpNamespace_CorefilingThe Constant tpNamespace_Corefiling. | 
| static java.lang.String | tpNamespace_PR_20151209The Constant tpNamespace_PR_20151209. | 
| static java.lang.String | tpNamespace_PWD_20140115The Constant tpNamespace_PWD_20140115. | 
| static java.lang.String | tpNamespace_PWD_20150114The Constant tpNamespace_PWD_20150114. | 
| static java.lang.String | tpNamespace_REC_20160419The Constant tpNamespace_REC_20160419. | 
| static java.lang.String | tpNamespace_WGWD_YYYYMMDDThe Constant tpNamespace_WGWD_YYYYMMDD. | 
| static java.lang.String | tpURL_PR_20151209The Constant tpURL_PR_20151209. | 
| static java.lang.String | tpURL_PWD_20140115The Constant tpURL_PWD_20140115. | 
| static java.lang.String | tpURL_REC_20160419The Constant tpURL_REC_20160419. | 
| static java.lang.String | typicalDirectoryOfPackagesThe 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 | addPackage(TaxonomyPackageURIResolver.TaxonomyPackage tp)Adds a new taxonomy package to loaded packages
 and calls reorderPackages internally. | 
| static void | checkIsLoaded(RSRemoteCatalogResolver.StaticCatalogEntry sce)Check is loaded for the StaticCatalogEntry received as a parameter. | 
| static java.nio.file.Path | copyFile(java.io.File file)Copies the file indicated in the  fileparameter to the
 typical directory of taxonomy packages. | 
| static void | declareInjectedPackage(TaxonomyPackageURIResolver.TaxonomyPackage tp)Declare injected package. | 
| void | endDTSDiscovery()End DTS discovery. | 
| static java.util.Iterator<java.util.Collection<java.net.URI>> | getEntryPointsIterator(java.lang.String id)Gets the entry points iterator. | 
| static java.util.List<TaxonomyPackageURIResolver.TaxonomyPackage> | getInjectedTaxonomyPackages()Gets the injected taxonomy packages. | 
| 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 TaxonomyPackageURIResolver.TaxonomyPackage | getPackage(java.io.File zipFile)Load the ZIP file received as a parameter and prepares a
 TaxonomyPackage entry loaded from the file. | 
| static TaxonomyPackageURIResolver.TaxonomyPackage | getPackage(java.lang.String id)Returns the TaxonomyPackage using the id as the key to search for. | 
| 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 TPValidationException | getTaxonomyPackageError(java.io.File key)When the method  getPackage(File)receives an error for the indicated file
 the error is stored in a table. | 
| static java.lang.String | getVersion(java.lang.String id)Gets the version. | 
| static java.util.Set<java.lang.String> | installedPackagesIDs()This method returns a set of ids of packages installed. | 
| static TaxonomyPackageURIResolver.TaxonomyPackage | loadTaxonomyPackageFromFile(java.io.File fileZip)Process a ZIP file indicated in the fileZip parameter as a Taxonomy Package and returns an instance
 of TaxonomyPackage class. | 
| static void | removePackage(java.lang.String id)Removes the package from the file system and from the loaded packages. | 
| static void | removePackage(TaxonomyPackageURIResolver.TaxonomyPackage tp)Removes a taxonomy package from loaded packages and
 calls reorderPackages internally. | 
| 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. | 
| static void | undeclareInjectedPackage(TaxonomyPackageURIResolver.TaxonomyPackage tp)Undeclare injected package. | 
| static void | unloadPackage(java.io.File zipFile)Removes from memory all structures related with the ZIP file
 received as a parameter and loaded from the local ZIP file so a call
 to  getPackage(File)can read the same entry again (but new version). | 
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 tpNamespace_PR_20151209
public static final java.lang.String tpNamespace_WGWD_YYYYMMDD
public static final java.lang.String tpNamespace_REC_20160419
public static final java.lang.String tpURL_PWD_20140115
public static final java.lang.String tpURL_PR_20151209
public static final java.lang.String tpURL_REC_20160419
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 static final java.lang.String mandatoryFileNameNew
public static final java.lang.String mandatoryCatalogFileName
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 loadTaxonomyPackageFromFile(java.io.File fileZip) throws TPValidationException
fileZip - the file zipTPValidationException - the TP validation exceptionpublic static TaxonomyPackageURIResolver.TaxonomyPackage getPackage(java.io.File zipFile)
unloadPackage(File) removes
 the information in memory and allows the same file to be
 loaded againzipFile - the zip filepublic static void addPackage(TaxonomyPackageURIResolver.TaxonomyPackage tp)
tp - the tppublic static void removePackage(TaxonomyPackageURIResolver.TaxonomyPackage tp)
tp - the tppublic static void unloadPackage(java.io.File zipFile)
getPackage(File) can read the same entry again (but new version).zipFile - the zip filepublic static void removePackage(java.lang.String id)
id - the idpublic static TaxonomyPackageURIResolver.TaxonomyPackage getPackage(java.lang.String id)
id - String, taxonomy package idpublic static TPValidationException getTaxonomyPackageError(java.io.File key)
getPackage(File) receives an error for the indicated file
 the error is stored in a table. This method uses the same key to access the error
 raised at that timekey - the keypublic 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 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 javax.xml.transform.URIResolver getNextResolver()
getNextResolver in interface DTSCascadeURIResolverpublic void setNextResolver(javax.xml.transform.URIResolver newNextResolver)
setNextResolver in interface DTSCascadeURIResolvernewNextResolver - the new next resolverpublic static java.util.Set<java.lang.String> installedPackagesIDs()
public static void checkIsLoaded(RSRemoteCatalogResolver.StaticCatalogEntry sce)
getPackage(File), attach the TaxonomyPackage with the
 StaticCatalogEntry and populate the cache of version and packageIdsce - the StaticCatalogEntry to check is loadedpublic static RSRemoteCatalogResolver.StaticCatalogEntry getStaticCatalogEntry(TaxonomyPackageURIResolver.TaxonomyPackage tp)
tp - the tppublic static java.lang.String getVersion(java.lang.String id)
id - the idpublic 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 void setNextResolver(net.sf.saxon.lib.SchemaURIResolver newNextResolver)
setNextResolver in interface DTSCascadeSchemaURIResolvernewNextResolver - the new next resolverpublic net.sf.saxon.lib.SchemaURIResolver getNextSchemaResolver()
getNextSchemaResolver in interface DTSCascadeSchemaURIResolverpublic 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 idpublic static java.util.Iterator<java.util.Collection<java.net.URI>> getEntryPointsIterator(java.lang.String id)
id - the idpublic static java.nio.file.Path copyFile(java.io.File file)
                                   throws java.io.IOException
file parameter to the
 typical directory of taxonomy packages.file - the filejava.io.IOException - Signals that an I/O exception has occurred.public static void declareInjectedPackage(TaxonomyPackageURIResolver.TaxonomyPackage tp)
tp - the tppublic static void undeclareInjectedPackage(TaxonomyPackageURIResolver.TaxonomyPackage tp)
tp - the tppublic static java.util.List<TaxonomyPackageURIResolver.TaxonomyPackage> getInjectedTaxonomyPackages()
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa