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

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

public class BudgetAdjustmentAccountingLineMonthlyLinesValidation
extends GenericValidation

Validation for a budget adjustment accounting line that validates the information in the monthly lines


Constructor Summary
BudgetAdjustmentAccountingLineMonthlyLinesValidation()
           
 
Method Summary
 BudgetAdjustmentAccountingLine getAccountingLineForValidation()
          Gets the accountingLineForValidation attribute.
 void setAccountingLineForValidation(BudgetAdjustmentAccountingLine accountingLineForValidation)
          Sets the accountingLineForValidation attribute value.
 boolean validate(AttributedDocumentEvent event)
          Validates the total of the monthly amount fields (if not 0) equals the current budget amount.
 
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

BudgetAdjustmentAccountingLineMonthlyLinesValidation

public BudgetAdjustmentAccountingLineMonthlyLinesValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Validates the total of the monthly amount fields (if not 0) equals the current budget amount. If current budget is 0, then total of monthly fields must be 0.

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

getAccountingLineForValidation

public BudgetAdjustmentAccountingLine getAccountingLineForValidation()
Gets the accountingLineForValidation attribute.

Returns:
Returns the accountingLineForValidation.

setAccountingLineForValidation

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

Parameters:
accountingLineForValidation - The accountingLineForValidation to set.


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