Interface ParameterizedVisitor
-
- All Superinterfaces:
AfterVisitor
,BeforeVisitor
,ContentHandler
,SaxNgVisitor
,Visitor
- All Known Implementing Classes:
StaticProxyInterceptor
public interface ParameterizedVisitor extends BeforeVisitor, AfterVisitor
Adds knobs to theSaxNgVisitor
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getMaxNodeDepth()
Gets the maximum node depth thisParameterizedVisitor
can accept when visiting an
Element
inAfterVisitor.visitAfter(Element, ExecutionContext)
.-
Methods inherited from interface org.smooks.api.resource.visitor.sax.ng.AfterVisitor
visitAfter
-
Methods inherited from interface org.smooks.api.resource.visitor.sax.ng.BeforeVisitor
visitBefore
-
-
-
-
Method Detail
-
getMaxNodeDepth
int getMaxNodeDepth()
Gets the maximum node depth thisParameterizedVisitor
can accept when visiting an
Element
inAfterVisitor.visitAfter(Element, ExecutionContext)
.This method allows the targeted
Element
to emulate a DOM tree at the cost of performance. AParameterizedVisitor
with a maximum node depth ofInteger.MAX_VALUE
essentially means that the visitedElement
is a complete DOM tree.- Returns:
- the maximum node depth this
ParameterizedVisitor
can traverse. Any value greater than 0 is valid.
-
-