Interface Transformer

  • All Superinterfaces:
    All Known Implementing Classes:

    public interface Transformer
    extends org.xml.sax.ContentHandler
    The Transformer interface defines the middle of a rewriter pipeline.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void dispose()
      Dispose the transformer.
      void init​(ProcessingContext context, ProcessingComponentConfiguration config)
      Initialize this component.
      void setContentHandler​(org.xml.sax.ContentHandler handler)
      Set the content handler the transformer should stream to.
      • Methods inherited from interface org.xml.sax.ContentHandler

        characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
    • Method Detail

      • init

        void init​(ProcessingContext context,
                  ProcessingComponentConfiguration config)
        Initialize this component.
        context - The invocation context.
        config - The configuration for this component.
      • setContentHandler

        void setContentHandler​(org.xml.sax.ContentHandler handler)
        Set the content handler the transformer should stream to.
        handler - Another transformer or a serializer.
      • dispose

        void dispose()
        Dispose the transformer. This method is always invoked by the rewriter in order to allow the transformer to release any resources etc. After this method has been called the instance is considered unusable.