Class TerminateVisitor
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.terminate.TerminateVisitor
-
- All Implemented Interfaces:
ContentHandler
,Producer
,AfterVisitor
,BeforeVisitor
,SaxNgVisitor
,Visitor
public class TerminateVisitor extends Object implements BeforeVisitor, AfterVisitor, Producer
-
-
Constructor Summary
Constructors Constructor Description TerminateVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<?>
getProducts()
Get the set of products produced by this producer instance.TerminateVisitor
setTerminateBefore(Optional<Boolean> terminateBefore)
void
visitAfter(Element element, ExecutionContext executionContext)
Visits the end of anElement
.void
visitBefore(Element element, ExecutionContext executionContext)
Visits the beginning of anElement
.
-
-
-
Method Detail
-
setTerminateBefore
@Inject public TerminateVisitor setTerminateBefore(Optional<Boolean> terminateBefore)
- Parameters:
terminateBefore
- the terminateBefore to set
-
getProducts
public Set<?> getProducts()
Description copied from interface:Producer
Get the set of products produced by this producer instance.- Specified by:
getProducts
in interfaceProducer
- Returns:
- The set of products produced by this producer instance.
-
visitAfter
public void visitAfter(Element element, ExecutionContext executionContext)
Description copied from interface:AfterVisitor
Visits the end of anElement
.- Specified by:
visitAfter
in interfaceAfterVisitor
- Parameters:
element
- theElement
representing the end of the fragment. TheElement
's ancestors are traversable unless the global configuration parametermaintain.element.stack
is set to false. TheElement
's child nodes are traversable if one of the following conditions are met:max.node.depth
global config parameter is set to 0 or greater than 1, or- this
AfterVisitor
implementsParameterizedVisitor.getMaxNodeDepth()
which returns an integer greater than 1
executionContext
- the currentExecutionContext
-
visitBefore
public void visitBefore(Element element, ExecutionContext executionContext)
Description copied from interface:BeforeVisitor
Visits the beginning of anElement
.- Specified by:
visitBefore
in interfaceBeforeVisitor
- Parameters:
element
- theElement
representing the beginning of the fragment. TheElement
's ancestors are traversable unless the global configuration parametermaintain.element.stack
is set to false. TheElement
's child nodes are not traversable.executionContext
- the currentExecutionContext
-
-