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

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

public class PurapAccountingLineDataDictionaryValidation
extends GenericValidation

A validation which uses the AccountingLineRuleHelperService to validate the values on an accounting line


Constructor Summary
PurapAccountingLineDataDictionaryValidation()
           
 
Method Summary
 AccountingLine getAccountingLineForValidation()
          Gets the accountingLineForValidation attribute.
 void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
          Sets the accountingLineForValidation attribute value.
 void setAccountingLineRuleHelperService(PurapAccountingLineRuleHelperService ruleHelperService)
          Sets the ruleHelperService attribute value.
 boolean validate(AttributedDocumentEvent event)
          Okay, okay, so yeah, I could have handled this through a bunch of DD validations.
 
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

PurapAccountingLineDataDictionaryValidation

public PurapAccountingLineDataDictionaryValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Okay, okay, so yeah, I could have handled this through a bunch of DD validations. But it's late Thursday afternoon and someone has already written this code for me... Expects an accounting line as the first parameter

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

setAccountingLineRuleHelperService

public void setAccountingLineRuleHelperService(PurapAccountingLineRuleHelperService ruleHelperService)
Sets the ruleHelperService attribute value.

Parameters:
ruleHelperService - The ruleHelperService to set.

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.