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 GroupValidatorModelHandler
fieldValidatorsFields inherited from class AbstractValidatorModelHandler
doContinue, level, name, negate, receiver, runOn, validator -
Constructor Summary
ConstructorsConstructorDescriptionAndGroupValidatorModelHandler(ValidatorReceiver validatorReceiver, ValidatorHandlerContextFactory validatorHandlerContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidWill be called after running theAbstractValidatorModelHandler.finish()-Method.protected Class<? extends AndGroupValidatorImpl> A concrete class which implmentsT.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 GroupValidatorModelHandler
addValidator, beforeFinish, tagMethods inherited from class 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:AbstractValidatorModelHandlerA concrete class which implmentsT. Expects a public-constructor which takes the Validatable.- Specified by:
getImplClassin classAbstractValidatorModelHandler<AndGroupValidator>- Returns:
- the class
-
getInterface
Description copied from class:AbstractValidatorModelHandlerReturn the Interface which represents this validator. This interface is normallyT- Specified by:
getInterfacein classAbstractValidatorModelHandler<AndGroupValidator>- Returns:
- interface-class
-
afterFinish
Description copied from class:AbstractValidatorModelHandlerWill be called after running theAbstractValidatorModelHandler.finish()-Method. TheAbstractValidatorModelHandler.validatorobject is ready now, so it's the place to assign validator-specific properties read from xml to it.- Specified by:
afterFinishin classAbstractValidatorModelHandler<AndGroupValidator>- Throws:
ModelBuildException
-