Package org.drools.model.functions
Class PredicateInformation
- java.lang.Object
-
- org.drools.model.functions.PredicateInformation
-
public class PredicateInformation extends Object
Used to generate a better error message when constraints fail
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPredicateInformation.RuleDef
-
Field Summary
Fields Modifier and Type Field Description static PredicateInformationEMPTY_PREDICATE_INFORMATIONstatic intMAX_RULE_DEFS
-
Constructor Summary
Constructors Constructor Description PredicateInformation(String stringConstraint, String... ruleNames)PredicateInformation(String stringConstraint, String ruleName, String ruleFileName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRuleNames(String... ruleNames)static StringdefaultToEmptyString(String str)booleanequals(Object obj)Set<PredicateInformation.RuleDef>getRuleDefs()Map<String,Set<String>>getRuleNameMap()StringgetStringConstraint()inthashCode()booleanisEmpty()booleanisMoreThanMaxRuleDefs()voidsetMoreThanMaxRuleDefs(boolean moreThanMaxRuleDefs)StringtoString()
-
-
-
Field Detail
-
EMPTY_PREDICATE_INFORMATION
public static final PredicateInformation EMPTY_PREDICATE_INFORMATION
-
MAX_RULE_DEFS
public static final int MAX_RULE_DEFS
-
-
Method Detail
-
getStringConstraint
public String getStringConstraint()
-
getRuleDefs
public Set<PredicateInformation.RuleDef> getRuleDefs()
-
addRuleNames
public void addRuleNames(String... ruleNames)
-
isMoreThanMaxRuleDefs
public boolean isMoreThanMaxRuleDefs()
-
setMoreThanMaxRuleDefs
public void setMoreThanMaxRuleDefs(boolean moreThanMaxRuleDefs)
-
isEmpty
public boolean isEmpty()
-
-