Class AndGroupValidatorModelHandler
java.lang.Object
ch.tocco.nice2.validate.api.reader.handlers.validation.AbstractValidatorModelHandler<AndGroupValidator>
ch.tocco.nice2.validate.api.reader.handlers.validation.GroupValidatorModelHandler<AndGroupValidator>
ch.tocco.nice2.validate.api.reader.handlers.validation.AndGroupValidatorModelHandler
- All Implemented Interfaces:
ValidatorReceivable
Handles the reading of the and-group validations group tag.
Also there is an implicit and-group inside the validations tag. If this handler is for the implicit group then the isPrimary flag is set.
-
Field Summary
Fields inherited from class ch.tocco.nice2.validate.api.reader.handlers.validation.GroupValidatorModelHandler
fieldValidators
Fields inherited from class ch.tocco.nice2.validate.api.reader.handlers.validation.AbstractValidatorModelHandler
doContinue, level, name, negate, receiver, runOn, validator
-
Constructor Summary
ConstructorDescriptionAndGroupValidatorModelHandler
(ValidatorReceiver validatorReceiver, ValidatorHandlerContextFactory validatorHandlerContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Will be called after running theAbstractValidatorModelHandler.finish()
-Method.protected Class
<? extends AndGroupValidatorImpl> A concrete class which implmentsAbstractValidatorModelHandler
.protected Class
<AndGroupValidator> Return the Interface which represents this validator.Tells this handler that it's invoked as the primary 'dummy' group.Methods inherited from class ch.tocco.nice2.validate.api.reader.handlers.validation.GroupValidatorModelHandler
addValidator, beforeFinish, tag
Methods inherited from class ch.tocco.nice2.validate.api.reader.handlers.validation.AbstractValidatorModelHandler
createValidator, finish, setContinue, setLevel, setName, setNegate, setRunOn
-
Constructor Details
-
AndGroupValidatorModelHandler
public AndGroupValidatorModelHandler(ValidatorReceiver validatorReceiver, ValidatorHandlerContextFactory validatorHandlerContextFactory)
-
-
Method Details
-
setPrimary
Tells this handler that it's invoked as the primary 'dummy' group. Setting this as constructor param is a bad idea; only one constructor is permitted. -
getImplClass
Description copied from class:AbstractValidatorModelHandler
A concrete class which implmentsAbstractValidatorModelHandler
. Expects a public-constructor which takes the Validatable.- Specified by:
getImplClass
in classAbstractValidatorModelHandler<AndGroupValidator>
- Returns:
- the class
-
getInterface
Description copied from class:AbstractValidatorModelHandler
Return the Interface which represents this validator. This interface is normallyAbstractValidatorModelHandler
- Specified by:
getInterface
in classAbstractValidatorModelHandler<AndGroupValidator>
- Returns:
- interface-class
-
afterFinish
Description copied from class:AbstractValidatorModelHandler
Will be called after running theAbstractValidatorModelHandler.finish()
-Method. TheAbstractValidatorModelHandler.validator
object is ready now, so it's the place to assign validator-specific properties read from xml to it.- Specified by:
afterFinish
in classAbstractValidatorModelHandler<AndGroupValidator>
- Throws:
ModelBuildException
-