@ComponentProfile(summary="Tests that a configured metadata value contains the supplied value.", tag="operator,comparator,metadata") public class Contains extends ComparatorImpl
MetadataComparisonService
.In the adapter configuration file this class is aliased as metadata-contains which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
Contains() |
Contains(java.lang.String result) |
Modifier and Type | Method and Description |
---|---|
MetadataElement |
compare(MetadataElement firstItem,
MetadataElement secondItem) |
protected boolean |
compare(java.lang.String haystack,
java.lang.String needle) |
java.lang.Boolean |
getIgnoreCase() |
void |
setIgnoreCase(java.lang.Boolean ignoreCase) |
apply, getResultKey, getValue, setResultKey, setValue
public MetadataElement compare(MetadataElement firstItem, MetadataElement secondItem)
protected boolean compare(java.lang.String haystack, java.lang.String needle)
compare
in class ComparatorImpl
public java.lang.Boolean getIgnoreCase()
public void setIgnoreCase(java.lang.Boolean ignoreCase)