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 Transformers
or Templates created by this factory. |
void |
setURIResolver(URIResolver resolver) |
newInstance, newInstancepublic SmartTransformerFactoryImpl()
public void setErrorListener(ErrorListener listener) throws IllegalArgumentException
setErrorListener in class TransformerFactoryIllegalArgumentExceptionpublic ErrorListener getErrorListener()
getErrorListener in class TransformerFactorypublic Object getAttribute(String name) throws IllegalArgumentException
getAttribute in class TransformerFactoryIllegalArgumentExceptionpublic void setAttribute(String name, Object value) throws IllegalArgumentException
setAttribute in class TransformerFactoryIllegalArgumentExceptionpublic void setFeature(String name, boolean value) throws TransformerConfigurationException
Set a feature for this SmartTransformerFactory and Transformers
or Templates created by this factory.
Feature names are fully qualified URIs.
Implementations may define their own features.
An TransformerConfigurationException is thrown if this TransformerFactory or the
Transformers or Templates 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 TransformerFactoryname - Feature name.value - Is feature state true or false.TransformerConfigurationException - if this TransformerFactory
or the Transformers or Templates it creates cannot support this feature.NullPointerException - If the name parameter is null.public boolean getFeature(String name)
getFeature in class TransformerFactoryname - The feature namepublic URIResolver getURIResolver()
getURIResolver in class TransformerFactorypublic void setURIResolver(URIResolver resolver)
setURIResolver in class TransformerFactorypublic Source getAssociatedStylesheet(Source source, String media, String title, String charset) throws TransformerConfigurationException
getAssociatedStylesheet in class TransformerFactoryTransformerConfigurationExceptionpublic Transformer newTransformer() throws TransformerConfigurationException
newTransformer in class TransformerFactoryTransformerConfigurationExceptionpublic Transformer newTransformer(Source source) throws TransformerConfigurationException
newTransformer in class TransformerFactorysource - the stylesheet.TransformerConfigurationExceptionpublic Templates newTemplates(Source source) throws TransformerConfigurationException
newTemplates in class TransformerFactorysource - the stylesheet.TransformerConfigurationExceptionpublic TemplatesHandler newTemplatesHandler() throws TransformerConfigurationException
newTemplatesHandler in class SAXTransformerFactoryTransformerConfigurationExceptionpublic TransformerHandler newTransformerHandler() throws TransformerConfigurationException
newTransformerHandler in class SAXTransformerFactoryTransformerConfigurationExceptionpublic TransformerHandler newTransformerHandler(Source src) throws TransformerConfigurationException
newTransformerHandler in class SAXTransformerFactoryTransformerConfigurationExceptionpublic TransformerHandler newTransformerHandler(Templates templates) throws TransformerConfigurationException
newTransformerHandler in class SAXTransformerFactoryTransformerConfigurationExceptionpublic XMLFilter newXMLFilter(Source src) throws TransformerConfigurationException
newXMLFilter in class SAXTransformerFactoryTransformerConfigurationExceptionpublic XMLFilter newXMLFilter(Templates templates) throws TransformerConfigurationException
newXMLFilter in class SAXTransformerFactoryTransformerConfigurationExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.