Java 类org.apache.tools.ant.types.XMLCatalog 实例源码

项目:ant    文件:TraXLiaison.java   
/**
 * Specific configuration for the TRaX liaison.
 * @param xsltTask the XSLTProcess task instance from which this liaison
 *        is to be configured.
 */
public void configure(final XSLTProcess xsltTask) {
    project = xsltTask.getProject();
    final XSLTProcess.Factory factory = xsltTask.getFactory();
    if (factory != null) {
        setFactory(factory.getName());

        // configure factory attributes
        for (final Enumeration attrs = factory.getAttributes();
                attrs.hasMoreElements();) {
            final XSLTProcess.Factory.Attribute attr =
                    (XSLTProcess.Factory.Attribute) attrs.nextElement();
            setAttribute(attr.getName(), attr.getValue());
        }
        for (final XSLTProcess.Factory.Feature feature
                 : factory.getFeatures()) {
            setFeature(feature.getName(), feature.getValue());
        }
    }

    final XMLCatalog xmlCatalog = xsltTask.getXMLCatalog();
    // use XMLCatalog as the entity resolver and URI resolver
    if (xmlCatalog != null) {
        setEntityResolver(xmlCatalog);
        setURIResolver(xmlCatalog);
    }


    // configure output properties
    for (final Enumeration props = xsltTask.getOutputProperties();
            props.hasMoreElements();) {
        final XSLTProcess.OutputProperty prop
            = (XSLTProcess.OutputProperty) props.nextElement();
        setOutputProperty(prop.getName(), prop.getValue());
    }

    suppressWarnings = xsltTask.getSuppressWarnings();

    traceConfiguration = xsltTask.getTraceConfiguration();
}
项目:mxjc    文件:MXJC2Task.java   
/**
 * Add the catalog to our internal catalog
 *
 * @param xmlCatalog the XMLCatalog instance to use to look up DTDs
 */
public void addConfiguredXMLCatalog(XMLCatalog xmlCatalog) {
    if(this.xmlCatalog==null) {
        this.xmlCatalog = new XMLCatalog();
        this.xmlCatalog.setProject(getProject());
    }
    this.xmlCatalog.addConfiguredXMLCatalog(xmlCatalog);
}
项目:parabuild-ci    文件:XmlPropertyTask.java   
/**
 * add an XMLCatalog as a nested element; optional.
 * @param catalog the XMLCatalog to use
 */
public void addConfiguredXMLCatalog( XMLCatalog catalog ) {
    xmlCatalog.addConfiguredXMLCatalog( catalog );
}
项目:ant    文件:ApacheCatalogResolver.java   
/**
 * Set the XMLCatalog object to callback.
 * @param xmlCatalog the XMLCatalog to use.
 */
public void setXMLCatalog(final XMLCatalog xmlCatalog) {
    this.xmlCatalog = xmlCatalog;
}
项目:ant    文件:XMLValidateTask.java   
/**
 * add an XMLCatalog as a nested element; optional.
 * @param catalog XMLCatalog to use
 */
public void addConfiguredXMLCatalog(XMLCatalog catalog) {
    xmlCatalog.addConfiguredXMLCatalog(catalog);
}
项目:ant    文件:XmlProperty.java   
/**
 * add an XMLCatalog as a nested element; optional.
 * @param catalog the XMLCatalog to use
 */
public void addConfiguredXMLCatalog(XMLCatalog catalog) {
    xmlCatalog.addConfiguredXMLCatalog(catalog);
}
项目:ant    文件:XSLTProcess.java   
/**
 * Add the catalog to our internal catalog
 *
 * @param xmlCatalog the XMLCatalog instance to use to look up DTDs
 */
public void addConfiguredXMLCatalog(final XMLCatalog xmlCatalog) {
    this.xmlCatalog.addConfiguredXMLCatalog(xmlCatalog);
}
项目:ant    文件:XSLTProcess.java   
/**
 * Get the XML catalog containing entity definitions
 *
 * @return the XML catalog for the task.
 */
public XMLCatalog getXMLCatalog() {
    xmlCatalog.setProject(getProject());
    return xmlCatalog;
}
项目:ph-schematron    文件:Schematron.java   
/**
 * Add the catalog to our internal catalog
 *
 * @param aXmlCatalog
 *        the XMLCatalog instance to use to look up DTDs
 */
public void addConfiguredXMLCatalog (@Nonnull final XMLCatalog aXmlCatalog)
{
  m_aXmlCatalog.addConfiguredXMLCatalog (aXmlCatalog);
  log ("Added XMLCatalog " + aXmlCatalog, Project.MSG_DEBUG);
}