Package org.openl.rules.cmatch.matcher
Interface IMatcherBuilder
-
- All Known Implementing Classes:
AMatcherMapBuilder,BooleanPrimitiveMatch,ClassMatchBuilder,ClassMinMaxBuilder,EnumMatchBuilder,NumberMatchBuilder
public interface IMatcherBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IMatchergetInstanceIfSupports(IOpenClass type)Get instance of matcher for a given type.StringgetName()Get name of match operation.
-
-
-
Field Detail
-
OP_MATCH
static final String OP_MATCH
Both are equal or actual value is in range.- See Also:
- Constant Field Values
-
OP_MIN
static final String OP_MIN
variable is bigger or equal to check value- See Also:
- Constant Field Values
-
OP_MAX
static final String OP_MAX
variable is less or equal to check value- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstanceIfSupports
IMatcher getInstanceIfSupports(IOpenClass type)
Get instance of matcher for a given type.It can create new instance of the matcher each time or return *itself* if one matcher is enough. It is useful for enums and e.t.c
- Parameters:
type- variable's class- Returns:
- null if type is not supported; or instance of a matcher
-
getName
String getName()
Get name of match operation.- Returns:
- name of operation
-
-