public class AbstractBinding extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
allConfigsAdded
All configurations added flag.
|
protected boolean |
initialized
Initialized flag.
|
protected String |
reportPath
Execution report path.
|
protected org.smooks.Smooks |
smooks
Smooks instance.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractBinding()
Constructor.
|
protected |
AbstractBinding(org.smooks.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 GetterGraph |
addToContextualGetter(GetterGraph contextualGetter,
Bean bean) |
protected void |
assertInitialized() |
protected void |
assertNotAllConfigsAdded() |
protected void |
assertNotInitialized() |
protected <T> T |
bind(org.smooks.api.io.Source inputSource,
Class<T> toType)
Bind the input source to the specified type.
|
protected GetterGraph |
constructContextualGetter(Bean bean) |
protected GetterGraph |
constructContextualGetter(DataBinding binding) |
org.smooks.Smooks |
getSmooks()
Get the underlying
Smooks instance. |
protected org.smooks.api.resource.config.ResourceConfigSeq |
getUserDefinedResourceList() |
AbstractBinding |
initialise()
Initialize the binding instance.
|
AbstractBinding |
setReportPath(String reportPath)
Set the execution report output path.
|
protected org.smooks.Smooks smooks
protected String reportPath
protected boolean allConfigsAdded
protected boolean initialized
protected AbstractBinding()
protected AbstractBinding(org.smooks.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 initialise()
public org.smooks.Smooks getSmooks()
Smooks
instance.Smooks
instance.public AbstractBinding setReportPath(String reportPath)
reportPath
- The execution report output path.protected <T> T bind(org.smooks.api.io.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 org.smooks.api.resource.config.ResourceConfigSeq getUserDefinedResourceList()
protected GetterGraph constructContextualGetter(DataBinding binding)
protected GetterGraph constructContextualGetter(Bean bean)
protected GetterGraph addToContextualGetter(GetterGraph contextualGetter, Bean bean)
protected void assertInitialized()
protected void assertNotAllConfigsAdded()
protected void assertNotInitialized()
Copyright © 2024. All rights reserved.