Package org.openl.rules.types.impl
Class DefaultPropertiesContextMatcher
- java.lang.Object
-
- org.openl.rules.types.impl.DefaultPropertiesContextMatcher
-
- All Implemented Interfaces:
IPropertiesContextMatcher
public class DefaultPropertiesContextMatcher extends Object implements IPropertiesContextMatcher
-
-
Constructor Summary
Constructors Constructor Description DefaultPropertiesContextMatcher()
-
Method Summary
All Methods Instance Methods Concrete 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 itprotected voidinitialize()MatchingResultmatch(String propName, ITableProperties props, 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
public MatchingResult match(String propName, ITableProperties props, IRulesRuntimeContext context)
Description copied from interface:IPropertiesContextMatcherMatcher 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- Specified by:
matchin interfaceIPropertiesContextMatcher- Returns:
-
addConstraint
public void addConstraint(String propertyName, MatchingConstraint<?,?> ctr)
Description copied from interface:IPropertiesContextMatcherAdds a new constraint dynamically to the existing matcher, if constraint already exists, it overrides it- Specified by:
addConstraintin interfaceIPropertiesContextMatcher
-
initialize
protected void initialize()
-
-