Save This Page
Home » apache-ant-1.8.1 » org.apache.tools » ant » types » resolver » [javadoc | source]
org.apache.tools.ant.types.resolver
public class: ApacheCatalogResolver [javadoc | source]
java.lang.Object
   org.apache.xml.resolver.tools.CatalogResolver
      org.apache.tools.ant.types.resolver.ApacheCatalogResolver

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.

Method from org.apache.tools.ant.types.resolver.ApacheCatalogResolver Summary:
addPublicEntry,   addURIEntry,   parseCatalog,   setXMLCatalog
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tools.ant.types.resolver.ApacheCatalogResolver Detail:
 public  void addPublicEntry(String publicid,
    String systemid,
    URL base) 

    Add a PUBLIC catalog entry to the controlling XMLCatalog instance. ApacheCatalog calls this for each PUBLIC entry found in an external catalog file.

 public  void addURIEntry(String uri,
    String altURI,
    URL base) 

    Add a URI catalog entry to the controlling XMLCatalog instance. ApacheCatalog calls this for each URI entry found in an external catalog file.

 public  void parseCatalog(String file) 
    XMLCatalog calls this to add an external catalog file for each file within a <catalogfiles> fileset.
 public  void setXMLCatalog(XMLCatalog xmlCatalog) 
    Set the XMLCatalog object to callback.