org.apache.xalan.xsltc.trax
public class TransformerFactoryImpl extends SAXTransformerFactory implements SourceLoader, ErrorListener
Field Summary | |
---|---|
static String | AUTO_TRANSLET |
static String | DEBUG |
static String | DESTINATION_DIRECTORY |
static String | ENABLE_INLINING |
static String | GENERATE_TRANSLET |
static String | INDENT_NUMBER |
static String | JAR_NAME |
static String | PACKAGE_NAME |
static String | TRANSLET_NAME |
static String | USE_CLASSPATH |
Constructor Summary | |
---|---|
TransformerFactoryImpl()
javax.xml.transform.sax.TransformerFactory implementation. |
Method Summary | |
---|---|
void | error(TransformerException e)
Receive notification of a recoverable error.
|
void | fatalError(TransformerException e)
Receive notification of a non-recoverable error.
|
Source | getAssociatedStylesheet(Source source, String media, String title, String charset)
javax.xml.transform.sax.TransformerFactory implementation.
|
Object | getAttribute(String name)
javax.xml.transform.sax.TransformerFactory implementation.
|
ErrorListener | getErrorListener()
javax.xml.transform.sax.TransformerFactory implementation.
|
boolean | getFeature(String name)
javax.xml.transform.sax.TransformerFactory implementation.
|
URIResolver | getURIResolver()
javax.xml.transform.sax.TransformerFactory implementation.
|
InputSource | loadSource(String href, String context, XSLTC xsltc)
This method implements XSLTC's SourceLoader interface. |
Templates | newTemplates(Source source)
javax.xml.transform.sax.TransformerFactory implementation.
|
TemplatesHandler | newTemplatesHandler()
javax.xml.transform.sax.SAXTransformerFactory implementation.
|
Transformer | newTransformer()
javax.xml.transform.sax.TransformerFactory implementation.
|
Transformer | newTransformer(Source source)
javax.xml.transform.sax.TransformerFactory implementation.
|
TransformerHandler | newTransformerHandler()
javax.xml.transform.sax.SAXTransformerFactory implementation.
|
TransformerHandler | newTransformerHandler(Source src)
javax.xml.transform.sax.SAXTransformerFactory implementation.
|
TransformerHandler | newTransformerHandler(Templates templates)
javax.xml.transform.sax.SAXTransformerFactory implementation.
|
XMLFilter | newXMLFilter(Source src)
javax.xml.transform.sax.SAXTransformerFactory implementation.
|
XMLFilter | newXMLFilter(Templates templates)
javax.xml.transform.sax.SAXTransformerFactory implementation.
|
void | setAttribute(String name, Object value)
javax.xml.transform.sax.TransformerFactory implementation.
|
void | setErrorListener(ErrorListener listener)
javax.xml.transform.sax.TransformerFactory implementation.
|
void | setFeature(String name, boolean value) Set a feature for this Feature names are fully qualified {@link java.net.URI}s. |
void | setURIResolver(URIResolver resolver)
javax.xml.transform.sax.TransformerFactory implementation.
|
void | warning(TransformerException e)
Receive notification of a warning.
|
Parameters: e The warning information encapsulated in a transformer exception.
Throws: TransformerException if the application chooses to discontinue the transformation (always does in our case).
Parameters: e warning information encapsulated in a transformer exception.
Throws: TransformerException if the application chooses to discontinue the transformation (always does in our case).
Parameters: source The XML source document. media The media attribute to be matched. May be null, in which case the prefered templates will be used (i.e. alternate = no). title The value of the title attribute to match. May be null. charset The value of the charset attribute to match. May be null.
Returns: A Source object suitable for passing to the TransformerFactory.
Throws: TransformerConfigurationException
Parameters: name The attribute name
Returns: An object representing the attribute value
Throws: IllegalArgumentException
Returns: The error listener used with the TransformerFactory
Parameters: name The feature name
Returns: 'true' if feature is supported, 'false' if not
Returns: The URLResolver used for this TransformerFactory and all Templates and Transformer objects created using this factory
Parameters: href The URI of the document to load context The URI of the currently loaded document xsltc The compiler that resuests the document
Returns: An InputSource with the loaded document
Parameters: source The input stylesheet - DOMSource not supported!!!
Returns: A Templates object that can be used to create Transformers.
Throws: TransformerConfigurationException
Returns: A TemplatesHandler object that can handle SAX events
Throws: TransformerConfigurationException
Returns: A Transformer object that simply copies the source to the result.
Throws: TransformerConfigurationException
Returns: A Templates object that can be used to create Transformers.
Throws: TransformerConfigurationException
Returns: A TransformerHandler object that can handle SAX events
Throws: TransformerConfigurationException
Parameters: src The source of the transformation instructions.
Returns: A TransformerHandler object that can handle SAX events
Throws: TransformerConfigurationException
Parameters: templates Represents a pre-processed stylesheet
Returns: A TransformerHandler object that can handle SAX events
Throws: TransformerConfigurationException
Parameters: src The source of the transformation instructions.
Returns: An XMLFilter object, or null if this feature is not supported.
Throws: TransformerConfigurationException
Parameters: templates The source of the transformation instructions.
Returns: An XMLFilter object, or null if this feature is not supported.
Throws: TransformerConfigurationException
Parameters: name The attribute name value An object representing the attribute value
Throws: IllegalArgumentException
Parameters: listener The error listener to use with the TransformerFactory
Throws: IllegalArgumentException
Set a feature for this TransformerFactory
and Transformer
s
or Template
s created by this factory.
Feature names are fully qualified {@link java.net.URI}s.
Implementations may define their own features.
An {@link 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 {@link javax.xml.transform.TransformerFactory} for full documentation of specific features.
Parameters: name Feature name. value Is feature state true
or false
.
Throws: TransformerConfigurationException if this TransformerFactory
or the Transformer
s or Template
s it creates cannot support this feature. NullPointerException If the name
parameter is null.
Parameters: resolver The URLResolver used for this TransformerFactory and all Templates and Transformer objects created using this factory
Parameters: e The warning information encapsulated in a transformer exception.
Throws: TransformerException if the application chooses to discontinue the transformation (never does in our case).