|
|||||||||||
| 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 java.lang.String |
AUTO_TRANSLET
|
static java.lang.String |
DEBUG
|
static java.lang.String |
DESTINATION_DIRECTORY
|
static java.lang.String |
ENABLE_INLINING
|
static java.lang.String |
GENERATE_TRANSLET
|
static java.lang.String |
INDENT_NUMBER
|
static java.lang.String |
JAR_NAME
|
static java.lang.String |
PACKAGE_NAME
|
static java.lang.String |
TRANSLET_NAME
|
static java.lang.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,
java.lang.String media,
java.lang.String title,
java.lang.String charset)
javax.xml.transform.sax.TransformerFactory implementation. |
java.lang.Object |
getAttribute(java.lang.String name)
javax.xml.transform.sax.TransformerFactory implementation. |
ErrorListener |
getErrorListener()
javax.xml.transform.sax.TransformerFactory implementation. |
boolean |
getFeature(java.lang.String name)
javax.xml.transform.sax.TransformerFactory implementation. |
URIResolver |
getURIResolver()
javax.xml.transform.sax.TransformerFactory implementation. |
InputSource |
loadSource(java.lang.String href,
java.lang.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(java.lang.String name,
java.lang.Object value)
javax.xml.transform.sax.TransformerFactory implementation. |
void |
setErrorListener(ErrorListener listener)
javax.xml.transform.sax.TransformerFactory implementation. |
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 java.lang.String TRANSLET_NAME
public static final java.lang.String DESTINATION_DIRECTORY
public static final java.lang.String PACKAGE_NAME
public static final java.lang.String JAR_NAME
public static final java.lang.String GENERATE_TRANSLET
public static final java.lang.String AUTO_TRANSLET
public static final java.lang.String USE_CLASSPATH
public static final java.lang.String DEBUG
public static final java.lang.String ENABLE_INLINING
public static final java.lang.String INDENT_NUMBER
| Constructor Detail |
public TransformerFactoryImpl()
| Method Detail |
public void setErrorListener(ErrorListener listener)
throws java.lang.IllegalArgumentException
setErrorListener in class TransformerFactorylistener - The error listener to use with the TransformerFactory
java.lang.IllegalArgumentExceptionpublic ErrorListener getErrorListener()
getErrorListener in class TransformerFactory
public java.lang.Object getAttribute(java.lang.String name)
throws java.lang.IllegalArgumentException
getAttribute in class TransformerFactoryname - The attribute name
java.lang.IllegalArgumentException
public void setAttribute(java.lang.String name,
java.lang.Object value)
throws java.lang.IllegalArgumentException
setAttribute in class TransformerFactoryname - The attribute namevalue - An object representing the attribute value
java.lang.IllegalArgumentExceptionpublic boolean getFeature(java.lang.String name)
getFeature in class TransformerFactoryname - The feature name
public URIResolver getURIResolver()
getURIResolver in class TransformerFactorypublic void setURIResolver(URIResolver resolver)
setURIResolver in class TransformerFactoryresolver - The URLResolver used for this TransformerFactory and all
Templates and Transformer objects created using this factory
public Source getAssociatedStylesheet(Source source,
java.lang.String media,
java.lang.String title,
java.lang.String charset)
throws TransformerConfigurationException
getAssociatedStylesheet in class TransformerFactorysource - 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
newTransformer in class TransformerFactoryTransformerConfigurationException
public Transformer newTransformer(Source source)
throws TransformerConfigurationException
newTransformer in class TransformerFactorysource - An object that holds a URI, input stream, etc.
TransformerConfigurationException
public Templates newTemplates(Source source)
throws TransformerConfigurationException
newTemplates in class TransformerFactorysource - An object that holds a URL, input stream, etc.
TransformerConfigurationException
public TemplatesHandler newTemplatesHandler()
throws TransformerConfigurationException
newTemplatesHandler in class SAXTransformerFactoryTransformerConfigurationException
public TransformerHandler newTransformerHandler()
throws TransformerConfigurationException
newTransformerHandler in class SAXTransformerFactoryTransformerConfigurationException
public TransformerHandler newTransformerHandler(Source src)
throws TransformerConfigurationException
newTransformerHandler in class SAXTransformerFactorysrc - The source of the transformation instructions.
TransformerConfigurationException
public TransformerHandler newTransformerHandler(Templates templates)
throws TransformerConfigurationException
newTransformerHandler in class SAXTransformerFactorytemplates - Represents a pre-processed stylesheet
TransformerConfigurationException
public XMLFilter newXMLFilter(Source src)
throws TransformerConfigurationException
newXMLFilter in class SAXTransformerFactorysrc - The source of the transformation instructions.
TransformerConfigurationException
public XMLFilter newXMLFilter(Templates templates)
throws TransformerConfigurationException
newXMLFilter in class SAXTransformerFactorytemplates - The compiled transformation instructions.
TransformerConfigurationException
public void error(TransformerException e)
throws TransformerException
error in interface ErrorListenere - The error information encapsulated in a
transformer exception.
TransformerException - if the application chooses to discontinue
the transformation (always does in our case).TransformerException
public void fatalError(TransformerException e)
throws TransformerException
fatalError in interface ErrorListenere - The error information encapsulated in a
transformer exception.
TransformerException - if the application chooses to discontinue
the transformation (always does in our case).TransformerException
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).TransformerException
public InputSource loadSource(java.lang.String href,
java.lang.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 | ||||||||||