public class ElementIndexCounter extends Object implements SAXVisitBefore
| Constructor and Description |
|---|
ElementIndexCounter(SelectorStep selectorStep) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getCount(SAXElement element) |
SelectorStep |
getSelectorStep() |
void |
visitBefore(SAXElement element,
ExecutionContext executionContext)
Visit the supplied element before visiting its child elements.
|
public ElementIndexCounter(SelectorStep selectorStep)
public SelectorStep getSelectorStep()
public void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException
SAXVisitBeforevisitBefore in interface SAXVisitBeforeelement - The SAX element being visited.executionContext - Execution context.SmooksException - Event processing failure.IOException - Error writing event to output writer.protected int getCount(SAXElement element)
Copyright © 2020. All rights reserved.