public interface ConditionMatcher extends VersionableService
ControlConstants.TYPE and value of
String or String[] specifying the control unit type(s), that this matcher shall
concern. When more than one matchers are registered for the same control unit
type, the service with higher ranking overtakes priority. If collision appears
for services with equal rankings, the latest registered one will be chosen.| Modifier and Type | Field and Description |
|---|---|
static int |
ENDS_WITH |
static int |
EQUALS |
static int |
GREAT_THAN |
static int |
GREAT_THAN_OR_EQUAL |
static int |
INCLUDES |
static int |
LESS_THAN |
static int |
LESS_THAN_OR_EQUAL |
static int |
NOT_EQUALS |
static java.lang.String |
serviceVersion
Current service version is 1.0.0;
|
static int |
STARTS_WITH |
| Modifier and Type | Method and Description |
|---|---|
MatchResult |
match(java.lang.String[] attribute,
java.lang.String searchValue,
int comparisonOperation,
com.prosyst.mprm.backend.ms.cu.spi.ControlUnitState cuState)
Invoked by the system to match an attribute against given value and compared by given comparison operator.
|
getServiceVersionstatic final java.lang.String serviceVersion
static final int EQUALS
static final int NOT_EQUALS
static final int STARTS_WITH
static final int ENDS_WITH
static final int INCLUDES
static final int LESS_THAN
static final int LESS_THAN_OR_EQUAL
static final int GREAT_THAN
static final int GREAT_THAN_OR_EQUAL
MatchResult match(java.lang.String[] attribute, java.lang.String searchValue, int comparisonOperation, com.prosyst.mprm.backend.ms.cu.spi.ControlUnitState cuState) throws ManagementException
MatchResult object where the possible results
are "matched", "not matched" or "can not match" if the matcher does not consider to be capable of matching
the given attribute.attribute - attribute name tokens.searchValue - the value specified in the processed filter.comparisonOperation - comparison operator.cuState - object representing the control unit for which the attribute is matched.ManagementExceptionCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.