|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.validator.Rule
org.sapia.validator.CompositeRule
org.sapia.validator.rules.ForEach
public class ForEach
Aggregates one-to-many nested validatable(s), iterating over the items in a collection/iterator/array and passing each item to the validate method of the nested validatable(s).
Validatable,
Validatable.validate(ValidationContext)| Field Summary |
|---|
| Fields inherited from class org.sapia.validator.CompositeRule |
|---|
_stop |
| Constructor Summary | |
|---|---|
ForEach()
Constructor for ForEach. |
|
| Method Summary | |
|---|---|
void |
setAttribute(java.lang.String attr)
Sets the name of the accessor that will be used to retreive a collection or array to validate from the current object on the validation context's stack. |
void |
validate(ValidationContext ctx)
Validates this instance. |
| Methods inherited from class org.sapia.validator.CompositeRule |
|---|
addValidatable, createRuleSet, handleObject, setStop |
| Methods inherited from class org.sapia.validator.Rule |
|---|
createMessage, getErrorMessageFor, getErrorMessages, getId, initName, localName, onCreate, prefix, qualifiedName, setErrorMessages, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ForEach()
| Method Detail |
|---|
public void setAttribute(java.lang.String attr)
attr - the name of an accessor.public void validate(ValidationContext ctx)
Validatable
validate in interface Validatablevalidate in class CompositeRuleCompositeRule.validate(ValidationContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||