public class ValueBinder extends Object implements DOMElementVisitor, SAXVisitBefore, SAXVisitAfter, Producer
Value Object.
<order xmlns="http://x">
<header>
<y:date xmlns:y="http://y">Wed Nov 15 13:45:28 EST 2006</y:date>
<customer number="123123">Joe</customer>
<privatePerson></privatePerson>
</header>
<order-items>
<!-- .... -->
</order-items>
</order>
<?xml version="1.0"?>
<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.3.xsd">
<jb:value
beanId="customerName"
data="customer"
default="unknown"
/>
<jb:value
beanId="customerNumber"
data="customer/@number"
decoder="Integer"
/>
</smooks-resource-list>
| Constructor and Description |
|---|
ValueBinder() |
ValueBinder(String beanId) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBeanIdName() |
DataDecoder |
getDecoder() |
String |
getDefaultValue() |
Set<? extends Object> |
getProducts()
Get the set of products produced by this producer instance.
|
String |
getTypeAlias() |
String |
getValueAttributeName() |
void |
initialize()
Set the resource configuration on the bean populator.
|
void |
setBeanIdName(String beanIdName) |
void |
setDecoder(DataDecoder decoder) |
void |
setDefaultValue(String defaultValue) |
void |
setTypeAlias(String typeAlias) |
void |
setValueAttributeName(String valueAttributeName) |
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.
|
public ValueBinder()
public ValueBinder(String beanId)
beanId - public String getBeanIdName()
public void setBeanIdName(String beanIdName)
beanIdName - the beanIdName to setpublic String getValueAttributeName()
public void setValueAttributeName(String valueAttributeName)
valueAttributeName - the valueAttributeName to setpublic String getDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue - the defaultValue to setpublic String getTypeAlias()
public void setTypeAlias(String typeAlias)
typeAlias - the typeAlias to setpublic DataDecoder getDecoder()
public void setDecoder(DataDecoder decoder)
decoder - the decoder to set@Initialize public void initialize() throws SmooksConfigurationException
SmooksConfigurationException - Incorrectly configured resource.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.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.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 Set<? extends Object> getProducts()
ProducergetProducts in interface ProducerCopyright © 2020. All rights reserved.