public class EventTemplate extends Object implements ExpandableToken
EventTemplate
represents the event input, containing place-holders, e.g. 'nodeLabel',
and support to expand the template.
For each placeholder in the input
a ExpandableToken
is created.
The expandable state of the EventTemplate
is the expanded state of all tokens (tokens
.Constructor and Description |
---|
EventTemplate(String input,
EventUtil eventUtil) |
Modifier and Type | Method and Description |
---|---|
String |
expand(Event event,
Map<String,Map<String,String>> decode)
Expands a token.
|
boolean |
requiresTransaction()
Defines if this
ExpandableToken requires a transaction to be expanded. |
public String expand(Event event, Map<String,Map<String,String>> decode)
ExpandableToken
expand
in interface ExpandableToken
event
- An event, to expand the token from. May not be null.decode
- A Map, to help expanding the token. May be null.public boolean requiresTransaction()
ExpandableToken
ExpandableToken
requires a transaction to be expanded.requiresTransaction
in interface ExpandableToken
Copyright © 2021. All rights reserved.