|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.xml.transform.TransformerFactory
javax.xml.transform.sax.SAXTransformerFactory
org.apache.xalan.xsltc.trax.TransformerFactoryImpl
Implementation of a JAXP1.1 TransformerFactory for Translets.
| 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
|
| Fields inherited from class javax.xml.transform.sax.SAXTransformerFactory |
FEATURE, FEATURE_XMLFILTER |
| 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 TransformerFactory and Transformers
or Templates created by this factory. |
void |
setURIResolver(URIResolver resolver)
javax.xml.transform.sax.TransformerFactory implementation. |
void |
warning(TransformerException e)
Receive notification of a warning. |
| Methods inherited from class javax.xml.transform.TransformerFactory |
newInstance |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String TRANSLET_NAME
public static final String DESTINATION_DIRECTORY
public static final String PACKAGE_NAME
public static final String JAR_NAME
public static final String GENERATE_TRANSLET
public static final String AUTO_TRANSLET
public static final String USE_CLASSPATH
public static final String DEBUG
public static final String ENABLE_INLINING
public static final String INDENT_NUMBER
| Constructor Detail |
public TransformerFactoryImpl()
| Method Detail |
public void setErrorListener(ErrorListener listener)
throws IllegalArgumentException
listener - The error listener to use with the TransformerFactory
IllegalArgumentExceptionpublic ErrorListener getErrorListener()
public Object getAttribute(String name)
throws IllegalArgumentException
name - The attribute name
IllegalArgumentException
public void setAttribute(String name,
Object value)
throws IllegalArgumentException
name - The attribute namevalue - An object representing the attribute value
IllegalArgumentException
public void setFeature(String name,
boolean value)
throws TransformerConfigurationException
Set a feature for this TransformerFactory 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.
name - 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)
name - The feature name
public URIResolver getURIResolver()
public void setURIResolver(URIResolver resolver)
resolver - The URLResolver used for this TransformerFactory and all
Templates and Transformer objects created using this factory
public Source getAssociatedStylesheet(Source source,
String media,
String title,
String charset)
throws TransformerConfigurationException
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.
TransformerConfigurationException
public Transformer newTransformer()
throws TransformerConfigurationException
TransformerConfigurationException
public Transformer newTransformer(Source source)
throws TransformerConfigurationException
TransformerConfigurationException
public Templates newTemplates(Source source)
throws TransformerConfigurationException
source - The input stylesheet - DOMSource not supported!!!
TransformerConfigurationException
public TemplatesHandler newTemplatesHandler()
throws TransformerConfigurationException
TransformerConfigurationException
public TransformerHandler newTransformerHandler()
throws TransformerConfigurationException
TransformerConfigurationException
public TransformerHandler newTransformerHandler(Source src)
throws TransformerConfigurationException
src - The source of the transformation instructions.
TransformerConfigurationException
public TransformerHandler newTransformerHandler(Templates templates)
throws TransformerConfigurationException
templates - Represents a pre-processed stylesheet
TransformerConfigurationException
public XMLFilter newXMLFilter(Source src)
throws TransformerConfigurationException
src - The source of the transformation instructions.
TransformerConfigurationException
public XMLFilter newXMLFilter(Templates templates)
throws TransformerConfigurationException
templates - The source of the transformation instructions.
TransformerConfigurationException
public void error(TransformerException e)
throws TransformerException
error in interface ErrorListenere - The warning information encapsulated in a transformer
exception.
TransformerException - if the application chooses to discontinue
the transformation (always does in our case).
public void fatalError(TransformerException e)
throws TransformerException
fatalError in interface ErrorListenere - warning information encapsulated in a transformer
exception.
TransformerException - if the application chooses to discontinue
the transformation (always does in our case).
public void warning(TransformerException e)
throws TransformerException
warning in interface ErrorListenere - The warning information encapsulated in a transformer
exception.
TransformerException - if the application chooses to discontinue
the transformation (never does in our case).
public InputSource loadSource(String href,
String context,
XSLTC xsltc)
loadSource in interface SourceLoaderhref - The URI of the document to loadcontext - The URI of the currently loaded documentxsltc - The compiler that resuests the document
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||