wt.util.xml.xslt
Class AbstractXSLTransform

java.lang.Object
  extended bywt.util.xml.xslt.AbstractXSLTransform
All Implemented Interfaces:
DOMXMLSource, ReaderXMLSource, SAX2XMLSource, SAXXMLSource, StreamXMLSource, XMLSource, XSLTransform
Direct Known Subclasses:
JAXPXSLTransform

abstract class AbstractXSLTransform
extends Object
implements XSLTransform


Field Summary
private  String baseURI
           
private  Hashtable inputParameters
           
private  XMLSource xmlSource
           
 
Constructor Summary
(package private) AbstractXSLTransform(XMLSource xmlSource, Hashtable inputParameters, String baseURI)
           
 
Method Summary
 String getBaseURI()
          The URI describing the location of the XML data, up to, but not including the file part of the URI.
 Hashtable getInputParameters()
          The parameters to pass into the stylesheet during the transform.
 InputStream getInputStream()
          The input stream that can be read to get the XML data in byte form.
 Reader getReader()
          The reader that can be read to get the XML data in character form.
 XMLSource getXMLSource()
          The XMLSource used as input to the transform (Warning: modifying the XML source and modifying it [for example reading from an input stream] will likely result in errors in the transformation).
 void produceEvents(DocumentHandler listener)
          Produce the SAX events for the XML source data calling the appropriate handler methods on the provided DocumentHandler instance.
 void setInputParameters(Hashtable inputParameters)
          Reset the input parameters to the specified set.
 void setXMLSource(XMLSource xmlSource)
          Resets the XMLSource to that specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface wt.util.xml.xslt.XSLTransform
getStyleSheet, outputToStream, outputToWriter
 
Methods inherited from interface wt.util.xml.xslt.DOMXMLSource
getNode
 
Methods inherited from interface wt.util.xml.xslt.SAX2XMLSource
produceEvents
 

Field Detail

xmlSource

private XMLSource xmlSource

inputParameters

private Hashtable inputParameters

baseURI

private String baseURI
Constructor Detail

AbstractXSLTransform

AbstractXSLTransform(XMLSource xmlSource,
                     Hashtable inputParameters,
                     String baseURI)
Method Detail

getBaseURI

public String getBaseURI()
Description copied from interface: XMLSource
The URI describing the location of the XML data, up to, but not including the file part of the URI. For example, the base URI for data sourced at http://www.acme.com/documents/Document1.xml would be http://www.acme.com/documents.

Supported API: true

Specified by:
getBaseURI in interface XMLSource
Returns:
String

getXMLSource

public XMLSource getXMLSource()
Description copied from interface: XSLTransform
The XMLSource used as input to the transform (Warning: modifying the XML source and modifying it [for example reading from an input stream] will likely result in errors in the transformation).

Supported API: true

Specified by:
getXMLSource in interface XSLTransform
Returns:
XMLSource

setXMLSource

public void setXMLSource(XMLSource xmlSource)
Description copied from interface: XSLTransform
Resets the XMLSource to that specified. Useful for resetting the source of a transformation chain.

Supported API: true

Specified by:
setXMLSource in interface XSLTransform
Parameters:
xmlSource -

getInputParameters

public Hashtable getInputParameters()
Description copied from interface: XSLTransform
The parameters to pass into the stylesheet during the transform. Note that modifying this hashtable will modify the parameters available to the stylesheet.

Supported API: true

Specified by:
getInputParameters in interface XSLTransform
Returns:
Hashtable

setInputParameters

public void setInputParameters(Hashtable inputParameters)
Description copied from interface: XSLTransform
Reset the input parameters to the specified set.

Supported API: true

Specified by:
setInputParameters in interface XSLTransform
Parameters:
inputParameters -

getInputStream

public InputStream getInputStream()
                           throws IOException
Description copied from interface: StreamXMLSource
The input stream that can be read to get the XML data in byte form.

Supported API: true

Specified by:
getInputStream in interface StreamXMLSource
Returns:
InputStream
Throws:
IOException

getReader

public Reader getReader()
                 throws IOException
Description copied from interface: ReaderXMLSource
The reader that can be read to get the XML data in character form.

Supported API: true

Specified by:
getReader in interface ReaderXMLSource
Returns:
Reader
Throws:
IOException

produceEvents

public void produceEvents(DocumentHandler listener)
                   throws SAXException
Description copied from interface: SAXXMLSource
Produce the SAX events for the XML source data calling the appropriate handler methods on the provided DocumentHandler instance.

Supported API: false

Specified by:
produceEvents in interface SAXXMLSource
Parameters:
listener - The handler that will "receive" the SAX events as method calls.
Throws:
SAXException