public class OneSidedRequiredAccountingLinesCountValidation extends GenericValidation
Constructor and Description |
---|
OneSidedRequiredAccountingLinesCountValidation() |
Modifier and Type | Method and Description |
---|---|
AccountingDocument |
getAccountingDocumentForValidation()
Gets the accountingDocumentForValdation attribute.
|
int |
getRequiredMinimumCount()
Gets the requiredMinimumCount attribute.
|
void |
setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
Sets the accountingDocumentForValdation attribute value.
|
void |
setRequiredMinimumCount(int requiredCount)
Sets the requiredMinimumCount attribute value.
|
boolean |
validate(AttributedDocumentEvent event)
Validates that the accountingDocumentForValidation has at least the requiredMinimumCount accounting lines
in its sourceAccountingLines (yep, it's assumed that one-sided accounting docs *always* use source...isn't that dumb?)
|
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
public OneSidedRequiredAccountingLinesCountValidation()
public boolean validate(AttributedDocumentEvent event)
Validation.validate(org.kuali.ole.sys.document.validation.event.AttributedDocumentEvent)
public AccountingDocument getAccountingDocumentForValidation()
public void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
accountingDocumentForValdation
- The accountingDocumentForValdation to set.public int getRequiredMinimumCount()
public void setRequiredMinimumCount(int requiredCount)
requiredMinimumCount
- The requiredMinimumCount to set.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.