colesico.framework.dslvalidator.commands.ForEachChain Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of colesico-validation Show documentation
Show all versions of colesico-validation Show documentation
Colesico framework data bean validation assistant and simple dsl validator
package colesico.framework.dslvalidator.commands;
import colesico.framework.dslvalidator.ValidationContext;
public class ForEachChain extends AbstractChain {
@Override
public void execute(ValidationContext context) {
Iterable values = context.getValue();
int index = 0;
for (Object val : values) {
ValidationContext childContext = ValidationContext.ofChild(context, context.getSubject() + '[' + (index++) + ']', val);
executeCommands(childContext);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy