public class StaticVariableBinder extends Object implements SAXElementVisitor, DOMElementVisitor
BeanContext). The paramater values are all bound
into a bean accessor Map named "statvar", so variables bound in this way
can be referenced in expressions or templates as e.g "${statvar.xxx}"
(for static variable "xxx").| Constructor and Description |
|---|
StaticVariableBinder() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize() |
void |
onChildElement(SAXElement element,
SAXElement childElement,
ExecutionContext executionContext)
Process the onChildElement event for the targeted element.
|
void |
onChildText(SAXElement element,
SAXText childText,
ExecutionContext executionContext)
Process the onChildText event for the targeted element.
|
void |
visitAfter(Element element,
ExecutionContext executionContext)
Visit the supplied element after visiting its child elements.
|
void |
visitAfter(SAXElement element,
ExecutionContext executionContext)
Visit the supplied element after visiting its child elements.
|
void |
visitBefore(Element element,
ExecutionContext executionContext)
Visit the supplied element before visiting its child elements.
|
void |
visitBefore(SAXElement element,
ExecutionContext executionContext)
Visit the supplied element before visiting its child elements.
|
@Initialize public void initialize() throws SmooksConfigurationException
SmooksConfigurationExceptionpublic 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.public void onChildText(SAXElement element, SAXText childText, ExecutionContext executionContext) throws SmooksException, IOException
SAXVisitChildrenonChildText in interface SAXVisitChildrenelement - The element containing the text (parent). The targeted element.childText - The text.executionContext - Execution context.SmooksException - Event processing failure.IOException - Error writing event to output writer.public void onChildElement(SAXElement element, SAXElement childElement, ExecutionContext executionContext) throws SmooksException, IOException
SAXVisitChildrenonChildElement in interface SAXVisitChildrenelement - The element containing the child element (parent). The targeted element.childElement - The child element just added to the targeted element.executionContext - Execution context.SmooksException - Event processing failure.IOException - Error writing event to output writer.public void visitAfter(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException
SAXVisitAftervisitAfter in interface SAXVisitAfterelement - The SAX element being visited.executionContext - Execution context.SmooksException - Event processing failure.IOException - Error writing event to output writer.public void visitBefore(Element element, ExecutionContext executionContext) throws SmooksException
DOMVisitBeforevisitBefore in interface DOMVisitBeforeelement - The DOM element being visited.executionContext - Request relative instance.SmooksException - Element processing failure.public void visitAfter(Element element, ExecutionContext executionContext) throws SmooksException
DOMVisitAftervisitAfter in interface DOMVisitAfterelement - The DOM element being visited.executionContext - Request relative instance.SmooksException - Element processing failure.Copyright © 2020. All rights reserved.