|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.sys.document.validation.ParameterizedValidation
org.kuali.kfs.sys.document.validation.GenericValidation
org.kuali.kfs.sys.document.validation.impl.RequiredAccountingLinesCountValidation
public class RequiredAccountingLinesCountValidation
GenericValidation to check if the required number of accounting lines in a given accounting line group has been met
Field Summary | |
---|---|
protected String |
accountingLineGroupPropertyName
|
protected String |
errorMessageName
|
Constructor Summary | |
---|---|
RequiredAccountingLinesCountValidation()
|
Method Summary | |
---|---|
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. |
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 |
Field Detail |
---|
protected String accountingLineGroupPropertyName
protected String errorMessageName
Constructor Detail |
---|
public RequiredAccountingLinesCountValidation()
Method Detail |
---|
public boolean validate(AttributedDocumentEvent event)
org.kuali.kfs.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |