Class ApacheCatalogResolver

java.lang.Object
org.apache.xml.resolver.tools.CatalogResolver
org.apache.tools.ant.types.resolver.ApacheCatalogResolver
All Implemented Interfaces:
URIResolver, EntityResolver

public class ApacheCatalogResolver extends org.apache.xml.resolver.tools.CatalogResolver

This class extends the CatalogResolver class provided by Norman Walsh's resolver library in xml-commons. It provides the bridge between the Ant XMLCatalog datatype and the xml-commons Catalog class. XMLCatalog calls methods in this class using Reflection in order to avoid requiring the xml-commons resolver library in the path.

The ApacheCatalog class is used to parse external catalog files, which can be in either plain text format or XML format.

For each entry found in an external catalog file, if any, an instance of ResourceLocation is created and added to the controlling XMLCatalog datatype. In this way, these entries will be included in XMLCatalog's lookup algorithm. See XMLCatalog.java for more details.

Since:
Ant 1.6
See Also: