com.ihr.xbrl.om
Class DTSCatalogURIResolver

java.lang.Object
  extended by com.ihr.xbrl.om.DTSCatalogURIResolver
All Implemented Interfaces:
DTSCascadeURIResolver, java.io.Serializable, javax.xml.transform.URIResolver, net.sf.saxon.lib.SchemaURIResolver, org.xml.sax.EntityResolver, org.xml.sax.ext.EntityResolver2

public class DTSCatalogURIResolver
extends java.lang.Object
implements DTSCascadeURIResolver, net.sf.saxon.lib.SchemaURIResolver, org.xml.sax.ext.EntityResolver2

This is a wrapper class to a CatalogResolver. Resolvers are nested in a chain so the constructor allows a parameter of the next catalog in sequence. If this resolver is unable to resolve it continues with the next resolver.

Author:
Ignacio
See Also:
Serialized Form

Field Summary
static java.lang.String catalogsFileName
           
static java.lang.String ns
           
static net.sf.saxon.s9api.QName rootNode
           
static java.lang.String taxonomyMetadataPropertiesFileName
           
static java.lang.String taxonomyWizardFileName
           
static java.lang.String userDefaultTaxonomyDirectory
           
 
Constructor Summary
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.
 
Method Summary
 void addURIMapping(java.net.URI from, java.net.URI to)
          adds a new entry to the Catalog in memory
 org.xml.sax.InputSource getExternalSubset(java.lang.String name, java.lang.String baseURI)
           
 javax.xml.transform.URIResolver getNextResolver()
          The next resolved in the cascade. null means this is the last resolver
 net.sf.saxon.lib.SchemaURIResolver getNextSchemaResolver()
           
 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)
           
 org.xml.sax.InputSource resolveEntity(java.lang.String name, java.lang.String publicId, java.lang.String baseURI, java.lang.String systemId)
           
 void setConfiguration(net.sf.saxon.Configuration config)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

catalogsFileName

public static final java.lang.String catalogsFileName
See Also:
Constant Field Values

taxonomyMetadataPropertiesFileName

public static final java.lang.String taxonomyMetadataPropertiesFileName
See Also:
Constant Field Values

taxonomyWizardFileName

public static final java.lang.String taxonomyWizardFileName
See Also:
Constant Field Values

userDefaultTaxonomyDirectory

public static final java.lang.String userDefaultTaxonomyDirectory
See Also:
Constant Field Values

ns

public static final java.lang.String ns
See Also:
Constant Field Values

rootNode

public static final net.sf.saxon.s9api.QName rootNode
Constructor Detail

DTSCatalogURIResolver

public DTSCatalogURIResolver(javax.xml.transform.URIResolver nextResolver)
Creates a CatalogResolver it is responsibility of the parent method to install the resolver in the chain.

Parameters:
nextResolver -

DTSCatalogURIResolver

public DTSCatalogURIResolver(net.sf.saxon.lib.SchemaURIResolver nextResolver)
Creates a CatalogResolver it is responsibility of the parent method to install the resolver in the chain.

Parameters:
nextResolver -
Method Detail

resolve

public javax.xml.transform.Source resolve(java.lang.String href,
                                          java.lang.String base)
                                   throws javax.xml.transform.TransformerException
Specified by:
resolve in interface javax.xml.transform.URIResolver
Throws:
javax.xml.transform.TransformerException

getNextResolver

public javax.xml.transform.URIResolver getNextResolver()
Description copied from interface: DTSCascadeURIResolver
The next resolved in the cascade. null means this is the last resolver

Specified by:
getNextResolver in interface DTSCascadeURIResolver
Returns:
URIResolver

getNextSchemaResolver

public net.sf.saxon.lib.SchemaURIResolver getNextSchemaResolver()

resolve

public javax.xml.transform.Source[] resolve(java.lang.String targetNamespace,
                                            java.lang.String baseURI,
                                            java.lang.String[] locations)
                                     throws net.sf.saxon.trans.XPathException
Specified by:
resolve in interface net.sf.saxon.lib.SchemaURIResolver
Throws:
net.sf.saxon.trans.XPathException

setConfiguration

public void setConfiguration(net.sf.saxon.Configuration config)
Specified by:
setConfiguration in interface net.sf.saxon.lib.SchemaURIResolver

addURIMapping

public void addURIMapping(java.net.URI from,
                          java.net.URI to)
adds a new entry to the Catalog in memory

Parameters:
from - URI from
to - URI to

getExternalSubset

public org.xml.sax.InputSource getExternalSubset(java.lang.String name,
                                                 java.lang.String baseURI)
                                          throws org.xml.sax.SAXException,
                                                 java.io.IOException
Specified by:
getExternalSubset in interface org.xml.sax.ext.EntityResolver2
Throws:
org.xml.sax.SAXException
java.io.IOException

resolveEntity

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
Specified by:
resolveEntity in interface org.xml.sax.ext.EntityResolver2
Throws:
org.xml.sax.SAXException
java.io.IOException

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
                                      throws org.xml.sax.SAXException,
                                             java.io.IOException
Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
Throws:
org.xml.sax.SAXException
java.io.IOException


Copyright 2006-2009 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa