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

java.lang.Object
  extended by org.kuali.kfs.sys.document.validation.impl.AccountingLineCheckValidationHutch
All Implemented Interfaces:
Validation

public class AccountingLineCheckValidationHutch
extends Object
implements Validation


Field Summary
protected  AccountingDocument accountingDocumentForValidation
           
protected  String accountingDocumentParameterPropertyName
           
protected  AccountingLine accountingLineForValidation
           
protected  String accountingLineParameterPropertyName
           
protected  Validation lineAmountValidation
           
protected  Validation lineCheckValidation
           
protected  Validation lineValuesAllowedValidation
           
protected  boolean quitOnFail
           
 
Constructor Summary
AccountingLineCheckValidationHutch()
           
 
Method Summary
 Validation getLineAmountValidation()
          Gets the lineAmountValidation attribute.
 Validation getLineCheckValidation()
          Gets the lineCheckValidation attribute.
 Validation getLineValuesAllowedValidation()
          Gets the lineValuesAllowedValidation attribute.
protected  void grabDocumentAndLineForValidationFromEvent(AttributedDocumentEvent event)
          Using the parameter property names set, finds the accounting document and accounting line to be validate from the property.
 void setLineAmountValidation(Validation lineAmountValidation)
          Sets the lineAmountValidation attribute value.
 void setLineCheckValidation(Validation lineCheckValidation)
          Sets the lineCheckValidation attribute value.
 void setLineValuesAllowedValidation(Validation lineValuesAllowedValidation)
          Sets the lineValuesAllowedValidation attribute value.
 void setShouldQuitOnFail(boolean b)
          Sets whether the validation hutch should quit on the failure of the entire validation case failing.
 boolean shouldQuitOnFail()
          Returns whether the validation process should quit on the failure of this validation
 boolean stageValidation(AttributedDocumentEvent event)
          Stages the execution of a Validation
protected  void updateValidationsWithParameters()
          Updates the child validations with accounting document and accounting line information.
 boolean validate(AttributedDocumentEvent event)
          This method validates that certain parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lineAmountValidation

protected Validation lineAmountValidation

lineCheckValidation

protected Validation lineCheckValidation

lineValuesAllowedValidation

protected Validation lineValuesAllowedValidation

accountingDocumentParameterPropertyName

protected String accountingDocumentParameterPropertyName

accountingLineParameterPropertyName

protected String accountingLineParameterPropertyName

accountingDocumentForValidation

protected AccountingDocument accountingDocumentForValidation

accountingLineForValidation

protected AccountingLine accountingLineForValidation

quitOnFail

protected boolean quitOnFail
Constructor Detail

AccountingLineCheckValidationHutch

public AccountingLineCheckValidationHutch()
Method Detail

shouldQuitOnFail

public boolean shouldQuitOnFail()
Description copied from interface: Validation
Returns whether the validation process should quit on the failure of this validation

Specified by:
shouldQuitOnFail in interface Validation
Returns:
true if the validation process should quit, false otherwise
See Also:
Validation.shouldQuitOnFail()

setShouldQuitOnFail

public void setShouldQuitOnFail(boolean b)
Sets whether the validation hutch should quit on the failure of the entire validation case failing.

Parameters:
b -

stageValidation

public boolean stageValidation(AttributedDocumentEvent event)
Description copied from interface: Validation
Stages the execution of a Validation

Specified by:
stageValidation in interface Validation
Parameters:
event - the event the validate
Returns:
the boolean result of the staged Validation
See Also:
Validation.stageValidation(org.kuali.kfs.sys.document.validation.event.AttributedDocumentEvent)

grabDocumentAndLineForValidationFromEvent

protected void grabDocumentAndLineForValidationFromEvent(AttributedDocumentEvent event)
Using the parameter property names set, finds the accounting document and accounting line to be validate from the property.

Parameters:
event - the event to take properties from

updateValidationsWithParameters

protected void updateValidationsWithParameters()
Updates the child validations with accounting document and accounting line information.


validate

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

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

getLineAmountValidation

public Validation getLineAmountValidation()
Gets the lineAmountValidation attribute.

Returns:
Returns the lineAmountValidation.

setLineAmountValidation

public void setLineAmountValidation(Validation lineAmountValidation)
Sets the lineAmountValidation attribute value.

Parameters:
lineAmountValidation - The lineAmountValidation to set.

getLineCheckValidation

public Validation getLineCheckValidation()
Gets the lineCheckValidation attribute.

Returns:
Returns the lineCheckValidation.

setLineCheckValidation

public void setLineCheckValidation(Validation lineCheckValidation)
Sets the lineCheckValidation attribute value.

Parameters:
lineCheckValidation - The lineCheckValidation to set.

getLineValuesAllowedValidation

public Validation getLineValuesAllowedValidation()
Gets the lineValuesAllowedValidation attribute.

Returns:
Returns the lineValuesAllowedValidation.

setLineValuesAllowedValidation

public void setLineValuesAllowedValidation(Validation lineValuesAllowedValidation)
Sets the lineValuesAllowedValidation attribute value.

Parameters:
lineValuesAllowedValidation - The lineValuesAllowedValidation to set.


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