public interface TemplateEngineDataProvider
Provides the necessary information for the template to be applied.
Modifier and Type | Method and Description |
---|---|
boolean |
evaluateCondition(SearchCompiler.Match condition)
Check if a condition holds for the object represented by this
TemplateEngineDataProvider . |
java.util.Collection<java.lang.String> |
getTemplateKeys()
Get the collection of all keys that can be mapped to values.
|
java.lang.Object |
getTemplateValue(java.lang.String key,
boolean special)
Map a key to a value given the properties of the object.
|
java.util.Collection<java.lang.String> getTemplateKeys()
java.lang.Object getTemplateValue(java.lang.String key, boolean special)
key
- the key to mapspecial
- if the key is a "special:*" keyword that is used
to get certain information or automated behaviorspecial
is trueboolean evaluateCondition(SearchCompiler.Match condition)
TemplateEngineDataProvider
.condition
- the condition to check (which is a search expression)