org.kuali.kfs.module.ld.document.validation.impl
Class LaborExpenseTransferValidAmountTransferredByObjectCodeValidation

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

public class LaborExpenseTransferValidAmountTransferredByObjectCodeValidation
extends GenericValidation

target accounting lines must have the same amounts as source accounting lines for each object code in the document


Constructor Summary
LaborExpenseTransferValidAmountTransferredByObjectCodeValidation()
           
 
Method Summary
 org.kuali.rice.kns.document.Document getDocumentForValidation()
          Gets the documentForValidation attribute.
protected  boolean isValidAmountTransferredByObjectCode(AccountingDocument accountingDocument)
          Determine whether target accounting lines have the same amounts as source accounting lines for each object code
 void setDocumentForValidation(org.kuali.rice.kns.document.Document documentForValidation)
          Sets the accountingDocumentForValidation attribute value.
 boolean validate(AttributedDocumentEvent event)
          Validates before the document routes
 
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

LaborExpenseTransferValidAmountTransferredByObjectCodeValidation

public LaborExpenseTransferValidAmountTransferredByObjectCodeValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Validates before the document routes

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

isValidAmountTransferredByObjectCode

protected boolean isValidAmountTransferredByObjectCode(AccountingDocument accountingDocument)
Determine whether target accounting lines have the same amounts as source accounting lines for each object code

Parameters:
accountingDocument - the given accounting document
Returns:
true if target accounting lines have the same amounts as source accounting lines for each object code; otherwise, false

getDocumentForValidation

public org.kuali.rice.kns.document.Document getDocumentForValidation()
Gets the documentForValidation attribute.

Returns:
Returns the documentForValidation.

setDocumentForValidation

public void setDocumentForValidation(org.kuali.rice.kns.document.Document documentForValidation)
Sets the accountingDocumentForValidation attribute value.

Parameters:
documentForValidation - The documentForValidation to set.


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