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

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

public class BillingCapitalObjectValidation
extends GenericValidation

Validates that an accounting line does not have a capital object object code


Constructor Summary
BillingCapitalObjectValidation()
           
 
Method Summary
 AccountingLine getAccountingLineForValidation()
          Gets the accountingLineForValidation attribute.
 org.kuali.rice.kns.service.ParameterService getParameterService()
          Gets the parameterService attribute.
protected  boolean isCapitalObject(AccountingLine accountingLine)
          Checks whether the given AccountingLine's ObjectCode is a capital one.
 void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
          Sets the accountingLineForValidation attribute value.
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
          Sets the parameterService attribute value.
 boolean validate(AttributedDocumentEvent event)
          Validates that an accounting line does not have a capital object object code Expects an accounting line as the first a 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

BillingCapitalObjectValidation

public BillingCapitalObjectValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Validates that an accounting line does not have a capital object object code Expects an accounting line as the first a parameter

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

isCapitalObject

protected boolean isCapitalObject(AccountingLine accountingLine)
Checks whether the given AccountingLine's ObjectCode is a capital one.

Parameters:
accountingLine - The accounting line the object code will be retrieved from.
Returns:
True if the given accounting line's object code is a capital code, false otherwise.

getParameterService

public org.kuali.rice.kns.service.ParameterService getParameterService()
Gets the parameterService attribute.

Returns:
Returns the parameterService.

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the parameterService attribute value.

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