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
SmooksConfigurationException
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 onChildText(SAXElement element, SAXText childText, ExecutionContext executionContext) throws SmooksException, IOException
SAXVisitChildren
onChildText
in interface SAXVisitChildren
element
- 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
SAXVisitChildren
onChildElement
in interface SAXVisitChildren
element
- 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
SAXVisitAfter
visitAfter
in interface SAXVisitAfter
element
- 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
DOMVisitBefore
visitBefore
in interface DOMVisitBefore
element
- The DOM element being visited.executionContext
- Request relative instance.SmooksException
- Element processing failure.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.