@ComponentProfile(summary="Tests that a configured value does not equal the supplied value.", tag="conditional,operator") public class NotEquals extends java.lang.Object implements Operator
This Operator
simply tests two values for non-equality.
The first value used in the equality test is the Condition
that this Operator
is
configured for; which could be the message payload or a metadata item for example.
The second value is the static value configured for this operator.
The static value can be a literal value; "myValue" or can be metadata resolved for example;
The above will test the metadata value identified by the metadata key "myKey".%message{myKey}
In the adapter configuration file this class is aliased as not-equals which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
NotEquals() |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(AdaptrisMessage message,
java.lang.String object) |
java.lang.String |
getValue() |
void |
setValue(java.lang.String value) |
public boolean apply(AdaptrisMessage message, java.lang.String object)
public java.lang.String getValue()
public void setValue(java.lang.String value)