|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.sys.document.validation.impl.CompositeValidation
public class CompositeValidation
This validation represents a hiearchy of validations
| Field Summary | |
|---|---|
protected boolean |
shouldQuitOnFail
|
protected List<Validation> |
subValidations
|
| Constructor Summary | |
|---|---|
CompositeValidation()
|
|
| Method Summary | |
|---|---|
List<Validation> |
getValidations()
Returns the List of validations to test |
void |
setQuitOnFail(boolean shouldQuitOnFail)
Sets the shouldQuitOnFail attribute value. |
void |
setValidations(List<Validation> validations)
Sets the List of validations to test |
boolean |
shouldQuitOnFail()
Gets the shouldQuitOnFail attribute. |
boolean |
stageValidation(AttributedDocumentEvent event)
Just call validate! |
boolean |
validate(AttributedDocumentEvent event)
Validates each sub-validation in turn, returning the cumulative effect of each |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<Validation> subValidations
protected boolean shouldQuitOnFail
| Constructor Detail |
|---|
public CompositeValidation()
| Method Detail |
|---|
public boolean validate(AttributedDocumentEvent event)
validate in interface Validationorg.kuali.kfs.rules.Validation#validate(java.lang.Object[])public boolean stageValidation(AttributedDocumentEvent event)
stageValidation in interface Validationevent - the event the validate
Validation.stageValidation(org.kuali.kfs.sys.document.validation.event.AttributedDocumentEvent)public List<Validation> getValidations()
public void setValidations(List<Validation> validations)
validations - a List of validations to test againstpublic boolean shouldQuitOnFail()
shouldQuitOnFail in interface Validationpublic void setQuitOnFail(boolean shouldQuitOnFail)
shouldQuitOnFail - The shouldQuitOnFail to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||