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

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.sys.document.validation.impl.AccountingLineValueAllowedValidation
              extended by org.kuali.kfs.fp.document.validation.impl.TransferOfFundsObjectCodeValueAllowedValidation
All Implemented Interfaces:
Validation

public class TransferOfFundsObjectCodeValueAllowedValidation
extends AccountingLineValueAllowedValidation

A validation for the transfer of funds document that makes sure that an object code in any accounting line represents either income or expense.


Field Summary
 
Fields inherited from class org.kuali.kfs.sys.document.validation.impl.AccountingLineValueAllowedValidation
accountingDocumentForValidation, accountingLineForValidation, parameterService, parameterToCheckAgainst, propertyPath, responsibleProperty
 
Constructor Summary
TransferOfFundsObjectCodeValueAllowedValidation()
           
 
Method Summary
 DebitDeterminerService getDebitDeterminerService()
          Gets the debitDeterminerService attribute.
 void setDebitDeterminerService(DebitDeterminerService debitDeterminerService)
          Sets the debitDeterminerService attribute value.
 boolean validate(AttributedDocumentEvent event)
          Overrides the parent to make sure that the chosen object code's object code is Income/Expense.
 
Methods inherited from class org.kuali.kfs.sys.document.validation.impl.AccountingLineValueAllowedValidation
convertPathToQueue, getAccountingDocumentForValidation, getAccountingLineForValidation, getParameterService, getParameterToCheckAgainst, getPropertyPath, getResponsibleProperty, isAccountingLineValueAllowed, refreshByPath, refreshByQueue, setAccountingDocumentForValidation, setAccountingLineForValidation, setParameterService, setParameterToCheckAgainst, setPropertyPath, setResponsibleProperty
 
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

TransferOfFundsObjectCodeValueAllowedValidation

public TransferOfFundsObjectCodeValueAllowedValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Overrides the parent to make sure that the chosen object code's object code is Income/Expense.

Specified by:
validate in interface Validation
Overrides:
validate in class AccountingLineValueAllowedValidation
Returns:
true if validation should continue, false otherwise
See Also:
AccountingLineValueAllowedValidation.validate(org.kuali.kfs.sys.document.validation.event.AttributedDocumentEvent)

getDebitDeterminerService

public DebitDeterminerService getDebitDeterminerService()
Gets the debitDeterminerService attribute.

Returns:
Returns the debitDeterminerService.

setDebitDeterminerService

public void setDebitDeterminerService(DebitDeterminerService debitDeterminerService)
Sets the debitDeterminerService attribute value.

Parameters:
debitDeterminerService - The debitDeterminerService to set.


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