Class MetacardCondition
java.lang.Object
org.codice.ddf.catalog.plugin.metacard.MetacardCondition
Represents an immutable, rule-based check on a metacard given a map of possible criteria to check
against. The class must remain immutable to account for the case where an admin submits
configuration changes during live ingest traffic; there must exist a deterministic boundary where
the rule (and all its fields) synchronously swap to the new configuration without corrupting the
ingest traffic (i.e. attempts to test a scheme criteria for an IP address value, which will
produce undefined behavior, resulting with incorrect attribute markings).
-
Constructor Summary
ConstructorsConstructorDescriptionMetacardCondition(String criteriaKey, String expectedValue) MetacardCondition(String criteriaKey, String expectedValue, List<String> newAttributes, KeyValueParser parser) -
Method Summary
-
Constructor Details
-
MetacardCondition
-
MetacardCondition
public MetacardCondition(String criteriaKey, String expectedValue, List<String> newAttributes, KeyValueParser parser)
-
-
Method Details
-
getCriteriaKey
-
getExpectedValue
-
getNewAttributes
-
getParsedAttributes
-
applies
-