@ComponentProfile(summary="Tests that a configured value equals the supplied value.", tag="conditional,operator") public class Equals extends java.lang.Object implements Operator
This Operator
simply tests two values for 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 equals which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
Equals() |
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)