public class SetElementData extends DefaultSAXElementSerializer implements DOMVisitAfter
Modifier and Type | Field and Description |
---|---|
protected static String |
ATTRIBUTE_DATA |
Constructor and Description |
---|
SetElementData() |
Modifier and Type | Method and Description |
---|---|
void |
init() |
SetElementData |
setAttribute(QName name,
String valueTemplate) |
SetElementData |
setElementName(String elementQName) |
SetElementData |
setElementNamespace(String namespace) |
void |
visitAfter(Element element,
ExecutionContext executionContext)
Visit the supplied element after visiting its child elements.
|
protected void |
writeEnd(SAXElement element) |
protected void |
writeStart(SAXElement element) |
isStartWritten, onChildElement, onChildText, setRewriteEntities, setWriterOwner, visitAfter, visitBefore, writeEndElement, writeStartElement
protected static final String ATTRIBUTE_DATA
@Initialize public void init()
@ConfigParam(name="name", use=OPTIONAL) public SetElementData setElementName(String elementQName)
@ConfigParam(name="namespace", use=OPTIONAL) public SetElementData setElementNamespace(String namespace)
public SetElementData setAttribute(QName name, String valueTemplate)
protected void writeStart(SAXElement element) throws IOException
writeStart
in class DefaultSAXElementSerializer
IOException
protected void writeEnd(SAXElement element) throws IOException
writeEnd
in class DefaultSAXElementSerializer
IOException
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.