Class NestedSmooksVisitor

  • All Implemented Interfaces:
    org.smooks.api.delivery.ContentHandler, org.smooks.api.delivery.ordering.Consumer, org.smooks.api.lifecycle.PostFragmentLifecycle, org.smooks.api.lifecycle.PreExecutionLifecycle, org.smooks.api.resource.visitor.sax.ng.AfterVisitor, org.smooks.api.resource.visitor.sax.ng.BeforeVisitor, org.smooks.api.resource.visitor.sax.ng.SaxNgVisitor, org.smooks.api.resource.visitor.Visitor

    public class NestedSmooksVisitor
    extends Object
    implements org.smooks.api.resource.visitor.sax.ng.BeforeVisitor, org.smooks.api.resource.visitor.sax.ng.AfterVisitor, org.smooks.api.delivery.ordering.Consumer, org.smooks.api.lifecycle.PreExecutionLifecycle, org.smooks.api.lifecycle.PostFragmentLifecycle
    • Field Detail

      • CACHED_DOCUMENT_BUILDER_TYPED_KEY

        protected static final org.smooks.api.TypedKey<DocumentBuilder> CACHED_DOCUMENT_BUILDER_TYPED_KEY
      • bindBeanId

        protected org.smooks.api.bean.repository.BeanId bindBeanId
      • bindIdOptional

        @Inject
        @Named("bindId")
        protected Optional<String> bindIdOptional
      • outputStreamResourceOptional

        @Inject
        @Named("outputStreamResource")
        protected Optional<String> outputStreamResourceOptional
      • resourceConfig

        @Inject
        protected org.smooks.api.resource.config.ResourceConfig resourceConfig
      • maxNodeDepth

        @Inject
        protected Integer maxNodeDepth
      • applicationContext

        @Inject
        protected org.smooks.api.ApplicationContext applicationContext
      • rewriteEntities

        @Inject
        @Named("entities.rewrite")
        protected Boolean rewriteEntities
      • resourceConfigSeq

        protected org.smooks.api.resource.config.ResourceConfigSeq resourceConfigSeq
      • pipeline

        protected Smooks pipeline
    • Constructor Detail

      • NestedSmooksVisitor

        public NestedSmooksVisitor()
    • Method Detail

      • initRegistry

        protected void initRegistry()
      • onPreExecution

        public void onPreExecution​(org.smooks.api.ExecutionContext executionContext)
        Specified by:
        onPreExecution in interface org.smooks.api.lifecycle.PreExecutionLifecycle
      • deAttach

        protected Node deAttach​(Node node,
                                org.smooks.api.ExecutionContext executionContext)
      • visitBefore

        public void visitBefore​(Element element,
                                org.smooks.api.ExecutionContext executionContext)
        Specified by:
        visitBefore in interface org.smooks.api.resource.visitor.sax.ng.BeforeVisitor
      • visitAfter

        public void visitAfter​(Element element,
                               org.smooks.api.ExecutionContext executionContext)
        Specified by:
        visitAfter in interface org.smooks.api.resource.visitor.sax.ng.AfterVisitor
      • replaceBefore

        protected Writer replaceBefore​(org.smooks.api.delivery.fragment.Fragment<Node> visitedNodeFragment,
                                       Node rootNode,
                                       org.smooks.api.ExecutionContext executionContext)
      • replaceAfter

        protected void replaceAfter​(org.smooks.api.delivery.fragment.Fragment<Node> visitedNodeFragment,
                                    Node rootNode,
                                    org.smooks.api.ExecutionContext executionContext)
      • prependBefore

        protected Writer prependBefore​(org.smooks.api.delivery.fragment.Fragment<Node> visitedNodeFragment,
                                       NestedSmooksVisitor.Action action,
                                       Element rootElement,
                                       org.smooks.api.ExecutionContext executionContext)
      • prependAfter

        protected void prependAfter​(org.smooks.api.delivery.fragment.Fragment<Node> visitedNodeFragment,
                                    Element rootElement,
                                    org.smooks.api.ExecutionContext executionContext)
      • append

        protected void append​(org.smooks.api.delivery.fragment.Fragment<Node> visitedNodeFragment,
                              Element rootElement,
                              NestedSmooksVisitor.Action action,
                              org.smooks.api.ExecutionContext executionContext)
      • filterSource

        protected void filterSource​(org.smooks.api.delivery.fragment.Fragment<Node> originalVisitedNodeFragment,
                                    org.smooks.api.delivery.fragment.Fragment<Node> deAttachedVisitedNodeFragment,
                                    Writer writer,
                                    org.smooks.api.ExecutionContext executionContext,
                                    VisitSequence visitSequence)
      • getMaxNodeDepth

        public int getMaxNodeDepth()
      • consumes

        public boolean consumes​(Object object)
        Specified by:
        consumes in interface org.smooks.api.delivery.ordering.Consumer
      • onPostFragment

        public void onPostFragment​(org.smooks.api.delivery.fragment.Fragment<?> fragment,
                                   org.smooks.api.ExecutionContext executionContext)
        Specified by:
        onPostFragment in interface org.smooks.api.lifecycle.PostFragmentLifecycle
      • setMaxNodeDepth

        public void setMaxNodeDepth​(Integer maxNodeDepth)
      • getPipeline

        public Smooks getPipeline()
      • setPipeline

        public void setPipeline​(Smooks pipeline)
      • setResourceConfig

        public void setResourceConfig​(org.smooks.api.resource.config.ResourceConfig resourceConfig)
      • setApplicationContext

        public void setApplicationContext​(org.smooks.api.ApplicationContext applicationContext)
      • setResourceConfigSeq

        public void setResourceConfigSeq​(org.smooks.api.resource.config.ResourceConfigSeq resourceConfigSeq)
      • setBindIdOptional

        public void setBindIdOptional​(Optional<String> bindIdOptional)
      • getOutputStreamResourceOptional

        public Optional<String> getOutputStreamResourceOptional()
      • setOutputStreamResourceOptional

        public void setOutputStreamResourceOptional​(Optional<String> outputStreamResourceOptional)
      • preDestroy

        @PreDestroy
        public void preDestroy()
      • newPipelineApplicationContext

        protected org.smooks.api.ApplicationContext newPipelineApplicationContext​(org.smooks.api.ApplicationContext parentApplicationContext)