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

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.CashReceiptCashTotalsValidation
All Implemented Interfaces:
Validation

public class CashReceiptCashTotalsValidation
extends GenericValidation

Validation that checks all of the various cash totals on a cash receipt document.


Constructor Summary
CashReceiptCashTotalsValidation()
           
 
Method Summary
 CashReceiptDocument getCashReceiptDocumentForValidation()
          Gets the cashReceiptDocumentForValidation attribute.
 CashReceiptService getCashReceiptService()
          Gets the cashReceiptService attribute.
 void setCashReceiptDocumentForValidation(CashReceiptDocument cashReceiptDocumentForValidation)
          Sets the cashReceiptDocumentForValidation attribute value.
 void setCashReceiptService(CashReceiptService cashReceiptService)
          Sets the cashReceiptService attribute value.
 boolean validate(AttributedDocumentEvent event)
          Uses the CashReceiptService.areCashTotalsInvalid method to check the cash totals.
 
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

CashReceiptCashTotalsValidation

public CashReceiptCashTotalsValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Uses the CashReceiptService.areCashTotalsInvalid method to check the cash totals.

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

getCashReceiptDocumentForValidation

public CashReceiptDocument getCashReceiptDocumentForValidation()
Gets the cashReceiptDocumentForValidation attribute.

Returns:
Returns the cashReceiptDocumentForValidation.

setCashReceiptDocumentForValidation

public void setCashReceiptDocumentForValidation(CashReceiptDocument cashReceiptDocumentForValidation)
Sets the cashReceiptDocumentForValidation attribute value.

Parameters:
cashReceiptDocumentForValidation - The cashReceiptDocumentForValidation to set.

getCashReceiptService

public CashReceiptService getCashReceiptService()
Gets the cashReceiptService attribute.

Returns:
Returns the cashReceiptService.

setCashReceiptService

public void setCashReceiptService(CashReceiptService cashReceiptService)
Sets the cashReceiptService attribute value.

Parameters:
cashReceiptService - The cashReceiptService to set.


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