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

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

public class BenefitExpenseTransferFringeBenefitObjectCodeValidation
extends GenericValidation

Validates that an accounting line has fringe benefit object code


Constructor Summary
BenefitExpenseTransferFringeBenefitObjectCodeValidation()
           
 
Method Summary
 AccountingLine getAccountingLineForValidation()
          Gets the accountingLineForValidation attribute.
protected  boolean isFringeBenefitObjectCode(AccountingLine accountingLine)
          Checks whether the given AccountingLine's Object Code is a fringe benefit object code.
 void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
          Sets the accountingLineForValidation attribute value.
 boolean validate(AttributedDocumentEvent event)
          only fringe benefit labor object codes are allowed on the benefit expense transfer document 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

BenefitExpenseTransferFringeBenefitObjectCodeValidation

public BenefitExpenseTransferFringeBenefitObjectCodeValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
only fringe benefit labor object codes are allowed on the benefit expense transfer document 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[])

isFringeBenefitObjectCode

protected boolean isFringeBenefitObjectCode(AccountingLine accountingLine)
Checks whether the given AccountingLine's Object Code is a fringe benefit object code.

Parameters:
accountingLine - The accounting line the fringe benefit object code will be retrieved from.
Returns:
True if the given accounting line's object code is a fringe benefit 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.