public class SmartTransformerFactoryImpl extends SAXTransformerFactory
FEATURE, FEATURE_XMLFILTER
Constructor and Description |
---|
SmartTransformerFactoryImpl()
implementation of the SmartTransformerFactory.
|
Modifier and Type | Method and Description |
---|---|
Source |
getAssociatedStylesheet(Source source,
String media,
String title,
String charset) |
Object |
getAttribute(String name) |
ErrorListener |
getErrorListener() |
boolean |
getFeature(String name)
javax.xml.transform.sax.TransformerFactory implementation.
|
URIResolver |
getURIResolver() |
Templates |
newTemplates(Source source)
Create a Templates object that from the input stylesheet
Uses the org.apache.xalan.xsltc.trax.TransformerFactory.
|
TemplatesHandler |
newTemplatesHandler()
Get a TemplatesHandler object that can process SAX ContentHandler
events into a Templates object.
|
Transformer |
newTransformer()
Create a Transformer object that copies the input document to the
result.
|
Transformer |
newTransformer(Source source)
Create a Transformer object that from the input stylesheet
Uses the org.apache.xalan.processor.TransformerFactory.
|
TransformerHandler |
newTransformerHandler()
Get a TransformerHandler object that can process SAX ContentHandler
events based on a copy transformer.
|
TransformerHandler |
newTransformerHandler(Source src)
Get a TransformerHandler object that can process SAX ContentHandler
events based on a transformer specified by the stylesheet Source.
|
TransformerHandler |
newTransformerHandler(Templates templates)
Get a TransformerHandler object that can process SAX ContentHandler
events based on a transformer specified by the stylesheet Source.
|
XMLFilter |
newXMLFilter(Source src)
Create an XMLFilter that uses the given source as the
transformation instructions.
|
XMLFilter |
newXMLFilter(Templates templates) |
void |
setAttribute(String name,
Object value) |
void |
setErrorListener(ErrorListener listener) |
void |
setFeature(String name,
boolean value)
Set a feature for this
SmartTransformerFactory and Transformer s
or Template s created by this factory. |
void |
setURIResolver(URIResolver resolver) |
newInstance, newInstance
public SmartTransformerFactoryImpl()
public void setErrorListener(ErrorListener listener) throws IllegalArgumentException
setErrorListener
in class TransformerFactory
IllegalArgumentException
public ErrorListener getErrorListener()
getErrorListener
in class TransformerFactory
public Object getAttribute(String name) throws IllegalArgumentException
getAttribute
in class TransformerFactory
IllegalArgumentException
public void setAttribute(String name, Object value) throws IllegalArgumentException
setAttribute
in class TransformerFactory
IllegalArgumentException
public void setFeature(String name, boolean value) throws TransformerConfigurationException
Set a feature for this SmartTransformerFactory
and Transformer
s
or Template
s created by this factory.
Feature names are fully qualified URI
s.
Implementations may define their own features.
An TransformerConfigurationException
is thrown if this TransformerFactory
or the
Transformer
s or Template
s it creates cannot support the feature.
It is possible for an TransformerFactory
to expose a feature value but be unable to change its state.
See TransformerFactory
for full documentation of specific features.
setFeature
in class TransformerFactory
name
- Feature name.value
- Is feature state true
or false
.TransformerConfigurationException
- if this TransformerFactory
or the Transformer
s or Template
s it creates cannot support this feature.NullPointerException
- If the name
parameter is null.public boolean getFeature(String name)
getFeature
in class TransformerFactory
name
- The feature namepublic URIResolver getURIResolver()
getURIResolver
in class TransformerFactory
public void setURIResolver(URIResolver resolver)
setURIResolver
in class TransformerFactory
public Source getAssociatedStylesheet(Source source, String media, String title, String charset) throws TransformerConfigurationException
getAssociatedStylesheet
in class TransformerFactory
TransformerConfigurationException
public Transformer newTransformer() throws TransformerConfigurationException
newTransformer
in class TransformerFactory
TransformerConfigurationException
public Transformer newTransformer(Source source) throws TransformerConfigurationException
newTransformer
in class TransformerFactory
source
- the stylesheet.TransformerConfigurationException
public Templates newTemplates(Source source) throws TransformerConfigurationException
newTemplates
in class TransformerFactory
source
- the stylesheet.TransformerConfigurationException
public TemplatesHandler newTemplatesHandler() throws TransformerConfigurationException
newTemplatesHandler
in class SAXTransformerFactory
TransformerConfigurationException
public TransformerHandler newTransformerHandler() throws TransformerConfigurationException
newTransformerHandler
in class SAXTransformerFactory
TransformerConfigurationException
public TransformerHandler newTransformerHandler(Source src) throws TransformerConfigurationException
newTransformerHandler
in class SAXTransformerFactory
TransformerConfigurationException
public TransformerHandler newTransformerHandler(Templates templates) throws TransformerConfigurationException
newTransformerHandler
in class SAXTransformerFactory
TransformerConfigurationException
public XMLFilter newXMLFilter(Source src) throws TransformerConfigurationException
newXMLFilter
in class SAXTransformerFactory
TransformerConfigurationException
public XMLFilter newXMLFilter(Templates templates) throws TransformerConfigurationException
newXMLFilter
in class SAXTransformerFactory
TransformerConfigurationException
Copyright © 2020 JBoss by Red Hat. All rights reserved.