org.kuali.kfs.fp.document.validation.impl
Class CashReceiptFamilyAccountingLineAmountValidation

java.lang.Object
  extended by org.kuali.kfs.sys.document.validation.ParameterizedValidation
      extended by org.kuali.kfs.sys.document.validation.GenericValidation
          extended by org.kuali.kfs.fp.document.validation.impl.CashReceiptFamilyAccountingLineAmountValidation
All Implemented Interfaces:
Validation

public class CashReceiptFamilyAccountingLineAmountValidation
extends GenericValidation

Validation that validates the amounts on accounting lines for the Cash Receipt family of documents.


Constructor Summary
CashReceiptFamilyAccountingLineAmountValidation()
           
 
Method Summary
 AccountingLine getAccountingLineForValidation()
          Gets the accountingLineForValidation attribute.
 void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
          Sets the accountingLineForValidation attribute value.
 boolean validate(AttributedDocumentEvent event)
          Cash Receipt documents allow both positive and negative values, so we only need to check for zero amounts.
 
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

CashReceiptFamilyAccountingLineAmountValidation

public CashReceiptFamilyAccountingLineAmountValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Cash Receipt documents allow both positive and negative values, so we only need to check for zero amounts.

Returns:
true if validation should continue, false otherwise
See Also:
Validation.validate(org.kuali.kfs.sys.document.validation.event.AttributedDocumentEvent)

getAccountingLineForValidation

public AccountingLine getAccountingLineForValidation()
Gets the accountingLineForValidation attribute.

Returns:
Returns the accountingLineForValidation.

setAccountingLineForValidation

public void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
Sets the accountingLineForValidation attribute value.

Parameters:
accountingLineForValidation - The accountingLineForValidation to set.


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.