Save This Page
Home » openjdk-7 » com.sun.org.apache.xalan » internal » xsltc » trax » [javadoc | source]
com.sun.org.apache.xalan.internal.xsltc.trax
public class: TransformerFactoryImpl [javadoc | source]
java.lang.Object
   javax.xml.transform.TransformerFactory
      javax.xml.transform.sax.SAXTransformerFactory
         com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl

All Implemented Interfaces:
    SourceLoader, ErrorListener

Implementation of a JAXP1.1 TransformerFactory for Translets.
Field Summary
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     
protected static final  String DEFAULT_TRANSLET_NAME    As Gregor Samsa awoke one morning from uneasy dreams he found himself transformed in his bed into a gigantic insect. He was lying on his hard, as it were armour plated, back, and if he lifted his head a little he could see his big, brown belly divided into stiff, arched segments, on top of which the bed quilt could hardly keep in position and was about to slide off completely. His numerous legs, which were pitifully thin compared to the rest of his bulk, waved helplessly before his eyes. "What has happened to me?", he thought. It was no dream.... 
Fields inherited from javax.xml.transform.sax.SAXTransformerFactory:
FEATURE,  FEATURE_XMLFILTER
Constructor:
 public TransformerFactoryImpl() 
Method from com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl Summary:
error,   fatalError,   getAssociatedStylesheet,   getAttribute,   getDTMManagerClass,   getErrorListener,   getFeature,   getURIResolver,   loadSource,   newTemplates,   newTemplatesHandler,   newTransformer,   newTransformer,   newTransformerHandler,   newTransformerHandler,   newTransformerHandler,   newXMLFilter,   newXMLFilter,   setAttribute,   setErrorListener,   setFeature,   setURIResolver,   warning
Methods from javax.xml.transform.sax.SAXTransformerFactory:
newTemplatesHandler,   newTransformerHandler,   newTransformerHandler,   newTransformerHandler,   newXMLFilter,   newXMLFilter
Methods from javax.xml.transform.TransformerFactory:
getAssociatedStylesheet,   getAttribute,   getErrorListener,   getFeature,   getURIResolver,   newInstance,   newInstance,   newTemplates,   newTransformer,   newTransformer,   setAttribute,   setErrorListener,   setFeature,   setURIResolver
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl Detail:
 public  void error(TransformerException e) throws TransformerException 
    Receive notification of a recoverable error. The transformer must continue to provide normal parsing events after invoking this method. It should still be possible for the application to process the document through to the end.
 public  void fatalError(TransformerException e) throws TransformerException 
    Receive notification of a non-recoverable error. The application must assume that the transformation cannot continue after the Transformer has invoked this method, and should continue (if at all) only to collect addition error messages. In fact, Transformers are free to stop reporting events once this method has been invoked.
 public Source getAssociatedStylesheet(Source source,
    String media,
    String title,
    String charset) throws TransformerConfigurationException 
    javax.xml.transform.sax.TransformerFactory implementation. Get the stylesheet specification(s) associated via the xml-stylesheet processing instruction (see http://www.w3.org/TR/xml-stylesheet/) with the document document specified in the source parameter, and that match the given criteria.
 public Object getAttribute(String name) throws IllegalArgumentException 
    javax.xml.transform.sax.TransformerFactory implementation. Returns the value set for a TransformerFactory attribute
 protected Class getDTMManagerClass() 
    Returns the Class object the provides the XSLTC DTM Manager service.
 public ErrorListener getErrorListener() 
    javax.xml.transform.sax.TransformerFactory implementation. Get the error event handler for the TransformerFactory.
 public boolean getFeature(String name) 
    javax.xml.transform.sax.TransformerFactory implementation. Look up the value of a feature (to see if it is supported). This method must be updated as the various methods and features of this class are implemented.
 public URIResolver getURIResolver() 
    javax.xml.transform.sax.TransformerFactory implementation. Get the object that is used by default during the transformation to resolve URIs used in document(), xsl:import, or xsl:include.
 public InputSource loadSource(String href,
    String context,
    XSLTC xsltc) 
    This method implements XSLTC's SourceLoader interface. It is used to glue a TrAX URIResolver to the XSLTC compiler's Input and Import classes.
 public Templates newTemplates(Source source) throws TransformerConfigurationException 
    javax.xml.transform.sax.TransformerFactory implementation. Process the Source into a Templates object, which is a a compiled representation of the source.
 public TemplatesHandler newTemplatesHandler() throws TransformerConfigurationException 
    javax.xml.transform.sax.SAXTransformerFactory implementation. Get a TemplatesHandler object that can process SAX ContentHandler events into a Templates object.
 public Transformer newTransformer() throws TransformerConfigurationException 
    javax.xml.transform.sax.TransformerFactory implementation. Create a Transformer object that copies the input document to the result.
 public Transformer newTransformer(Source source) throws TransformerConfigurationException 
    javax.xml.transform.sax.TransformerFactory implementation. Process the Source into a Templates object, which is a a compiled representation of the source. Note that this method should not be used with XSLTC, as the time-consuming compilation is done for each and every transformation.
 public TransformerHandler newTransformerHandler() throws TransformerConfigurationException 
    javax.xml.transform.sax.SAXTransformerFactory implementation. Get a TransformerHandler object that can process SAX ContentHandler events into a Result. This method will return a pure copy transformer.
 public TransformerHandler newTransformerHandler(Source src) throws TransformerConfigurationException 
    javax.xml.transform.sax.SAXTransformerFactory implementation. Get a TransformerHandler object that can process SAX ContentHandler events into a Result, based on the transformation instructions specified by the argument.
 public TransformerHandler newTransformerHandler(Templates templates) throws TransformerConfigurationException 
    javax.xml.transform.sax.SAXTransformerFactory implementation. Get a TransformerHandler object that can process SAX ContentHandler events into a Result, based on the transformation instructions specified by the argument.
 public XMLFilter newXMLFilter(Source src) throws TransformerConfigurationException 
    javax.xml.transform.sax.SAXTransformerFactory implementation. Create an XMLFilter that uses the given source as the transformation instructions.
 public XMLFilter newXMLFilter(Templates templates) throws TransformerConfigurationException 
    javax.xml.transform.sax.SAXTransformerFactory implementation. Create an XMLFilter that uses the given source as the transformation instructions.
 public  void setAttribute(String name,
    Object value) throws IllegalArgumentException 
    javax.xml.transform.sax.TransformerFactory implementation. Sets the value for a TransformerFactory attribute.
 public  void setErrorListener(ErrorListener listener) throws IllegalArgumentException 
    javax.xml.transform.sax.TransformerFactory implementation. Set the error event listener for the TransformerFactory, which is used for the processing of transformation instructions, and not for the transformation itself.
 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 java.net.URI s. 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 javax.xml.transform.TransformerFactory for full documentation of specific features.

 public  void setURIResolver(URIResolver resolver) 
    javax.xml.transform.sax.TransformerFactory implementation. Set the object that is used by default during the transformation to resolve URIs used in document(), xsl:import, or xsl:include. Note that this does not affect Templates and Transformers that are already created with this factory.
 public  void warning(TransformerException e) throws TransformerException 
    Receive notification of a warning. Transformers can use this method to report conditions that are not errors or fatal errors. The default behaviour is to take no action. After invoking this method, the Transformer must continue with the transformation. It should still be possible for the application to process the document through to the end.