Interface ChildrenVisitor
-
- All Superinterfaces:
ContentHandler
,SaxNgVisitor
,Visitor
- All Known Subinterfaces:
ElementVisitor
- All Known Implementing Classes:
BenchmarkVisitor
,BridgeInterceptor
,ConsumeSerializerVisitor
,ContextObjectSerializerVisitor
,ExceptionInterceptor
,ExecutionEventInterceptor
,GhostElementSerializerVisitor
,InstrumentationInterceptor
,SimpleSerializerVisitor
,StaticProxyInterceptor
,StreamResultWriterInterceptor
,SystemConsumeSerializerVisitor
,TextConsumerInterceptor
public interface ChildrenVisitor extends SaxNgVisitor
Applies an operation on eachElement
child.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
visitChildElement(Element childElement, ExecutionContext executionContext)
Visits a childElement
.void
visitChildText(CharacterData characterData, ExecutionContext executionContext)
Visits the character data of anElement
.
-
-
-
Method Detail
-
visitChildText
void visitChildText(CharacterData characterData, ExecutionContext executionContext)
Visits the character data of anElement
. This method is invoked once for each chunk of character data. A shortcut for collecting character data is to annotate theSaxNgVisitor
implementation withorg.smooks.engine.delivery.sax.annotation.StreamResultWriter
, or stash the character data in aTextAccumulatorMemento
and restore theTextAccumulatorMemento
inAfterVisitor.visitAfter(Element, ExecutionContext)
.- Parameters:
characterData
- thenode
which includes character data but not any childElement
s. TheElement
's ancestors are traversable unless the global configuration parametermaintain.element.stack
is set to false.executionContext
- the currentExecutionContext
-
visitChildElement
void visitChildElement(Element childElement, ExecutionContext executionContext)
Visits a childElement
. This method is invoked once for each childElement
.- Parameters:
childElement
- the childElementElement
'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
-
-