@ComponentProfile(summary="Tests that a value is null or empty", tag="conditional,operator") public class IsEmpty extends java.lang.Object implements Operator
This Operator
simply tests that the given value evaluates to null or an empty string.
The value used in the isEmpty test is the Condition
that this Operator
is
configured for; which could be the message payload or a metadata item for example.
In the adapter configuration file this class is aliased as is-empty which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
IsEmpty() |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(AdaptrisMessage message,
java.lang.String object) |
java.lang.Boolean |
isIgnoreWhitespace() |
void |
setIgnoreWhitespace(java.lang.Boolean ignoreWhitespace) |
public boolean apply(AdaptrisMessage message, java.lang.String object)
public java.lang.Boolean isIgnoreWhitespace()
public void setIgnoreWhitespace(java.lang.Boolean ignoreWhitespace)