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

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

public class LaborExpenseTransferAccountLineTotalsMatchValidation
extends GenericValidation

determine whether the given accounting line has already been in the given document


Constructor Summary
LaborExpenseTransferAccountLineTotalsMatchValidation()
           
 
Method Summary
 org.kuali.rice.kns.document.Document getDocumentForValidation()
          Gets the documentForValidation attribute.
 boolean isAccountingLineTotalsMatch(List sourceLines, List targetLines)
          This method checks if the total sum amount of the source accounting line matches the total sum amount of the target accounting line, return true if the totals match, false otherwise.
 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

LaborExpenseTransferAccountLineTotalsMatchValidation

public LaborExpenseTransferAccountLineTotalsMatchValidation()
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[])

isAccountingLineTotalsMatch

public boolean isAccountingLineTotalsMatch(List sourceLines,
                                           List targetLines)
This method checks if the total sum amount of the source accounting line matches the total sum amount of the target accounting line, return true if the totals match, false otherwise.

Parameters:
sourceLines -
targetLines -
Returns:

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.