public class BindingsTemplate extends Object
The user is required to call @{link resolveBindings} when in the scope that the resulting bindings will be used.
| Constructor and Description |
|---|
BindingsTemplate()
Create a bindings template with the default VirtDataLibrary.
|
BindingsTemplate(VirtDataLibrary library)
Create an empty bindings template with a user-provided VirtDataLibrary.
|
BindingsTemplate(VirtDataLibrary library,
Map<String,String> specs)
Create a bindings template with a user-provided VirtDataLibrary and a map of binding specs
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFieldBinding(String bindPointName,
String genSpec)
Add a named binding specifier to the template
|
void |
addFieldBindings(Map<String,String> bindPairs)
Add multiple named bindings to the template
|
List<String> |
getBindPointNames() |
List<String> |
getDataMapperSpecs() |
Bindings |
resolveBindings()
Use the data mapping library and the specifier to create instances of data mapping functions.
|
String |
toString() |
String |
toString(Object[] values) |
public BindingsTemplate(VirtDataLibrary library)
library - a user-provided instance of VirtDataLibrarypublic BindingsTemplate(VirtDataLibrary library, Map<String,String> specs)
library - a user-provided instance of a VirtDataLibraryspecs - an map of binding specspublic BindingsTemplate()
public void addFieldBinding(String bindPointName, String genSpec)
bindPointName - the name associated with the binding specifiergenSpec - the binding specifierpublic void addFieldBindings(Map<String,String> bindPairs)
bindPairs - A map of named binding specifierspublic Bindings resolveBindings()
Copyright © 2018. All rights reserved.