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

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

public class PurchasingUpdateAccountingLineValidation
extends GenericValidation


Constructor Summary
PurchasingUpdateAccountingLineValidation()
           
 
Method Summary
 AccountingLine getUpdatedAccountingLine()
           
 void setUpdatedAccountingLine(AccountingLine updatedAccountingLine)
           
 boolean validate(AttributedDocumentEvent event)
          This method validates that certain parameters
protected  boolean verifyAccountingLinePercent(PurApAccountingLine purapAccountingLine)
          Verifies that the accounting line percent is a whole number.
 
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

PurchasingUpdateAccountingLineValidation

public PurchasingUpdateAccountingLineValidation()
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

verifyAccountingLinePercent

protected boolean verifyAccountingLinePercent(PurApAccountingLine purapAccountingLine)
Verifies that the accounting line percent is a whole number.

Parameters:
purapAccountingLine - the accounting line to be validated
Returns:
boolean false if the accounting line percent is not a whole number.

getUpdatedAccountingLine

public AccountingLine getUpdatedAccountingLine()

setUpdatedAccountingLine

public void setUpdatedAccountingLine(AccountingLine updatedAccountingLine)


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