Class DecimalDigitsModelHandler
java.lang.Object
ch.tocco.nice2.validate.api.reader.handlers.validation.AbstractValidatorModelHandler<DecimalDigitsValidator>
ch.tocco.nice2.validate.impl.reader.handlers.validation.DecimalDigitsModelHandler
public class DecimalDigitsModelHandler
extends AbstractValidatorModelHandler<DecimalDigitsValidator>
XML reader for the decimal-digits
DecimalDigitsValidator validator.-
Field Summary
Fields inherited from class ch.tocco.nice2.validate.api.reader.handlers.validation.AbstractValidatorModelHandler
doContinue, level, name, negate, receiver, runOn, validator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidWill be called after running theAbstractValidatorModelHandler.finish()-Method.protected voidWill be called before running theAbstractValidatorModelHandler.finish()-Method.protected Class<? extends DecimalDigitsValidator> A concrete class which implmentsAbstractValidatorModelHandler.protected Class<DecimalDigitsValidator> Return the Interface which represents this validator.voidsetPostpoint(Integer postpoint) voidsetPrepoint(Integer prepoint) Methods inherited from class ch.tocco.nice2.validate.api.reader.handlers.validation.AbstractValidatorModelHandler
createValidator, finish, setContinue, setLevel, setName, setNegate, setRunOn
-
Constructor Details
-
DecimalDigitsModelHandler
-
-
Method Details
-
setPostpoint
@Required @Attribute("post-point") public void setPostpoint(Integer postpoint) throws ModelBuildException - Throws:
ModelBuildException
-
setPrepoint
-
beforeFinish
Description copied from class:AbstractValidatorModelHandlerWill be called before running theAbstractValidatorModelHandler.finish()-Method. It is a good place for validating properties read from xml since all is read at this point.- Specified by:
beforeFinishin classAbstractValidatorModelHandler<DecimalDigitsValidator>- Throws:
ModelBuildException
-
afterFinish
protected final void 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<DecimalDigitsValidator>
-
getImplClass
Description copied from class:AbstractValidatorModelHandlerA concrete class which implmentsAbstractValidatorModelHandler. Expects a public-constructor which takes the Validatable.- Specified by:
getImplClassin classAbstractValidatorModelHandler<DecimalDigitsValidator>- Returns:
- the class
-
getInterface
Description copied from class:AbstractValidatorModelHandlerReturn the Interface which represents this validator. This interface is normallyAbstractValidatorModelHandler- Specified by:
getInterfacein classAbstractValidatorModelHandler<DecimalDigitsValidator>- Returns:
- interface-class
-