public class ValueBinder extends Object implements org.milyn.delivery.dom.DOMElementVisitor, org.milyn.delivery.sax.SAXVisitBefore, org.milyn.delivery.sax.SAXVisitAfter, org.milyn.delivery.ordering.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,
org.milyn.container.ExecutionContext executionContext) |
void |
visitAfter(org.milyn.delivery.sax.SAXElement element,
org.milyn.container.ExecutionContext executionContext) |
void |
visitBefore(Element element,
org.milyn.container.ExecutionContext executionContext) |
void |
visitBefore(org.milyn.delivery.sax.SAXElement element,
org.milyn.container.ExecutionContext executionContext) |
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 org.milyn.javabean.DataDecoder getDecoder()
public void setDecoder(org.milyn.javabean.DataDecoder decoder)
decoder - the decoder to set@Initialize
public void initialize()
throws org.milyn.cdr.SmooksConfigurationException
org.milyn.cdr.SmooksConfigurationException - Incorrectly configured resource.public void visitBefore(Element element, org.milyn.container.ExecutionContext executionContext) throws org.milyn.SmooksException
visitBefore in interface org.milyn.delivery.dom.DOMVisitBeforeorg.milyn.SmooksExceptionpublic void visitAfter(Element element, org.milyn.container.ExecutionContext executionContext) throws org.milyn.SmooksException
visitAfter in interface org.milyn.delivery.dom.DOMVisitAfterorg.milyn.SmooksExceptionpublic void visitBefore(org.milyn.delivery.sax.SAXElement element,
org.milyn.container.ExecutionContext executionContext)
throws org.milyn.SmooksException,
IOException
visitBefore in interface org.milyn.delivery.sax.SAXVisitBeforeorg.milyn.SmooksExceptionIOExceptionpublic void visitAfter(org.milyn.delivery.sax.SAXElement element,
org.milyn.container.ExecutionContext executionContext)
throws org.milyn.SmooksException,
IOException
visitAfter in interface org.milyn.delivery.sax.SAXVisitAfterorg.milyn.SmooksExceptionIOExceptionCopyright © 2016. All rights reserved.