public class RequiredAccountingLinesCountValidation extends GenericValidation
| Modifier and Type | Field and Description |
|---|---|
protected String |
accountingLineGroupPropertyName |
protected String |
errorMessageName |
| Constructor and Description |
|---|
RequiredAccountingLinesCountValidation() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
discoverGroupTitle(AccountingDocument document)
Returns the title of the given accounting line group on the document
|
protected Method |
discoverGroupTitleMethod(AccountingDocument document)
Looks up what should be the method on the AccountingDocument class that returns the group title
|
AccountingDocument |
getAccountingDocumentForValidation()
Gets the accountingDocumentForValidation attribute.
|
String |
getAccountingLineGroupName()
Gets the accountingLineGroupName attribute.
|
int |
getMinimumNumber()
Gets the minimumNumber attribute.
|
void |
setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
Sets the accountingDocumentForValidation attribute value.
|
void |
setAccountingLineGroupName(String accountingLineGroupName)
Sets the accountingLineGroupName attribute value.
|
void |
setMinimumNumber(int minimumNumber)
Sets the minimumNumber attribute value.
|
boolean |
validate(AttributedDocumentEvent event)
Checks that the number of accounting lines in the accounting line group (named by the accountingLineGroupPropertyName property)
is greater than the set minimum number of accounting lines.
|
setQuitOnFail, shouldQuitOnFail, stageValidationgetParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterPropertiesprotected String accountingLineGroupPropertyName
protected String errorMessageName
public RequiredAccountingLinesCountValidation()
public boolean validate(AttributedDocumentEvent event)
org.kuali.ole.sys.document.validation.GenericValidation#validate(java.lang.Object[])protected String discoverGroupTitle(AccountingDocument document)
protected Method discoverGroupTitleMethod(AccountingDocument document)
public String getAccountingLineGroupName()
public void setAccountingLineGroupName(String accountingLineGroupName)
accountingLineGroupName - The accountingLineGroupName to set.public int getMinimumNumber()
public void setMinimumNumber(int minimumNumber)
minimumNumber - The minimumNumber to set.public AccountingDocument getAccountingDocumentForValidation()
public void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
accountingDocumentForValidation - The accountingDocumentForValidation to set.Copyright © 2004–2014 The Kuali Foundation. All rights reserved.