public class DTSCatalogURIResolver extends java.lang.Object implements DTSCascadeSchemaURIResolver, org.xml.sax.ext.EntityResolver2
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
catalogsFileName
The Constant catalogsFileName.
|
static java.lang.String |
ns
The Constant ns.
|
static net.sf.saxon.s9api.QName |
rootNode
The Constant rootNode.
|
static java.lang.String |
taxonomyMetadataPropertiesFileName
The Constant taxonomyMetadataPropertiesFileName.
|
static java.lang.String |
taxonomyWizardFileName
The Constant taxonomyWizardFileName.
|
static java.lang.String |
userDefaultTaxonomyDirectory
The Constant userDefaultTaxonomyDirectory.
|
Constructor and Description |
---|
DTSCatalogURIResolver(net.sf.saxon.lib.SchemaURIResolver nextResolver)
Creates a CatalogResolver it is responsibility of the parent method to install
the resolver in the chain.
|
DTSCatalogURIResolver(javax.xml.transform.URIResolver nextResolver)
Creates a CatalogResolver it is responsibility of the parent method to install
the resolver in the chain.
|
Modifier and Type | Method and Description |
---|---|
void |
addURIMapping(java.net.URI from,
java.net.URI to)
adds a new entry to the Catalog in memory.
|
void |
endDTSDiscovery()
End DTS discovery.
|
org.xml.sax.InputSource |
getExternalSubset(java.lang.String name,
java.lang.String baseURI)
Gets the external subset.
|
javax.xml.transform.URIResolver |
getNextResolver()
Gets the next resolver.
|
net.sf.saxon.lib.SchemaURIResolver |
getNextSchemaResolver()
Gets the next schema resolver.
|
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.
|
org.xml.sax.InputSource |
resolveEntity(java.lang.String name,
java.lang.String publicId,
java.lang.String baseURI,
java.lang.String systemId)
Resolve entity.
|
java.net.URI |
resolveReverse(java.net.URI uri)
This method transforms back a mapped URL into the unmapped one
by applying rules in reverse order.
|
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 taxonomyMetadataPropertiesFileName
public static final java.lang.String taxonomyWizardFileName
public static final java.lang.String userDefaultTaxonomyDirectory
public static final java.lang.String ns
public static final net.sf.saxon.s9api.QName rootNode
public DTSCatalogURIResolver(javax.xml.transform.URIResolver nextResolver)
nextResolver
- the next resolver, may also implement SchemaURIResolverpublic DTSCatalogURIResolver(net.sf.saxon.lib.SchemaURIResolver nextResolver)
nextResolver
- the next resolver, may also implement URIResolverpublic javax.xml.transform.Source resolve(java.lang.String href, java.lang.String base) throws javax.xml.transform.TransformerException
resolve
in interface javax.xml.transform.URIResolver
href
- the hrefbase
- the basejavax.xml.transform.TransformerException
- the transformer exceptionpublic javax.xml.transform.URIResolver getNextResolver()
getNextResolver
in interface DTSCascadeURIResolver
public net.sf.saxon.lib.SchemaURIResolver getNextSchemaResolver()
getNextSchemaResolver
in interface DTSCascadeSchemaURIResolver
public 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.SchemaURIResolver
targetNamespace
- the target namespacebaseURI
- the base URIlocations
- the locationsnet.sf.saxon.trans.XPathException
- the x path exceptionpublic void setConfiguration(net.sf.saxon.Configuration config)
setConfiguration
in interface net.sf.saxon.lib.SchemaURIResolver
config
- the new configurationpublic void addURIMapping(java.net.URI from, java.net.URI to)
from
- URI fromto
- URI topublic org.xml.sax.InputSource getExternalSubset(java.lang.String name, java.lang.String baseURI) throws org.xml.sax.SAXException, java.io.IOException
getExternalSubset
in interface org.xml.sax.ext.EntityResolver2
name
- the namebaseURI
- the base URIorg.xml.sax.SAXException
- the SAX exceptionjava.io.IOException
- Signals that an I/O exception has occurred.public org.xml.sax.InputSource resolveEntity(java.lang.String name, java.lang.String publicId, java.lang.String baseURI, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
resolveEntity
in interface org.xml.sax.ext.EntityResolver2
name
- the namepublicId
- the public idbaseURI
- the base URIsystemId
- the system idorg.xml.sax.SAXException
- the SAX exceptionjava.io.IOException
- Signals that an I/O exception has occurred.public 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.EntityResolver
publicId
- the public idsystemId
- the system idorg.xml.sax.SAXException
- the SAX exceptionjava.io.IOException
- Signals that an I/O exception has occurred.public void setNextResolver(javax.xml.transform.URIResolver newNextResolver)
setNextResolver
in interface DTSCascadeURIResolver
newNextResolver
- the new next resolverpublic void setNextResolver(net.sf.saxon.lib.SchemaURIResolver newNextResolver)
setNextResolver
in interface DTSCascadeSchemaURIResolver
newNextResolver
- the new next resolverpublic void startDTSDiscovery()
startDTSDiscovery
in interface DTSCascadeURIResolver
public void endDTSDiscovery()
endDTSDiscovery
in interface DTSCascadeURIResolver
public java.net.URI resolveReverse(java.net.URI uri)
uri
- the uriCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa