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

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

public class BudgetAdjustmentDocumentBalancedValidation
extends GenericValidation

A validation which checks if a Budget Adjustment document is balanced before heading to routing


Field Summary
 BudgetAdjustmentDocument accountingDocumentForValidation
           
 
Constructor Summary
BudgetAdjustmentDocumentBalancedValidation()
           
 
Method Summary
 BudgetAdjustmentDocument getAccountingDocumentForValidation()
          Gets the accountingDocumentForValidation attribute.
 void setAccountingDocumentForValidation(BudgetAdjustmentDocument accountingDocumentForValidation)
          Sets the accountingDocumentForValidation attribute value.
 boolean validate(AttributedDocumentEvent event)
          Validates that the budget adjustment document is balanced, based on whether the source base amount equals the target base amount and that the income stream balance map has no non-zero values.
 
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
 

Field Detail

accountingDocumentForValidation

public BudgetAdjustmentDocument accountingDocumentForValidation
Constructor Detail

BudgetAdjustmentDocumentBalancedValidation

public BudgetAdjustmentDocumentBalancedValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Validates that the budget adjustment document is balanced, based on whether the source base amount equals the target base amount and that the income stream balance map has no non-zero values.

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

getAccountingDocumentForValidation

public BudgetAdjustmentDocument getAccountingDocumentForValidation()
Gets the accountingDocumentForValidation attribute.

Returns:
Returns the accountingDocumentForValidation.

setAccountingDocumentForValidation

public void setAccountingDocumentForValidation(BudgetAdjustmentDocument accountingDocumentForValidation)
Sets the accountingDocumentForValidation attribute value.

Parameters:
accountingDocumentForValidation - The accountingDocumentForValidation to set.


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