wt.util.xml.xslt
Class JAXPXMLSourceFactory

java.lang.Object
  extended bywt.util.xml.xslt.XMLSourceFactory
      extended bywt.util.xml.xslt.JAXPXMLSourceFactory

class JAXPXMLSourceFactory
extends XMLSourceFactory


Field Summary
private  JAXPFactories factories
           
 
Fields inherited from class wt.util.xml.xslt.XMLSourceFactory
 
Constructor Summary
(package private) JAXPXMLSourceFactory()
           
(package private) JAXPXMLSourceFactory(SAXParserFactory saxParserFactory, DocumentBuilderFactory documentBuilderFactory, TransformerFactory transformerFactory)
           
 
Method Summary
(package private)  JAXPFactories getFactories()
          Accessor to JAXP factories holder
(package private)  Source getJAXPSource(XMLSource xmlSource)
          Utility to produce JAXP Source objects from XMLSource objects
 Stylesheet newStylesheet(XMLSource xslSource)
          Create a new Stylesheet instance for the XSL document identified by the XMLSource.
 XSLTransform newXSLTransform(XMLSource xmlSource, Stylesheet stylesheet, Hashtable inputParameters)
          Create an XSLTransform instance to apply the stylesheet to the XML document identified by xmlSource.
 XSLTransform newXSLTransform(XMLSource xmlSource, Stylesheet stylesheet, Hashtable inputParameters, String baseURI)
          Create an XSLTransform instance to apply the stylesheet to the XML document identified by xmlSource.
 
Methods inherited from class wt.util.xml.xslt.XMLSourceFactory
convertSAXtoSAX2, getFactory, getFactory, getParserForSAXSource, getXMLReaderForSAX2Source, newDOMSource, newDOMSource, newReaderSource, newReaderSource, newStreamSource, newStreamSource, newURLSource, newURLSource, newURLSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factories

private JAXPFactories factories
Constructor Detail

JAXPXMLSourceFactory

JAXPXMLSourceFactory()

JAXPXMLSourceFactory

JAXPXMLSourceFactory(SAXParserFactory saxParserFactory,
                     DocumentBuilderFactory documentBuilderFactory,
                     TransformerFactory transformerFactory)
Method Detail

newXSLTransform

public XSLTransform newXSLTransform(XMLSource xmlSource,
                                    Stylesheet stylesheet,
                                    Hashtable inputParameters)
                             throws SAXException,
                                    IOException
Description copied from class: XMLSourceFactory
Create an XSLTransform instance to apply the stylesheet to the XML document identified by xmlSource. Parameters may be passed to the XSLT stylesheet in the hashtable (the hashtable may be null if no parameters are being passed). Stylesheets imported or included by the provided Stylesheet are located relative to the base URI of the XMLSource that produced the Stylesheet if they are not fully qualified.

Supported API: true

Specified by:
newXSLTransform in class XMLSourceFactory
Parameters:
xmlSource -
stylesheet -
inputParameters -
Returns:
XSLTransform
Throws:
SAXException
IOException
See Also:
Stylesheet, XMLSource

newXSLTransform

public XSLTransform newXSLTransform(XMLSource xmlSource,
                                    Stylesheet stylesheet,
                                    Hashtable inputParameters,
                                    String baseURI)
                             throws SAXException,
                                    IOException
Description copied from class: XMLSourceFactory
Create an XSLTransform instance to apply the stylesheet to the XML document identified by xmlSource. Parameters may be passed to the XSLT stylesheet in the hashtable (the hashtable may be null if no parameters are being passed). Stylesheets imported or included by the provided Stylesheet are located relative to the specified base URI if they are not fully qualified.

Supported API: true

Specified by:
newXSLTransform in class XMLSourceFactory
Parameters:
xmlSource -
stylesheet -
inputParameters -
baseURI -
Returns:
XSLTransform
Throws:
IOException
SAXException
See Also:
Stylesheet, XMLSource

newStylesheet

public Stylesheet newStylesheet(XMLSource xslSource)
                         throws SAXException,
                                IOException
Description copied from class: XMLSourceFactory
Create a new Stylesheet instance for the XSL document identified by the XMLSource. Once instantiated, this Stylesheet can be repeatedly by XSLTTransforms.

Supported API: true

Specified by:
newStylesheet in class XMLSourceFactory
Parameters:
xslSource -
Returns:
Stylesheet
Throws:
IOException
SAXException
See Also:
XSLTransform, XMLSourceFactory.newXSLTransform(wt.util.xml.xslt.XMLSource, wt.util.xml.xslt.Stylesheet, java.util.Hashtable)

getJAXPSource

Source getJAXPSource(XMLSource xmlSource)
               throws SAXException,
                      IOException
Utility to produce JAXP Source objects from XMLSource objects

Throws:
SAXException
IOException

getFactories

JAXPFactories getFactories()
Accessor to JAXP factories holder