|
||||||||||
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.BudgetAdjustmentAccountingLineAmountValidation
public class BudgetAdjustmentAccountingLineAmountValidation
Validation that checks the amounts on budget adjustment document accounting lines.
Constructor Summary | |
---|---|
BudgetAdjustmentAccountingLineAmountValidation()
|
Method Summary | |
---|---|
protected boolean |
checkAmountSign(org.kuali.rice.kns.util.KualiDecimal amount,
String propertyName,
String label)
Helper method to check if an amount is negative and add an error if not. |
AccountingDocument |
getAccountingDocumentForValidation()
Gets the accountingDocumentForValidation attribute. |
BudgetAdjustmentAccountingLine |
getAccountingLineForValidation()
Gets the accountingLineForValidation attribute. |
DebitDeterminerService |
getDebitDeterminerService()
Gets the debitDeterminerService attribute. |
void |
setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
Sets the accountingDocumentForValidation attribute value. |
void |
setAccountingLineForValidation(BudgetAdjustmentAccountingLine accountingLineForValidation)
Sets the accountingLineForValidation attribute value. |
void |
setDebitDeterminerService(DebitDeterminerService debitDeterminerService)
Sets the debitDeterminerService attribute value. |
boolean |
validate(AttributedDocumentEvent event)
Validates the amounts on a budget adjustment accounting line, making sure that either the current adjustment amount or the base adjustment amount are not zero, and that all given amounts are positive. |
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 BudgetAdjustmentAccountingLineAmountValidation()
Method Detail |
---|
public boolean validate(AttributedDocumentEvent event)
Validation.validate(org.kuali.kfs.sys.document.validation.event.AttributedDocumentEvent)
protected boolean checkAmountSign(org.kuali.rice.kns.util.KualiDecimal amount, String propertyName, String label)
amount
- to checkpropertyName
- to add error underlabel
- for error
public BudgetAdjustmentAccountingLine getAccountingLineForValidation()
public void setAccountingLineForValidation(BudgetAdjustmentAccountingLine accountingLineForValidation)
accountingLineForValidation
- The accountingLineForValidation to set.public AccountingDocument getAccountingDocumentForValidation()
public void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
accountingDocumentForValidation
- The accountingDocumentForValidation to set.public DebitDeterminerService getDebitDeterminerService()
public void setDebitDeterminerService(DebitDeterminerService debitDeterminerService)
debitDeterminerService
- The debitDeterminerService to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |