public class DaffodilXMLEntityResolver
extends java.lang.Object
The entity resolver attempts to resolve namespaces and systemId's in the following order:
1. Use an org.apache.xml.resolver.Catalog/CatalogManager. By default the Catalog only includes the daffodil-built-in-catalog.xml, but additional catalogs can be added by putting CatalogManager.properties on the classpath when daffodil is run.
2. If not resolved in step 1, schemaLocations are resolved relative to the importing schema URI, which could either be a file on the filesystem or in a jar on the classpath.
The EntityResolver isn't thread safe, but it also is expensive and stateful, so we use ThreadLocal to only create one instance per thread.
Constructor and Description |
---|
DaffodilXMLEntityResolver() |
Modifier and Type | Method and Description |
---|---|
static org.xml.sax.EntityResolver |
getEntityResolver() |
static org.w3c.dom.ls.LSResourceResolver |
getLSResourceResolver() |
static org.apache.xerces.xni.parser.XMLEntityResolver |
getXMLEntityResolver() |