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

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

public class DisbursementVoucherDocumentFieldValidation
extends GenericValidation


Constructor Summary
DisbursementVoucherDocumentFieldValidation()
           
 
Method Summary
 AccountingDocument getAccountingDocumentForValidation()
          Gets the accountingDocumentForValidation attribute.
protected  boolean hasNoNotes(DisbursementVoucherDocument document)
          Return true if disbursement voucher does not have any notes
 void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
          Sets the accountingDocumentForValidation attribute value.
 boolean validate(AttributedDocumentEvent event)
          This method validates that certain parameters
 
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

DisbursementVoucherDocumentFieldValidation

public DisbursementVoucherDocumentFieldValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Description copied from interface: Validation
This method validates that certain parameters

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

hasNoNotes

protected boolean hasNoNotes(DisbursementVoucherDocument document)
Return true if disbursement voucher does not have any notes

Parameters:
document - submitted disbursement voucher document
Returns:
whether the given document has no notes

setAccountingDocumentForValidation

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

Parameters:
accountingDocumentForValidation - The accountingDocumentForValidation to set.

getAccountingDocumentForValidation

public AccountingDocument getAccountingDocumentForValidation()
Gets the accountingDocumentForValidation attribute.

Returns:
Returns the accountingDocumentForValidation.


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