public class StringCompositor extends Object implements ValuesBinder<StringCompositor,String>
The template is simply an array of string values, where odd indices represent token positions, and even indices represent literals. This version of the StringCompositor fetches data from the bindings only for the named fields in the template.
| Constructor and Description |
|---|
StringCompositor(String template)
Create a string template which has positional tokens, in "{}" form.
|
| Modifier and Type | Method and Description |
|---|---|
String |
bindValues(StringCompositor context,
Bindings bindings,
long cycle)
Using context instance of type S, AKA the template, create and bind values to
target object of type R
|
public StringCompositor(String template)
template - The string templatepublic String bindValues(StringCompositor context, Bindings bindings, long cycle)
ValuesBinderbindValues in interface ValuesBinder<StringCompositor,String>context - A context object that knows how to provide an instance of type Rbindings - A Bindings instance from which to draw the valuescycle - The cycle for which to generate the valuesCopyright © 2018. All rights reserved.