|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.transform.Transformer
jd.xml.xslt.trax.TransformerImpl
An implementation of the Trax Transformer class. Its functionality is equivalent to jd.xml.xslt.Transformation.
Constructor Summary | |
TransformerImpl(Transformation transformation)
Create a TransformerImpl. |
Method Summary | |
void |
clearParameters()
Clear all parameters set with setParameter. |
ErrorListener |
getErrorListener()
Get the error event handler in effect for the transformation. |
Properties |
getOutputProperties()
Return the output properties. |
String |
getOutputProperty(String name)
Returns getOutputProperties().getProperty(name). |
Object |
getParameter(String name)
Get a parameter that was explicitly set with setParameter or setParameters. |
Transformation |
getTransformation()
|
URIResolver |
getURIResolver()
Get an object that will be used to resolve URIs used in document(), etc. |
void |
setErrorListener(ErrorListener listener)
Set the error event listener in effect for the transformation. |
void |
setOutputProperties(Properties outputProperties)
Set the output properties for the transformation. |
void |
setOutputProperty(String name,
String value)
Set an output property that will be in effect for the transformation. |
void |
setParameter(String name,
Object value)
Add a parameter for the transformation. |
void |
setURIResolver(URIResolver resolver)
Set an object that will be used to resolve URIs used in document(). |
void |
transform(Source source,
Result result)
Process the source tree to the output result. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TransformerImpl(Transformation transformation)
Method Detail |
public Transformation getTransformation()
public void transform(Source source, Result result) throws TransformerException
source
- The input for the source tree.result
- The output target.
TransformerException
- If an unrecoverable error occurs
during the course of the transformation.public void clearParameters()
public void setParameter(String name, Object value)
name
- 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.public Object getParameter(String name)
public URIResolver getURIResolver()
public void setURIResolver(URIResolver resolver)
resolver
- An object that implements the URIResolver interface,
or null.public String getOutputProperty(String name)
name
- A non-null String that specifies an output
property name, which may be namespace qualified.
OutputKeys
public Properties getOutputProperties()
OutputKeys
,
Properties
public void setOutputProperties(Properties outputProperties) throws IllegalArgumentException
outputProperties
- A set of output properties that will be
used to override any of the same properties in affect
for the transformation.
IllegalArgumentException
- if any of the argument keys are not
recognized and are not namespace qualified.OutputKeys
,
Properties
public void setOutputProperty(String name, String value) throws IllegalArgumentException
name
- A non-null String that specifies an output
property name, which may be namespace qualified.value
- The non-null string value of the output property.
IllegalArgumentException
- If the property is not supported, and is
not qualified with a namespace.OutputKeys
public void setErrorListener(ErrorListener listener) throws IllegalArgumentException
listener
- The new error listener.
IllegalArgumentException
- if listener is null.public ErrorListener getErrorListener()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |