public class RemoveAttribute extends Object implements SAXVisitBefore, DOMVisitAfter
Constructor and Description |
---|
RemoveAttribute() |
Modifier and Type | Method and Description |
---|---|
void |
init() |
RemoveAttribute |
setName(String attributeName) |
RemoveAttribute |
setNamespace(String attributeNamespace) |
void |
visitAfter(Element element,
ExecutionContext executionContext)
Visit the supplied element after visiting its child elements.
|
void |
visitBefore(SAXElement element,
ExecutionContext executionContext)
Visit the supplied element before visiting its child elements.
|
@Initialize public void init()
@ConfigParam public RemoveAttribute setName(String attributeName)
@ConfigParam(use=OPTIONAL) public RemoveAttribute setNamespace(String attributeNamespace)
public void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException
SAXVisitBefore
visitBefore
in interface SAXVisitBefore
element
- The SAX element being visited.executionContext
- Execution context.SmooksException
- Event processing failure.IOException
- Error writing event to output writer.public void visitAfter(Element element, ExecutionContext executionContext) throws SmooksException
DOMVisitAfter
visitAfter
in interface DOMVisitAfter
element
- The DOM element being visited.executionContext
- Request relative instance.SmooksException
- Element processing failure.Copyright © 2020. All rights reserved.