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

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

public class VendorCreditMemoAccountPercentBetween0And100Validation
extends GenericValidation


Constructor Summary
VendorCreditMemoAccountPercentBetween0And100Validation()
           
 
Method Summary
 org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
           
 void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
           
 boolean validate(AttributedDocumentEvent event)
          This method validates that certain parameters
protected  boolean validateRequiredField(org.kuali.rice.kns.bo.BusinessObject businessObject, String fieldName)
          Helper method to perform required field checks add error messages if the validation fails.
 
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

VendorCreditMemoAccountPercentBetween0And100Validation

public VendorCreditMemoAccountPercentBetween0And100Validation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Description copied from interface: Validation
This method validates that certain parameters

Returns:
true if validation should continue, false otherwise

validateRequiredField

protected boolean validateRequiredField(org.kuali.rice.kns.bo.BusinessObject businessObject,
                                        String fieldName)
Helper method to perform required field checks add error messages if the validation fails. Adds an error required to GlobalVariables.errorMap using the given fieldName as the error key and retrieving the error label from the data dictionary for the error required message param.

Parameters:
businessObject - - Business object to check for value
fieldName - - Name of the property in the business object

getDataDictionaryService

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

setDataDictionaryService

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


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