public interface ModelAdaptor
| Modifier and Type | Method and Description |
|---|---|
Iterable<Object> |
getIterable(Object value)
Gets an iterable for an arbitrary value.
|
String |
getSpecialIteratorVariable()
Gets the name of the special iterator variable which will be used as an alternative
variable name of the iterator in a foreach loop.
|
Object |
getValue(TemplateContext context,
Token token,
List<String> segments,
String expression)
Gets a value from the model.
|
Object getValue(TemplateContext context, Token token, List<String> segments, String expression)
context - the current context including the scoped modeltoken - the token that asks for this value (e.g. used for error
reporting)segments - an already split version of the expression for faster
processingexpression - the expression describing the desired valueIterable<Object> getIterable(Object value)
value - the value to get the iterable forString getSpecialIteratorVariable()
Copyright © 2017. All rights reserved.