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() |
org.milyn.javabean.DataDecoder |
getDecoder() |
String |
getDefaultValue() |
Set<? extends Object> |
getProducts() |
String |
getTypeAlias() |
String |
getValueAttributeName() |
void |
initialize()
Set the resource configuration on the bean populator.
|
void |
setBeanIdName(String beanIdName) |
void |
setDecoder(org.milyn.javabean.DataDecoder decoder) |
void |
setDefaultValue(String defaultValue) |
void |
setTypeAlias(String typeAlias) |
void |
setValueAttributeName(String valueAttributeName) |
void |
visitAfter(Element element,
ExecutionContext executionContext) |
void |
visitAfter(SAXElement element,
ExecutionContext executionContext) |
void |
visitBefore(Element element,
ExecutionContext executionContext) |
void |
visitBefore(SAXElement element,
ExecutionContext executionContext) |
public ValueBinder()
public ValueBinder(String 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 org.milyn.javabean.DataDecoder getDecoder()
public void setDecoder(org.milyn.javabean.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
visitBefore in interface DOMVisitBeforeSmooksExceptionpublic void visitAfter(Element element, ExecutionContext executionContext) throws SmooksException
visitAfter in interface DOMVisitAfterSmooksExceptionpublic void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException
visitBefore in interface SAXVisitBeforeSmooksExceptionIOExceptionpublic void visitAfter(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException
visitAfter in interface SAXVisitAfterSmooksExceptionIOExceptionpublic Set<? extends Object> getProducts()
getProducts in interface ProducerCopyright © 2015. All rights reserved.