|
XBRLAPIA Java API for XBRL |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xbrlapi.sax.EntityResolverImpl
public class EntityResolverImpl
Entity resolver that dynamically adds to the local document cache if it is set up and that gives preference to the local cache (if it is set up) as resources are identified by the resolution process.
| Constructor Summary | |
|---|---|
EntityResolverImpl()
Construct the entity resolver without a cache. |
|
EntityResolverImpl(Cache cache)
Construct the entity resolver by storing the cache itself. |
|
EntityResolverImpl(File cacheRoot)
Construct the entity resolver by storing the cache root. |
|
EntityResolverImpl(File cacheRoot,
HashMap<URI,URI> uriMap)
Create the entity resolver with a set of local URIs to be used by the loader in place of actual URIs. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
hashCode()
|
InputSource |
resolveEntity(String publicId,
String systemId)
Resolve the entity for a SAX parser using the system identifier. |
org.apache.xerces.xni.parser.XMLInputSource |
resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier resource)
Implements the resolveEntity method defined in the org.apache.xerces.xni.parser.XMLEntityResolver interface, incorporating interactions with the local document cache (if it exists) to ensure that any new documents are cached and any documents already in the cache are sourced from the cache. |
org.apache.xerces.xni.parser.XMLInputSource |
resolveSchemaURI(URI originalURI)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntityResolverImpl()
public EntityResolverImpl(File cacheRoot)
throws XBRLException
cacheRoot - The root directory of the local cache.
XBRLException - if the cache cannot be initialised.
public EntityResolverImpl(Cache cache)
throws XBRLException
cache - The local cache to use.
XBRLException - if the cache cannot be initialised.
public EntityResolverImpl(File cacheRoot,
HashMap<URI,URI> uriMap)
throws XBRLException
cacheRoot - The root directory of the local cache.uriMap - The map from original URIs to local URIs.
XBRLException - if any of the objects in the list of URIs is not a
java.net.URI object.| Method Detail |
|---|
public InputSource resolveEntity(String publicId,
String systemId)
resolveEntity in interface EntityResolverpublicId - The public identifier.systemId - The system identifier that gets resolved.
public org.apache.xerces.xni.parser.XMLInputSource resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier resource)
throws org.apache.xerces.xni.XNIException,
IOException
resolveEntity in interface org.apache.xerces.xni.parser.XMLEntityResolverresource - The XML Resource Identifier used to identify the XML resource to be converted
into an XML input source and to be cached if it is not already cached.
org.apache.xerces.xni.XNIException
IOExceptionXMLEntityResolver.resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier)public org.apache.xerces.xni.parser.XMLInputSource resolveSchemaURI(URI originalURI)
originalURI - the URI to be resolved.
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||