|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.sys.document.validation.ParameterizedValidation
org.kuali.kfs.sys.document.validation.GenericValidation
org.kuali.kfs.fp.document.validation.impl.JournalVoucherAccountingLineAmountValidation
public class JournalVoucherAccountingLineAmountValidation
The Journal Voucher's version of the accounting line amount validation
Constructor Summary | |
---|---|
JournalVoucherAccountingLineAmountValidation()
|
Method Summary | |
---|---|
protected String |
buildErrorMapKeyPathForDebitCreditAmount(boolean isDebit)
This method looks at the current full key path that exists in the ErrorMap structure to determine how to build the error map for the special journal voucher credit and debit fields since they don't conform to the standard pattern of accounting lines. |
AccountingLine |
getAccountingLineForValidation()
Gets the accountingLineForValidation attribute. |
JournalVoucherDocument |
getJournalVoucherForValidation()
Gets the journalVoucherForValidation attribute. |
void |
setAccountingLineForValidation(AccountingLine accountingLineForValidation)
Sets the accountingLineForValidation attribute value. |
void |
setJournalVoucherForValidation(JournalVoucherDocument journalVoucherForValidation)
Sets the journalVoucherForValidation attribute value. |
boolean |
validate(AttributedDocumentEvent event)
Accounting lines for Journal Vouchers can be positive or negative, just not "$0.00". |
Methods inherited from class org.kuali.kfs.sys.document.validation.GenericValidation |
---|
setQuitOnFail, shouldQuitOnFail, stageValidation |
Methods inherited from class org.kuali.kfs.sys.document.validation.ParameterizedValidation |
---|
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JournalVoucherAccountingLineAmountValidation()
Method Detail |
---|
public boolean validate(AttributedDocumentEvent event)
Validation.validate(org.kuali.kfs.sys.document.validation.event.AttributedDocumentEvent)
protected String buildErrorMapKeyPathForDebitCreditAmount(boolean isDebit)
isDebit
- Identifies whether or not the line we are returning an error path for is a debit accounting line or not.
public AccountingLine getAccountingLineForValidation()
public void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
accountingLineForValidation
- The accountingLineForValidation to set.public JournalVoucherDocument getJournalVoucherForValidation()
public void setJournalVoucherForValidation(JournalVoucherDocument journalVoucherForValidation)
journalVoucherForValidation
- The journalVoucherForValidation to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |