Class ScriptUtils
- java.lang.Object
-
- de.codecentric.reedelk.runtime.api.commons.ScriptUtils
-
public class ScriptUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringEMPTY_SCRIPTstatic StringEVALUATE_PAYLOAD
-
Constructor Summary
Constructors Constructor Description ScriptUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringasScript(String value)static booleanisBlank(String script)static booleanisEvaluateMessagePayload(DynamicValue<?> dynamicValue)Tests whether the DynamicValue contains only the message payload.static booleanisNotBlank(String script)static booleanisScript(Object value)static booleanisScript(String value)static Stringunwrap(String value)
-
-
-
Field Detail
-
EMPTY_SCRIPT
public static final String EMPTY_SCRIPT
- See Also:
- Constant Field Values
-
EVALUATE_PAYLOAD
public static final String EVALUATE_PAYLOAD
- See Also:
- Constant Field Values
-
-
Method Detail
-
isScript
public static boolean isScript(Object value)
-
isScript
public static boolean isScript(String value)
-
isEvaluateMessagePayload
public static boolean isEvaluateMessagePayload(DynamicValue<?> dynamicValue)
Tests whether the DynamicValue contains only the message payload. Note: 'message.content.data' is the extended version of 'payload' and 'payload' is the shortcut of 'message.content.data'- Returns:
- true if the script evaluates the message 'payload', false otherwise.
-
isBlank
public static boolean isBlank(String script)
-
isNotBlank
public static boolean isNotBlank(String script)
-
-