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

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

public class BudgetAdjustmentAccountingLinesRequiredForRoutingValidation
extends GenericValidation

The Budget Adjustment's variation on the lines required for routing met validation - here, we just need to make sure that the total number of accounting lines on the document is greater than 0.


Constructor Summary
BudgetAdjustmentAccountingLinesRequiredForRoutingValidation()
           
 
Method Summary
 AccountingDocument getAccountingDocumentForValidation()
          Gets the accountingDocumentForValidation attribute.
 void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
          Sets the accountingDocumentForValidation attribute value.
 boolean validate(AttributedDocumentEvent event)
          The BA document does not have to have source accounting lines.
 
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

BudgetAdjustmentAccountingLinesRequiredForRoutingValidation

public BudgetAdjustmentAccountingLinesRequiredForRoutingValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
The BA document does not have to have source accounting lines. In the case of setting up a budget for a new account, only targets line (increase section) are setup.

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

getAccountingDocumentForValidation

public AccountingDocument getAccountingDocumentForValidation()
Gets the accountingDocumentForValidation attribute.

Returns:
Returns the accountingDocumentForValidation.

setAccountingDocumentForValidation

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

Parameters:
accountingDocumentForValidation - The accountingDocumentForValidation to set.


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