public abstract class KualiDocumentEventBase extends Object implements KualiDocumentEvent
Modifier | Constructor and Description |
---|---|
protected |
KualiDocumentEventBase(String description,
String errorPathPrefix)
As a general rule, business rule classes should not change the original object.
|
|
KualiDocumentEventBase(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 |
---|---|
List<KualiDocumentEvent> |
generateEvents()
This will return a list of events that are spawned from this event.
|
String |
getDescription()
A description of the event.
|
Document |
getDocument() |
protected static String |
getDocumentId(Document document)
Provides null-safe access to the documentNumber of the given document.
|
String |
getErrorPathPrefix() |
String |
getName()
The name of the event.
|
String |
toString() |
void |
validate()
Validates the event has all the necessary properties.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRuleInterfaceClass, invokeRuleMethod
protected KualiDocumentEventBase(String description, String errorPathPrefix)
description
- errorPathPrefix
- public KualiDocumentEventBase(String description, String errorPathPrefix, Document document)
errorPathPrefix
- document
- description
- public final Document getDocument()
getDocument
in interface KualiDocumentEvent
KualiDocumentEvent.getDocument()
public final String getName()
KualiDocumentEvent
getName
in interface KualiDocumentEvent
KualiDocumentEvent.getName()
public final String getDescription()
KualiDocumentEvent
getDescription
in interface KualiDocumentEvent
public String getErrorPathPrefix()
getErrorPathPrefix
in interface KualiDocumentEvent
KualiDocumentEvent.getErrorPathPrefix()
public String toString()
toString
in class Object
Object.toString()
public void validate()
KualiDocumentEvent
validate
in interface KualiDocumentEvent
KualiDocumentEvent.validate()
public List<KualiDocumentEvent> generateEvents()
KualiDocumentEvent
generateEvents
in interface KualiDocumentEvent
KualiDocumentEvent.generateEvents()
protected static String getDocumentId(Document document)
document
- Copyright © 2005–2016 The Kuali Foundation. All rights reserved.