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

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

public class PurchasingBelowTheLineItemNoUnitCostValidation
extends GenericValidation


Constructor Summary
PurchasingBelowTheLineItemNoUnitCostValidation()
           
 
Method Summary
 PurApItem getItemForValidation()
           
 void setItemForValidation(PurApItem itemForValidation)
           
 boolean validate(AttributedDocumentEvent event)
          Validates that if the item unit price is null and the source accounting lines is not empty, add error message and return false.
 
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

PurchasingBelowTheLineItemNoUnitCostValidation

public PurchasingBelowTheLineItemNoUnitCostValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Validates that if the item unit price is null and the source accounting lines is not empty, add error message and return false.

Returns:
true if validation should continue, false otherwise

getItemForValidation

public PurApItem getItemForValidation()

setItemForValidation

public void setItemForValidation(PurApItem itemForValidation)


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