org.kuali.kfs.fp.document.validation.impl
Class AuxiliaryVoucherAccountingLineAmountValidation

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

public class AuxiliaryVoucherAccountingLineAmountValidation
extends GenericValidation

The Auxiliary Voucher's customization of the accounting line amount validation.


Constructor Summary
AuxiliaryVoucherAccountingLineAmountValidation()
           
 
Method Summary
protected  String buildErrorMapKeyPathForDebitCreditAmount(boolean isDebit)
          This method looks at the current full key path that exists in the ErrorMap structure to determine how to build the error map for the special journal voucher credit and debit fields since they don't conform to the standard pattern of accounting lines.
 AccountingLine getAccountingLineForValidation()
          Gets the accountingLineForValidation attribute.
 void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
          Sets the accountingLineForValidation attribute value.
 boolean validate(AttributedDocumentEvent event)
          Accounting lines for Auxiliary Vouchers can only be positive non-zero numbers
 
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

AuxiliaryVoucherAccountingLineAmountValidation

public AuxiliaryVoucherAccountingLineAmountValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Accounting lines for Auxiliary Vouchers can only be positive non-zero numbers

Returns:
true if validation should continue, false otherwise
See Also:
Validation.validate(org.kuali.kfs.sys.document.validation.event.AttributedDocumentEvent)

buildErrorMapKeyPathForDebitCreditAmount

protected String buildErrorMapKeyPathForDebitCreditAmount(boolean isDebit)
This method looks at the current full key path that exists in the ErrorMap structure to determine how to build the error map for the special journal voucher credit and debit fields since they don't conform to the standard pattern of accounting lines.

Parameters:
isDebit - boolean to determine whether or not value isDebit or not
Returns:
String represents error map key to use

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.