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

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

public class SalaryExpenseTransferSalaryObjectCodeValidation
extends GenericValidation

Validates that an accounting line has salary object code


Constructor Summary
SalaryExpenseTransferSalaryObjectCodeValidation()
           
 
Method Summary
 AccountingLine getAccountingLineForValidation()
          Gets the accountingLineForValidation attribute.
protected  boolean isSalaryObjectCode(AccountingLine accountingLine)
          Checks whether the given AccountingLine's Object Code is a salary object code.
 void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
          Sets the accountingLineForValidation attribute value.
 boolean validate(AttributedDocumentEvent event)
          Validates that an accounting line does not have a salary object code Expects an accounting line 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

SalaryExpenseTransferSalaryObjectCodeValidation

public SalaryExpenseTransferSalaryObjectCodeValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Validates that an accounting line does not have a salary object code Expects an accounting line as the first a parameter

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

isSalaryObjectCode

protected boolean isSalaryObjectCode(AccountingLine accountingLine)
Checks whether the given AccountingLine's Object Code is a salary object code.

Parameters:
accountingLine - The accounting line the salary object code will be retrieved from.
Returns:
True if the given accounting line's object code is a salary object code, false otherwise.

getAccountingLineForValidation

public AccountingLine getAccountingLineForValidation()
Gets the accountingLineForValidation attribute.

Returns:
Returns the accountingLineForValidation.

setAccountingLineForValidation

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

Parameters:
accountingLineForValidation - The accountingLineForValidation to set.


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