Interface ExpandableToken
-
- All Known Implementing Classes:
EventTemplate
,ExpandableConstant
,ExpandableParameter
public interface ExpandableToken
A token, which may or may not expandable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
expand(Event event, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> decode)
Expands a token.boolean
requiresTransaction()
Defines if thisExpandableToken
requires a transaction to be expanded.
-
-
-
Method Detail
-
expand
java.lang.String expand(Event event, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> decode)
Expands a token.- Parameters:
event
- An event, to expand the token from. May not be null.decode
- A Map, to help expanding the token. May be null.- Returns:
- The expanded token.
-
requiresTransaction
boolean requiresTransaction()
Defines if thisExpandableToken
requires a transaction to be expanded.- Returns:
- True if a transaction is required, False otherwise.
-
-