abstract class AbstractTransformerImpl extends IdentityTransformer
Since Saxon 9.6, JAXP interfaces are implemented as a layer above the s9api interface
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTransformerImpl(XsltExecutable e) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearParameters()
Clear all parameters set with setParameter.
|
Object |
getParameter(String name)
Get a parameter that was explicitly set with setParameter.
|
protected Properties |
getStylesheetOutputProperties()
Get the output properties defined in the unnamed xsl:output declaration(s) within
the stylesheet
|
abstract Controller |
getUnderlyingController()
Get the internal Saxon Controller instance that implements this transformation.
|
XsltExecutable |
getUnderlyingXsltExecutable()
Get the underlying s9api implementation class representing the compled stylesheet
which this transformer is executing
|
protected Destination |
makeDestination(Result outputTarget) |
abstract XMLFilter |
newXMLFilter()
Create a JAXP XMLFilter which allows this transformation to be added to a SAX pipeline
|
protected abstract void |
setConvertedParameter(QName name,
XdmValue value) |
void |
setParameter(String name,
Object value)
Add a parameter for the transformation.
|
getConfiguration, getErrorListener, getLocalOutputProperties, getOutputProperties, getOutputProperty, getURIResolver, reportFatalError, reset, setErrorListener, setOutputProperties, setOutputProperty, setURIResolver, transformprotected AbstractTransformerImpl(XsltExecutable e)
protected Destination makeDestination(Result outputTarget) throws XPathException
XPathExceptionpublic void setParameter(String name, Object value)
Pass a qualified name as a two-part string, the namespace URI enclosed in curly braces ({}), followed by the local name. If the name has a null URL, the String only contain the local name. An application can safely check for a non-null URI by testing to see if the first character of the name is a '{' character.
For example, if a URI and local name were obtained from an element defined with <xyz:foo xmlns:xyz="http://xyz.foo.com/yada/baz.html"/>, then the qualified name would be "{http://xyz.foo.com/yada/baz.html}foo". Note that no prefix is used.
setParameter in class IdentityTransformername - The name of the parameter, which may begin with a
namespace URI in curly braces ({}).value - The value object. This can be any valid Java object. It is
up to the processor to provide the proper object coersion or to simply
pass the object on for use in an extension.NullPointerException - If value is null.IllegalArgumentException - If the supplied value cannot be converted to the declared
type of the corresponding stylesheet parameterpublic Object getParameter(String name)
This method does not return a default parameter value, which cannot be determined until the node context is evaluated during the transformation process.
getParameter in class IdentityTransformername - of Object to getpublic void clearParameters()
clearParameters in class IdentityTransformerprotected Properties getStylesheetOutputProperties()
getStylesheetOutputProperties in class IdentityTransformerpublic XsltExecutable getUnderlyingXsltExecutable()
public abstract Controller getUnderlyingController()
public abstract XMLFilter newXMLFilter()
TransformerFactory
was an StreamingTransformerFactory and the stylesheet is streamable, then this XMLFilter
will operate in streaming mode.