org.kuali.kfs.module.purap.document.validation.impl
Class PurchasingAccountsPayableBelowTheLineValuesValidation

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.purap.document.validation.impl.PurchasingAccountsPayableBelowTheLineValuesValidation
All Implemented Interfaces:
Validation

public class PurchasingAccountsPayableBelowTheLineValuesValidation
extends GenericValidation


Constructor Summary
PurchasingAccountsPayableBelowTheLineValuesValidation()
           
 
Method Summary
 org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
           
 PurApItem getItemForValidation()
           
 org.kuali.rice.kns.service.ParameterService getParameterService()
           
 void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
           
 void setItemForValidation(PurApItem itemForValidation)
           
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
           
 boolean validate(AttributedDocumentEvent event)
          Performs validations for below the line items.
 
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

PurchasingAccountsPayableBelowTheLineValuesValidation

public PurchasingAccountsPayableBelowTheLineValuesValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Performs validations for below the line items. If the unit price is zero, and the system parameter indicates that the item should not allow zero, then the validation fails. If the unit price is positive and the system parameter indicates that the item should not allow positive values, then the validation fails. If the unit price is negative and the system parameter indicates that the item should not allow negative values, then the validation fails. If the unit price is entered and is not zero and the item description is empty and the system parameter indicates that the item requires user to enter description, then the validation fails.

Returns:
true if validation should continue, false otherwise

getDataDictionaryService

public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()

setDataDictionaryService

public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)

getParameterService

public org.kuali.rice.kns.service.ParameterService getParameterService()

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)

getItemForValidation

public PurApItem getItemForValidation()

setItemForValidation

public void setItemForValidation(PurApItem itemForValidation)


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