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, waitgetRuleInterfaceClass, invokeRuleMethod, validatepublic RuleEventBase(String description, String errorPathPrefix)
description - errorPathPrefix - public final String getDescription()
RuleEventgetDescription in interface RuleEventpublic String getErrorPathPrefix()
getErrorPathPrefix in interface RuleEventpublic String toString()
toString in class ObjectObject.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 RuleEventpublic void setRuleMethodName(String name)
getRuleMethodName()public List<RuleEvent> generateEvents()
RuleEventgenerateEvents in interface RuleEventRuleEvent.generateEvents()Copyright © 2005–2015 The Kuali Foundation. All rights reserved.