public abstract class DRuleBase extends Object implements DRule
| Constructor and Description |
|---|
DRuleBase(String name,
boolean polarity) |
DRuleBase(String name,
RuleGuard guard) |
| Modifier and Type | Method and Description |
|---|---|
Object |
exec(DValue dval,
DRuleContext ctx) |
boolean |
executeGuard(DValue dval) |
String |
getName() |
protected abstract boolean |
onValidate(DValue dval,
DRuleContext ctx) |
void |
setPolarity(boolean polarity) |
boolean |
validate(DValue dval,
DRuleContext ctx) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdependsOn, getSubjectpublic DRuleBase(String name, boolean polarity)
public boolean validate(DValue dval, DRuleContext ctx)
protected abstract boolean onValidate(DValue dval, DRuleContext ctx)
public Object exec(DValue dval, DRuleContext ctx)
public void setPolarity(boolean polarity)
setPolarity in interface DRulepublic boolean executeGuard(DValue dval)
executeGuard in interface DRuleCopyright © 2020. All rights reserved.