public static class EtlVariable.TextUtils
extends java.lang.Object
Provides text operations.
Note: As of version 1.1 the same functionality can be achieved by directly using JEXL2.0 syntax elements like ternary operators.
Constructor and Description |
---|
TextUtils() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
ifNull(java.lang.Object object)
Substitute an object with empty string when a null value is encountered.
|
java.lang.Object |
ifNull(java.lang.Object object,
java.lang.Object replacement)
Substitute an object when a null value is encountered.
|
java.lang.Object |
nullIf(java.lang.Object expr1,
java.lang.Object expr2)
If expr1 = expr2 is true, return NULL else return expr1.
|
public java.lang.Object ifNull(java.lang.Object object, java.lang.Object replacement)
object
- object to check.replacement
- replacement object.public java.lang.Object ifNull(java.lang.Object object)
object
- object to check.public java.lang.Object nullIf(java.lang.Object expr1, java.lang.Object expr2)
expr1
- first expressionexpr2
- second expressionCopyright © Copyright 2006-2019 The Scriptella Project Team.