T - The type of model object.public interface IBinder<T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
IBinder.TemplateConverter |
static class |
IBinder.Value
A converter may return this value to ignore a binding change.
|
| Modifier and Type | Field and Description |
|---|---|
static IBinder.Value |
NOVALUE
Shorthand for Value.NONE.
|
| Modifier and Type | Method and Description |
|---|---|
default IBinding |
dual(String modelProperty)
Establishes a read and write binding for the given model property.
|
IBinding |
dual(String modelProperty,
Function<?,?> readConverter,
Function<?,?> writeConverter)
Establishes a read and write binding for the given model property.
|
default IBinding |
dual(String modelProperty,
String readTemplate,
String writeTemplate)
Establishes a read and write binding for the given model property.
|
T |
getModel()
Returns the bound model.
|
default IBinding |
read(String modelProperty)
Establishes a read binding for the given model property.
|
IBinding |
read(String modelProperty,
Function<?,?> converter)
Establishes a read binding for the given model property.
|
default IBinding |
read(String modelProperty,
String template)
Establishes a read binding for the given model property.
|
void |
setModel(T model)
Sets the model to bind.
|
default IBinding |
write(String modelProperty)
Establishes a write binding for the given model property.
|
IBinding |
write(String modelProperty,
Function<?,?> converter)
Establishes a write binding for the given model property.
|
default IBinding |
write(String modelProperty,
String template)
Establishes a write binding for the given model property.
|
static final IBinder.Value NOVALUE
T getModel()
void setModel(T model)
model - The model to bind.default IBinding read(String modelProperty)
modelProperty - The name of the model property.default IBinding read(String modelProperty, String template)
modelProperty - The name of the model property.template - Template for property conversion.IBinding read(String modelProperty, Function<?,?> converter)
modelProperty - The name of the model property.converter - Property converter.default IBinding write(String modelProperty)
modelProperty - The name of the model property.default IBinding write(String modelProperty, String template)
modelProperty - The name of the model property.template - Template for property conversion.IBinding write(String modelProperty, Function<?,?> converter)
modelProperty - The name of the model property.converter - Property converter.default IBinding dual(String modelProperty)
modelProperty - The name of the model property.default IBinding dual(String modelProperty, String readTemplate, String writeTemplate)
modelProperty - The name of the model property.readTemplate - Template for property conversion.writeTemplate - Template for property conversion.IBinding dual(String modelProperty, Function<?,?> readConverter, Function<?,?> writeConverter)
modelProperty - The name of the model property.readConverter - Property converter.writeConverter - Property converter.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.