public abstract class DocumentEventBase extends RuleEventBase implements DocumentEvent
Modifier | Constructor and Description |
---|---|
protected |
DocumentEventBase(String description,
String errorPathPrefix)
As a general rule, business rule classes should not change the original object.
|
|
DocumentEventBase(String description,
String errorPathPrefix,
Document document)
Constructs a KualiEvent with the given description and errorPathPrefix for the given document.
|
Modifier and Type | Method and Description |
---|---|
Document |
getDocument() |
protected static String |
getDocumentId(Document document)
Provides null-safe access to the documentNumber of the given document.
|
void |
validate()
Validates the event has all the necessary properties.
|
addFact, generateEvents, getDescription, getErrorPathPrefix, getFacts, getName, getRuleMethodName, setFacts, setName, setRuleMethodName, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
generateEvents, getDescription, getErrorPathPrefix, getFacts, getName, getRuleInterfaceClass, getRuleMethodName, invokeRuleMethod
protected DocumentEventBase(String description, String errorPathPrefix)
description
- errorPathPrefix
- public DocumentEventBase(String description, String errorPathPrefix, Document document)
errorPathPrefix
- document
- description
- public final Document getDocument()
getDocument
in interface DocumentEvent
DocumentEvent.getDocument()
public void validate()
RuleEvent
validate
in interface RuleEvent
RuleEvent.validate()
protected static String getDocumentId(Document document)
document
- Copyright © 2005–2016 The Kuali Foundation. All rights reserved.