| Modifier and Type | Method and Description |
|---|---|
void |
clearParameters()
Implements JAXP's Transformer.clearParameters()
Clear all parameters set with setParameter.
|
void |
error(javax.xml.transform.TransformerException e)
Receive notification of a recoverable error.
|
void |
fatalError(javax.xml.transform.TransformerException e)
Receive notification of a non-recoverable error.
|
javax.xml.transform.ErrorListener |
getErrorListener()
Implements JAXP's Transformer.getErrorListener()
Get the error event handler in effect for the transformation.
|
SerializationHandler |
getOutputHandler(javax.xml.transform.Result result)
Create an output handler for the transformation output based on
the type and contents of the TrAX Result object passed to the
transform() method.
|
java.util.Properties |
getOutputProperties()
Implements JAXP's Transformer.getOutputProperties().
|
java.lang.String |
getOutputProperty(java.lang.String name)
Implements JAXP's Transformer.getOutputProperty().
|
java.lang.Object |
getParameter(java.lang.String name)
Implements JAXP's Transformer.getParameter()
Returns the value of a given parameter.
|
javax.xml.transform.URIResolver |
getURIResolver()
Implements JAXP's Transformer.getURIResolver()
Set the object currently used to resolve URIs used in document().
|
boolean |
isIdentity() |
boolean |
isSecureProcessing()
Return the state of the secure processing feature.
|
void |
reset()
This method resets the Transformer to its original configuration
Transformer code is reset to the same state it was when it was
created
|
DOM |
retrieveDocument(java.lang.String baseURI,
java.lang.String href,
Translet translet)
This class should only be used as a DOMCache for the translet if the
URIResolver has been set.
|
void |
setErrorListener(javax.xml.transform.ErrorListener listener)
Implements JAXP's Transformer.setErrorListener()
Set the error event listener in effect for the transformation.
|
void |
setOutputProperties(java.util.Properties properties)
Implements JAXP's Transformer.setOutputProperties().
|
void |
setOutputProperty(java.lang.String name,
java.lang.String value)
Implements JAXP's Transformer.setOutputProperty().
|
void |
setParameter(java.lang.String name,
java.lang.Object value)
Implements JAXP's Transformer.setParameter()
Add a parameter for the transformation.
|
void |
setSecureProcessing(boolean flag)
Set the state of the secure processing feature.
|
void |
setURIResolver(javax.xml.transform.URIResolver resolver)
Implements JAXP's Transformer.setURIResolver()
Set an object that will be used to resolve URIs used in document().
|
void |
transferOutputProperties(SerializationHandler handler)
This method is used to pass any properties to the output handler
when running the identity transform.
|
void |
transform(javax.xml.transform.Source source,
javax.xml.transform.Result result)
Implements JAXP's Transformer.transform()
|
void |
warning(javax.xml.transform.TransformerException e)
Receive notification of a warning.
|
public boolean isSecureProcessing()
public void setSecureProcessing(boolean flag)
public boolean isIdentity()
public void transform(javax.xml.transform.Source source,
javax.xml.transform.Result result)
throws javax.xml.transform.TransformerException
transform in class javax.xml.transform.Transformersource - Contains the input XML documentresult - Will contain the output from the transformationjavax.xml.transform.TransformerExceptionpublic SerializationHandler getOutputHandler(javax.xml.transform.Result result) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerExceptionpublic javax.xml.transform.ErrorListener getErrorListener()
getErrorListener in class javax.xml.transform.Transformerpublic void setErrorListener(javax.xml.transform.ErrorListener listener)
throws java.lang.IllegalArgumentException
setErrorListener in class javax.xml.transform.Transformerlistener - The error event listener to usejava.lang.IllegalArgumentExceptionpublic java.util.Properties getOutputProperties()
getOutputProperties in class javax.xml.transform.Transformerpublic java.lang.String getOutputProperty(java.lang.String name)
throws java.lang.IllegalArgumentException
getOutputProperty in class javax.xml.transform.Transformername - A non-null string that contains the name of the propertyjava.lang.IllegalArgumentException - if the property name is not knownpublic void setOutputProperties(java.util.Properties properties)
throws java.lang.IllegalArgumentException
setOutputProperties in class javax.xml.transform.Transformerproperties - The properties to use for the Transformerjava.lang.IllegalArgumentException - Never, errors are ignoredpublic void setOutputProperty(java.lang.String name,
java.lang.String value)
throws java.lang.IllegalArgumentException
setOutputProperty in class javax.xml.transform.Transformername - The name of the property to setvalue - The value to assign to the propertyjava.lang.IllegalArgumentException - Never, errors are ignoredpublic void transferOutputProperties(SerializationHandler handler)
public void setParameter(java.lang.String name,
java.lang.Object value)
setParameter in class javax.xml.transform.Transformername - The name of the parametervalue - The value to assign to the parameterpublic void clearParameters()
clearParameters in class javax.xml.transform.Transformerpublic final java.lang.Object getParameter(java.lang.String name)
getParameter in class javax.xml.transform.Transformername - The name of the parameterpublic javax.xml.transform.URIResolver getURIResolver()
getURIResolver in class javax.xml.transform.Transformerpublic void setURIResolver(javax.xml.transform.URIResolver resolver)
setURIResolver in class javax.xml.transform.Transformerresolver - The URIResolver to use in document()public DOM retrieveDocument(java.lang.String baseURI, java.lang.String href, Translet translet)
retrieveDocument in interface DOMCachebaseURI - The base URI used by the document call.href - The href argument passed to the document function.translet - A reference to the translet requesting the documentpublic void error(javax.xml.transform.TransformerException e)
throws javax.xml.transform.TransformerException
error in interface javax.xml.transform.ErrorListenere - The warning information encapsulated in a transformer
exception.javax.xml.transform.TransformerException - if the application chooses to discontinue
the transformation (always does in our case).public void fatalError(javax.xml.transform.TransformerException e)
throws javax.xml.transform.TransformerException
fatalError in interface javax.xml.transform.ErrorListenere - The warning information encapsulated in a transformer
exception.javax.xml.transform.TransformerException - if the application chooses to discontinue
the transformation (always does in our case).public void warning(javax.xml.transform.TransformerException e)
throws javax.xml.transform.TransformerException
warning in interface javax.xml.transform.ErrorListenere - The warning information encapsulated in a transformer
exception.javax.xml.transform.TransformerException - if the application chooses to discontinue
the transformation (never does in our case).public void reset()
reset in class javax.xml.transform.TransformerCopyright © 2023 Apache XML Project. All Rights Reserved.