Package org.openl.rules.types.impl
Interface IPropertiesContextMatcher
-
- All Known Implementing Classes:
DefaultPropertiesContextMatcher
public interface IPropertiesContextMatcher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddConstraint(String propertyName, MatchingConstraint<?,?> ctr)Adds a new constraint dynamically to the existing matcher, if constraint already exists, it overrides itMatchingResultmatch(String propertyName, ITableProperties tableProperties, IRulesRuntimeContext context)Matcher compares a single Table property and returns one of the 3 values NO_MATCH, if a property does not match with a context variable MATCH_BY_DEFAULT, for example, context has value for LOB, but properties have empty value MATCH
-
-
-
Method Detail
-
match
MatchingResult match(String propertyName, ITableProperties tableProperties, IRulesRuntimeContext context)
Matcher compares a single Table property and returns one of the 3 values NO_MATCH, if a property does not match with a context variable MATCH_BY_DEFAULT, for example, context has value for LOB, but properties have empty value MATCH- Parameters:
propertyName-tableProperties-context-- Returns:
-
addConstraint
void addConstraint(String propertyName, MatchingConstraint<?,?> ctr)
Adds a new constraint dynamically to the existing matcher, if constraint already exists, it overrides it- Parameters:
propertyName-ctr-
-
-