public class AddCollectionLineEvent extends DocumentEventBase
document
Modifier | Constructor and Description |
---|---|
|
AddCollectionLineEvent(Document document,
String collectionName,
Object addLine)
Constructs an event for a document adding a line to the collection with the name
collectionName . |
|
AddCollectionLineEvent(String errorPathPrefix,
Document document,
String collectionName,
Object addLine)
Constructs an event for a document adding a line to the collection with the name
collectionName with a
specific errorPathPrefix . |
protected |
AddCollectionLineEvent(String eventType,
String errorPathPrefix,
Document document,
String collectionName,
Object addLine)
Constructs an event for a document adding a line to the collection with the name
collectionName with a
specific errorPathPrefix and eventType . |
Modifier and Type | Method and Description |
---|---|
Object |
getAddLine()
The object being added to the collection.
|
String |
getCollectionName()
The name of the collection being added to.
|
Class<AddCollectionLineRule> |
getRuleInterfaceClass()
Returns the interface that classes must implement to receive this event.
|
boolean |
invokeRuleMethod(BusinessRule rule)
Invokes the event handling method on the rule object.
|
getDocument, getDocumentId, validate
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, getRuleMethodName
public AddCollectionLineEvent(Document document, String collectionName, Object addLine)
collectionName
.document
- the document containing the collection objectscollectionName
- the name of the collection objectaddLine
- the object being added to the collectionpublic AddCollectionLineEvent(String errorPathPrefix, Document document, String collectionName, Object addLine)
collectionName
with a
specific errorPathPrefix
.errorPathPrefix
- the prefix to add to the error path for reporting messagesdocument
- the document containing the collection objectscollectionName
- the name of the collection objectaddLine
- the object being added to the collectionprotected AddCollectionLineEvent(String eventType, String errorPathPrefix, Document document, String collectionName, Object addLine)
collectionName
with a
specific errorPathPrefix
and eventType
.eventType
- the name of the type of eventerrorPathPrefix
- the prefix to add to the error path for reporting messagesdocument
- the document containing the collection objectscollectionName
- the name of the collection objectaddLine
- the object being added to the collectionpublic Class<AddCollectionLineRule> getRuleInterfaceClass()
AddCollectionLineRule
class.public boolean invokeRuleMethod(BusinessRule rule)
AddCollectionLineRule
.rule
- business rulepublic String getCollectionName()
public Object getAddLine()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.