public class AbstractBinding extends Object
Modifier | Constructor and Description |
---|---|
protected |
AbstractBinding()
Constructor.
|
protected |
AbstractBinding(Smooks smooks)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AbstractBinding |
add(InputStream smooksConfigStream)
Add Smooks binding configurations to the binding instance.
|
AbstractBinding |
add(String smooksConfigURI)
Add Smooks binding configurations to the binding instance.
|
protected void |
assertInitialized() |
protected void |
assertNotAllConfigsAdded() |
protected void |
assertNotInitialized() |
protected <T> T |
bind(Source inputSource,
Class<T> toType)
Bind the input source to the specified type.
|
protected GetterGraph |
constructContextualGetter(Bean bean) |
protected GetterGraph |
constructContextualGetter(DataBinding binding) |
Smooks |
getSmooks()
Get the underlying
Smooks instance. |
protected SmooksResourceConfigurationList |
getUserDefinedResourceList() |
AbstractBinding |
intiailize()
Initialize the binding instance.
|
AbstractBinding |
setReportPath(String reportPath)
Set the execution report output path.
|
protected AbstractBinding()
protected AbstractBinding(Smooks smooks)
smooks
- Smooks instance.public AbstractBinding add(String smooksConfigURI) throws IOException, SAXException
smooksConfigURI
- Smooks configuration.IOException
- Error reading resource stream.SAXException
- Error parsing the resource stream.public AbstractBinding add(InputStream smooksConfigStream) throws IOException, SAXException
smooksConfigStream
- Smooks configuration.IOException
- Error reading resource stream.SAXException
- Error parsing the resource stream.public AbstractBinding intiailize()
public Smooks getSmooks()
Smooks
instance.Smooks
instance.public AbstractBinding setReportPath(String reportPath)
reportPath
- The execution report output path.protected <T> T bind(Source inputSource, Class<T> toType) throws IOException
XMLBinding.fromXML(javax.xml.transform.Source, Class)
and XMLBinding.toXML(Object, java.io.Writer)
.inputSource
- The input source.toType
- The target type.IOException
- Error binding source to target type.protected SmooksResourceConfigurationList getUserDefinedResourceList()
protected GetterGraph constructContextualGetter(DataBinding binding)
protected GetterGraph constructContextualGetter(Bean bean)
protected void assertInitialized()
protected void assertNotAllConfigsAdded()
protected void assertNotInitialized()
Copyright © 2020. All rights reserved.