|
|||||||||
| Home >> All >> org >> apache >> xalan >> [ processor overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.xalan.processor
Class TransformerFactoryImpl

java.lang.Objectjavax.xml.transform.TransformerFactory
javax.xml.transform.sax.SAXTransformerFactory
org.apache.xalan.processor.TransformerFactoryImpl
- public class TransformerFactoryImpl
- extends javax.xml.transform.sax.SAXTransformerFactory
The TransformerFactoryImpl, which implements the TRaX TransformerFactory interface, processes XSLT stylesheets into a Templates object (a StylesheetRoot).
| Field Summary | |
static java.lang.String |
FEATURE_INCREMENTAL
Static string to be used for incremental feature |
static java.lang.String |
FEATURE_OPTIMIZE
Static string to be used for optimize feature |
static java.lang.String |
FEATURE_SOURCE_LOCATION
Static string to be used for source_location feature |
private java.lang.String |
m_DOMsystemID
The systemID that was specified in processFromNode(Node node, String systemID). |
private javax.xml.transform.ErrorListener |
m_errorListener
The error listener. |
static boolean |
m_optimize
|
static boolean |
m_source_location
Flag set by FEATURE_SOURCE_LOCATION. |
(package private) javax.xml.transform.URIResolver |
m_uriResolver
The object that implements the URIResolver interface, or null. |
static java.lang.String |
XSLT_PROPERTIES
The path/filename of the property file: XSLTInfo.properties Maintenance note: see also org.apache.xpath.functions.FuncSystemProperty.XSLT_PROPERTIES |
| Fields inherited from class javax.xml.transform.sax.SAXTransformerFactory |
FEATURE, FEATURE_XMLFILTER |
| Constructor Summary | |
TransformerFactoryImpl()
Constructor TransformerFactoryImpl |
|
| Method Summary | |
javax.xml.transform.Source |
getAssociatedStylesheet(javax.xml.transform.Source source,
java.lang.String media,
java.lang.String title,
java.lang.String charset)
Get InputSource specification(s) that are associated with the given document specified in the source param, via the xml-stylesheet processing instruction (see http://www.w3.org/TR/xml-stylesheet/), and that matches the given criteria. |
java.lang.Object |
getAttribute(java.lang.String name)
Allows the user to retrieve specific attributes on the underlying implementation. |
(package private) java.lang.String |
getDOMsystemID()
The systemID that was specified in processFromNode(Node node, String systemID). |
javax.xml.transform.ErrorListener |
getErrorListener()
Get the error listener in effect for the TransformerFactory. |
boolean |
getFeature(java.lang.String name)
Look up the value of a feature. |
javax.xml.transform.URIResolver |
getURIResolver()
Get the object that will be used to resolve URIs used in xsl:import, etc. |
javax.xml.transform.Templates |
newTemplates(javax.xml.transform.Source source)
Process the source into a Templates object, which is likely a compiled representation of the source. |
javax.xml.transform.sax.TemplatesHandler |
newTemplatesHandler()
Create a new Transformer object that performs a copy of the source to the result. |
javax.xml.transform.Transformer |
newTransformer()
Create a new Transformer object that performs a copy of the source to the result. |
javax.xml.transform.Transformer |
newTransformer(javax.xml.transform.Source source)
Process the source into a Transformer object. |
javax.xml.transform.sax.TransformerHandler |
newTransformerHandler()
Get a TransformerHandler object that can process SAX ContentHandler events into a Result. |
javax.xml.transform.sax.TransformerHandler |
newTransformerHandler(javax.xml.transform.Source src)
Get a TransformerHandler object that can process SAX ContentHandler events into a Result, based on the transformation instructions specified by the argument. |
javax.xml.transform.sax.TransformerHandler |
newTransformerHandler(javax.xml.transform.Templates templates)
Get a TransformerHandler object that can process SAX ContentHandler events into a Result, based on the Templates argument. |
org.xml.sax.XMLFilter |
newXMLFilter(javax.xml.transform.Source src)
Create an XMLFilter that uses the given source as the transformation instructions. |
org.xml.sax.XMLFilter |
newXMLFilter(javax.xml.transform.Templates templates)
Create an XMLFilter that uses the given source as the transformation instructions. |
javax.xml.transform.Templates |
processFromNode(org.w3c.dom.Node node)
|
(package private) javax.xml.transform.Templates |
processFromNode(org.w3c.dom.Node node,
java.lang.String systemID)
Process the stylesheet from a DOM tree, if the processor supports the "http://xml.org/trax/features/dom/input" feature. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Allows the user to set specific attributes on the underlying implementation. |
void |
setErrorListener(javax.xml.transform.ErrorListener listener)
Set an error listener for the TransformerFactory. |
void |
setURIResolver(javax.xml.transform.URIResolver resolver)
Set an object that will be used to resolve URIs used in xsl:import, etc. |
| Methods inherited from class javax.xml.transform.TransformerFactory |
newInstance, setFeature |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
XSLT_PROPERTIES
public static final java.lang.String XSLT_PROPERTIES
- The path/filename of the property file: XSLTInfo.properties
Maintenance note: see also
org.apache.xpath.functions.FuncSystemProperty.XSLT_PROPERTIES- See Also:
- Constant Field Values
FEATURE_INCREMENTAL
public static final java.lang.String FEATURE_INCREMENTAL
- Static string to be used for incremental feature
- See Also:
- Constant Field Values
FEATURE_OPTIMIZE
public static final java.lang.String FEATURE_OPTIMIZE
- Static string to be used for optimize feature
- See Also:
- Constant Field Values
FEATURE_SOURCE_LOCATION
public static final java.lang.String FEATURE_SOURCE_LOCATION
- Static string to be used for source_location feature
- See Also:
- Constant Field Values
m_DOMsystemID
private java.lang.String m_DOMsystemID
- The systemID that was specified in
processFromNode(Node node, String systemID).
m_optimize
public static boolean m_optimize
m_source_location
public static boolean m_source_location
- Flag set by FEATURE_SOURCE_LOCATION.
This feature specifies whether the transformation phase should
keep track of line and column numbers for the input source
document. Note that this works only when that
information is available from the source -- in other words, if you
pass in a DOM, there's little we can do for you.
The default is false. Setting it true may significantly
increase storage cost per node.
m_uriResolver
javax.xml.transform.URIResolver m_uriResolver
- The object that implements the URIResolver interface,
or null.
m_errorListener
private javax.xml.transform.ErrorListener m_errorListener
- The error listener.
| Constructor Detail |
TransformerFactoryImpl
public TransformerFactoryImpl()
- Constructor TransformerFactoryImpl
| Method Detail |
processFromNode
public javax.xml.transform.Templates processFromNode(org.w3c.dom.Node node) throws javax.xml.transform.TransformerConfigurationException
getDOMsystemID
java.lang.String getDOMsystemID()
- The systemID that was specified in
processFromNode(Node node, String systemID).
processFromNode
javax.xml.transform.Templates processFromNode(org.w3c.dom.Node node, java.lang.String systemID) throws javax.xml.transform.TransformerConfigurationException
- Process the stylesheet from a DOM tree, if the
processor supports the "http://xml.org/trax/features/dom/input"
feature.
getAssociatedStylesheet
public javax.xml.transform.Source getAssociatedStylesheet(javax.xml.transform.Source source, java.lang.String media, java.lang.String title, java.lang.String charset) throws javax.xml.transform.TransformerConfigurationException
- Get InputSource specification(s) that are associated with the
given document specified in the source param,
via the xml-stylesheet processing instruction
(see http://www.w3.org/TR/xml-stylesheet/), and that matches
the given criteria. Note that it is possible to return several stylesheets
that match the criteria, in which case they are applied as if they were
a list of imports or cascades.
Note that DOM2 has it's own mechanism for discovering stylesheets. Therefore, there isn't a DOM version of this method.
newTemplatesHandler
public javax.xml.transform.sax.TemplatesHandler newTemplatesHandler() throws javax.xml.transform.TransformerConfigurationException
- Create a new Transformer object that performs a copy
of the source to the result.
getFeature
public boolean getFeature(java.lang.String name)
- Look up the value of a feature.
The feature name is any fully-qualified URI. It is possible for an TransformerFactory to recognize a feature name but to be unable to return its value; this is especially true in the case of an adapter for a SAX1 Parser, which has no way of knowing whether the underlying parser is validating, for example.
setAttribute
public void setAttribute(java.lang.String name, java.lang.Object value) throws java.lang.IllegalArgumentException
- Allows the user to set specific attributes on the underlying
implementation.
getAttribute
public java.lang.Object getAttribute(java.lang.String name) throws java.lang.IllegalArgumentException
- Allows the user to retrieve specific attributes on the underlying
implementation.
newXMLFilter
public org.xml.sax.XMLFilter newXMLFilter(javax.xml.transform.Source src) throws javax.xml.transform.TransformerConfigurationException
- Create an XMLFilter that uses the given source as the
transformation instructions.
newXMLFilter
public org.xml.sax.XMLFilter newXMLFilter(javax.xml.transform.Templates templates) throws javax.xml.transform.TransformerConfigurationException
- Create an XMLFilter that uses the given source as the
transformation instructions.
newTransformerHandler
public javax.xml.transform.sax.TransformerHandler newTransformerHandler(javax.xml.transform.Source src) throws javax.xml.transform.TransformerConfigurationException
- Get a TransformerHandler object that can process SAX
ContentHandler events into a Result, based on the transformation
instructions specified by the argument.
newTransformerHandler
public javax.xml.transform.sax.TransformerHandler newTransformerHandler(javax.xml.transform.Templates templates) throws javax.xml.transform.TransformerConfigurationException
- Get a TransformerHandler object that can process SAX
ContentHandler events into a Result, based on the Templates argument.
newTransformerHandler
public javax.xml.transform.sax.TransformerHandler newTransformerHandler() throws javax.xml.transform.TransformerConfigurationException
- Get a TransformerHandler object that can process SAX
ContentHandler events into a Result.
newTransformer
public javax.xml.transform.Transformer newTransformer(javax.xml.transform.Source source) throws javax.xml.transform.TransformerConfigurationException
- Process the source into a Transformer object. Care must
be given to know that this object can not be used concurrently
in multiple threads.
newTransformer
public javax.xml.transform.Transformer newTransformer() throws javax.xml.transform.TransformerConfigurationException
- Create a new Transformer object that performs a copy
of the source to the result.
newTemplates
public javax.xml.transform.Templates newTemplates(javax.xml.transform.Source source) throws javax.xml.transform.TransformerConfigurationException
- Process the source into a Templates object, which is likely
a compiled representation of the source. This Templates object
may then be used concurrently across multiple threads. Creating
a Templates object allows the TransformerFactory to do detailed
performance optimization of transformation instructions, without
penalizing runtime transformation.
setURIResolver
public void setURIResolver(javax.xml.transform.URIResolver resolver)
- Set an object that will be used to resolve URIs used in
xsl:import, etc. This will be used as the default for the
transformation.
getURIResolver
public javax.xml.transform.URIResolver getURIResolver()
- Get the object that will be used to resolve URIs used in
xsl:import, etc. This will be used as the default for the
transformation.
getErrorListener
public javax.xml.transform.ErrorListener getErrorListener()
- Get the error listener in effect for the TransformerFactory.
setErrorListener
public void setErrorListener(javax.xml.transform.ErrorListener listener) throws java.lang.IllegalArgumentException
- Set an error listener for the TransformerFactory.
|
|||||||||
| Home >> All >> org >> apache >> xalan >> [ processor overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC