public abstract class RuleEventBase extends Object implements RuleEvent
Constructor and Description |
---|
RuleEventBase(String description,
String errorPathPrefix)
As a general rule, business rule classes should not change the original object.
|
Modifier and Type | Method and Description |
---|---|
void |
addFact(String key,
Object object) |
List<RuleEvent> |
generateEvents()
This will return a list of events that are spawned from this event.
|
String |
getDescription()
A description of the event.
|
String |
getErrorPathPrefix() |
Map<String,Object> |
getFacts()
The map that holds the data that to be validated.
|
String |
getName()
the name of this event
|
String |
getRuleMethodName()
The method name of the rule class to invoke.
|
void |
setFacts(Map<String,Object> facts) |
void |
setName(String name) |
void |
setRuleMethodName(String name) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRuleInterfaceClass, invokeRuleMethod, validate
public RuleEventBase(String description, String errorPathPrefix)
description
- errorPathPrefix
- public final String getDescription()
RuleEvent
getDescription
in interface RuleEvent
public String getErrorPathPrefix()
getErrorPathPrefix
in interface RuleEvent
public String toString()
toString
in class Object
Object.toString()
public void setFacts(Map<String,Object> facts)
getFacts()
public String getRuleMethodName()
If the rule method name is specified, then that business rule method is invoked to apply custom rules, else the default method is invoked.
getRuleMethodName
in interface RuleEvent
public void setRuleMethodName(String name)
getRuleMethodName()
public List<RuleEvent> generateEvents()
RuleEvent
generateEvents
in interface RuleEvent
RuleEvent.generateEvents()
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.