public class CompositeValidation extends Object implements Validation
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
shouldQuitOnFail |
protected List<Validation> |
subValidations |
| Constructor and Description |
|---|
CompositeValidation() |
| Modifier and Type | Method and Description |
|---|---|
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
|
protected List<Validation> subValidations
protected boolean shouldQuitOnFail
public CompositeValidation()
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 validateValidation.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.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.