org.kuali.kfs.sys.document.validation.impl
Class AccountingLineAmountPositiveValidation

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.sys.document.validation.impl.AccountingLineAmountPositiveValidation
All Implemented Interfaces:
Validation
Direct Known Subclasses:
DisbursementVoucherAccountingLineAmountPositiveValidation

public class AccountingLineAmountPositiveValidation
extends GenericValidation

Validates an accounting line that, if the line is not a correction document, the line amount is a positive amount


Constructor Summary
AccountingLineAmountPositiveValidation()
           
 
Method Summary
 AccountingDocument getAccountingDocumentForValidation()
          Gets the accountingDocumentForValidation attribute.
 AccountingLine getAccountingLineForValidation()
          Gets the accountingLineForValidation attribute.
 void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
          Sets the accountingDocumentForValidation attribute value.
 void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
          Sets the accountingLineForValidation attribute value.
 boolean validate(AttributedDocumentEvent event)
          Check for zero amount, or negative on original (non-correction) document; no sign check for documents that are corrections to previous documents the accounting document must be the first parameter, the accounting line must be the second parameter
 
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

AccountingLineAmountPositiveValidation

public AccountingLineAmountPositiveValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Check for zero amount, or negative on original (non-correction) document; no sign check for documents that are corrections to previous documents the accounting document must be the first parameter, the accounting line must be the second parameter

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

getAccountingDocumentForValidation

public AccountingDocument getAccountingDocumentForValidation()
Gets the accountingDocumentForValidation attribute.

Returns:
Returns the accountingDocumentForValidation.

setAccountingDocumentForValidation

public void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
Sets the accountingDocumentForValidation attribute value.

Parameters:
accountingDocumentForValidation - The accountingDocumentForValidation 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.