Interface ChildrenVisitor

    • Method Detail

      • visitChildText

        void visitChildText​(CharacterData characterData,
                            ExecutionContext executionContext)
        Visits the character data of an Element. This method is invoked once for each chunk of character data. A shortcut for collecting character data is to annotate the SaxNgVisitor implementation with org.smooks.engine.delivery.sax.annotation.StreamResultWriter, or stash the character data in a TextAccumulatorMemento and restore the TextAccumulatorMemento in AfterVisitor.visitAfter(Element, ExecutionContext).
        Parameters:
        characterData - the node which includes character data but not any child Elements. The Element's ancestors are traversable unless the global configuration parameter maintain.element.stack is set to false.
        executionContext - the current ExecutionContext
      • visitChildElement

        void visitChildElement​(Element childElement,
                               ExecutionContext executionContext)
        Visits a child Element. This method is invoked once for each child Element.
        Parameters:
        childElement - the child ElementElement's ancestors are traversable unless the global configuration parameter maintain.element.stack is set to false. The Element's child nodes are not traversable.
        executionContext - the current ExecutionContext