public class AccountingLineCheckValidationHutch extends Object implements Validation
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
AccountingLineCheckValidationHutch() |
Modifier and Type | Method and Description |
---|---|
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
|
protected Validation lineAmountValidation
protected Validation lineCheckValidation
protected Validation lineValuesAllowedValidation
protected String accountingDocumentParameterPropertyName
protected String accountingLineParameterPropertyName
protected AccountingDocument accountingDocumentForValidation
protected AccountingLine accountingLineForValidation
protected boolean quitOnFail
public AccountingLineCheckValidationHutch()
public boolean shouldQuitOnFail()
Validation
shouldQuitOnFail
in interface Validation
Validation.shouldQuitOnFail()
public void setShouldQuitOnFail(boolean b)
b
- public boolean stageValidation(AttributedDocumentEvent event)
Validation
stageValidation
in interface Validation
event
- the event the validateValidation.stageValidation(org.kuali.ole.sys.document.validation.event.AttributedDocumentEvent)
protected void grabDocumentAndLineForValidationFromEvent(AttributedDocumentEvent event)
event
- the event to take properties fromprotected void updateValidationsWithParameters()
public boolean validate(AttributedDocumentEvent event)
Validation
validate
in interface Validation
Validation.validate(org.kuali.ole.sys.document.validation.event.AttributedDocumentEvent)
public Validation getLineAmountValidation()
public void setLineAmountValidation(Validation lineAmountValidation)
lineAmountValidation
- The lineAmountValidation to set.public Validation getLineCheckValidation()
public void setLineCheckValidation(Validation lineCheckValidation)
lineCheckValidation
- The lineCheckValidation to set.public Validation getLineValuesAllowedValidation()
public void setLineValuesAllowedValidation(Validation lineValuesAllowedValidation)
lineValuesAllowedValidation
- The lineValuesAllowedValidation to set.Copyright © 2004–2014 The Kuali Foundation. All rights reserved.