org.kuali.kfs.module.ld.document.validation.impl
Class SalaryExpenseTransferObjectCodeBalancesUnchangedValidation

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.module.ld.document.validation.impl.SalaryExpenseTransferObjectCodeBalancesUnchangedValidation
All Implemented Interfaces:
Validation

public class SalaryExpenseTransferObjectCodeBalancesUnchangedValidation
extends GenericValidation

Validates that an accounting document's balances by object codes are unchanged


Constructor Summary
SalaryExpenseTransferObjectCodeBalancesUnchangedValidation()
           
 
Method Summary
 AccountingDocument getAccountingDocumentForValidation()
          Gets the accountingDocumentForValidation attribute.
protected  boolean isObjectCodeBalancesUnchanged(SalaryExpenseTransferDocument salaryExpenseTransferDocument)
          Checks whether amounts by object codes are unchanged
 void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
          Sets the accountingDocumentForValidation attribute value.
 boolean validate(AttributedDocumentEvent event)
          Validates that an accounting document have balances unchanged for the object codes Expects an accounting document as the first a parameter
 
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

SalaryExpenseTransferObjectCodeBalancesUnchangedValidation

public SalaryExpenseTransferObjectCodeBalancesUnchangedValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Validates that an accounting document have balances unchanged for the object codes Expects an accounting document as the first a parameter

Returns:
true if validation should continue, false otherwise
See Also:
org.kuali.kfs.validation.Validation#validate(java.lang.Object[])

isObjectCodeBalancesUnchanged

protected boolean isObjectCodeBalancesUnchanged(SalaryExpenseTransferDocument salaryExpenseTransferDocument)
Checks whether amounts by object codes are unchanged

Parameters:
accountingDocumentForValidation - The accounting document from which the amounts by objects codes are checked
Returns:
True if the given accounting documents amounts by object code are unchanged, false otherwise.

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.