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

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

public class NonCheckDisbursementRequiredReferenceFieldValidation
extends GenericValidation

Validates that an accounting line has a reference number


Constructor Summary
NonCheckDisbursementRequiredReferenceFieldValidation()
           
 
Method Summary
 AccountingLine getAccountingLineForValidation()
          Gets the accountingLineForValidation attribute.
 org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
          Gets the dataDictionaryService attribute.
protected  void putRequiredPropertyError(org.kuali.rice.kns.datadictionary.BusinessObjectEntry boe, String propertyName)
          Adds a global error for a missing required property.
 void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
          Sets the accountingLineForValidation attribute value.
 void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
          Sets the dataDictionaryService attribute value.
 boolean validate(AttributedDocumentEvent event)
          determines if a reference number has been added to the Accounting Line 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

NonCheckDisbursementRequiredReferenceFieldValidation

public NonCheckDisbursementRequiredReferenceFieldValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
determines if a reference number has been added to the Accounting Line Expects an accounting line as the first a parameter

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

putRequiredPropertyError

protected void putRequiredPropertyError(org.kuali.rice.kns.datadictionary.BusinessObjectEntry boe,
                                        String propertyName)
Adds a global error for a missing required property. This is used for properties, such as reference origin code, which cannot be required by the DataDictionary validation because not all documents require them.

Parameters:
boe -
propertyName -

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.

getDataDictionaryService

public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
Gets the dataDictionaryService attribute.

Returns:
Returns the dataDictionaryService.

setDataDictionaryService

public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Sets the dataDictionaryService attribute value.

Parameters:
dataDictionaryService - The dataDictionaryService to set.


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