Class ExpandableConstant
- java.lang.Object
-
- org.opennms.netmgt.eventd.processor.expandable.ExpandableConstant
-
- All Implemented Interfaces:
ExpandableToken
public class ExpandableConstant extends Object implements ExpandableToken
The simplestExpandableToken
is a "not" expandable token, orExpandableConstant
.
-
-
Constructor Summary
Constructors Constructor Description ExpandableConstant(char c)
ExpandableConstant(String token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
expand(Event event, Map<String,Map<String,String>> decode)
Expands a token.boolean
requiresTransaction()
Defines if thisExpandableToken
requires a transaction to be expanded.
-
-
-
Constructor Detail
-
ExpandableConstant
public ExpandableConstant(String token)
-
ExpandableConstant
public ExpandableConstant(char c)
-
-
Method Detail
-
expand
public String expand(Event event, Map<String,Map<String,String>> decode)
Description copied from interface:ExpandableToken
Expands a token.- Specified by:
expand
in interfaceExpandableToken
- 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
public boolean requiresTransaction()
Description copied from interface:ExpandableToken
Defines if thisExpandableToken
requires a transaction to be expanded.- Specified by:
requiresTransaction
in interfaceExpandableToken
- Returns:
- True if a transaction is required, False otherwise.
-
-