com.google.code.validationframework.experimental.builder.context.resultcollectorvalidator
Class ResultHandlerContext<D,O>
java.lang.Object
com.google.code.validationframework.experimental.builder.context.resultcollectorvalidator.ResultHandlerContext<D,O>
- Type Parameters:
D - Type of data to be validated.
It can be, for instance, the type of data handled by a component, or the
type of the component itself.O - Type of validation result.
It can be, for instance, an enumeration or just a boolean.
public class ResultHandlerContext<D,O>
- extends Object
Context to add more rules and the first result handlers.
|
Constructor Summary |
ResultHandlerContext(List<com.google.code.validationframework.base.resulthandler.ResultCollector<?,D>> registeredResultCollectors,
List<com.google.code.validationframework.api.rule.Rule<Collection<D>,O>> registeredRules)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultHandlerContext
public ResultHandlerContext(List<com.google.code.validationframework.base.resulthandler.ResultCollector<?,D>> registeredResultCollectors,
List<com.google.code.validationframework.api.rule.Rule<Collection<D>,O>> registeredRules)
check
public ResultHandlerContext<D,O> check(com.google.code.validationframework.api.rule.Rule<Collection<D>,O> rule)
check
public ResultHandlerContext<D,O> check(com.google.code.validationframework.api.rule.Rule<Collection<D>,O>... rules)
check
public ResultHandlerContext<D,O> check(Collection<com.google.code.validationframework.api.rule.Rule<Collection<D>,O>> rules)
handleWith
public ValidatorContext<D,O> handleWith(com.google.code.validationframework.api.resulthandler.ResultHandler<O> resultHandler)
handleWith
public ValidatorContext<D,O> handleWith(com.google.code.validationframework.api.resulthandler.ResultHandler<O>... resultHandlers)
- Adds the first result handlers to the validator.
- Parameters:
resultHandlers - Result handlers to be added.
- Returns:
- Validator context allowing to add result handlers and to create the validator.
handleWith
public ValidatorContext<D,O> handleWith(Collection<com.google.code.validationframework.api.resulthandler.ResultHandler<O>> resultHandlers)
Copyright © 2013. All Rights Reserved.