Logo Search packages:      
Sourcecode: jardiff version File versions  Download package

void org::osjava::jardiff::ant::JDTraXLiaison::configure ( JDXSLTProcess  xsltTask  )  [inline]

Specific configuration for the TRaX liaison.

Parameters:
xsltTask the XSLTProcess task instance from which this liasion is to be configured.

Implements org::osjava::jardiff::ant::JDXSLTLiaison3.

Definition at line 505 of file JDTraXLiaison.java.

References setAttribute(), setEntityResolver(), setFactory(), setOutputProperty(), and setURIResolver().

                                                  {
        JDXSLTProcess.Factory factory = xsltTask.getFactory();
        if (factory != null) {
            setFactory(factory.getName());

            // configure factory attributes
            for (Enumeration attrs = factory.getAttributes();
                    attrs.hasMoreElements();) {
                JDXSLTProcess.Factory.Attribute attr =
                        (JDXSLTProcess.Factory.Attribute) attrs.nextElement();
                setAttribute(attr.getName(), attr.getValue());
            }
        }

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


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


Generated by  Doxygen 1.6.0   Back to index