Class SocialSecurityNumberModelHandler
java.lang.Object
ch.tocco.nice2.validate.api.reader.handlers.validation.AbstractValidatorModelHandler<SocialSecurityNrValidator>
ch.tocco.nice2.validate.impl.reader.handlers.validation.SocialSecurityNumberModelHandler
public class SocialSecurityNumberModelHandler
extends AbstractValidatorModelHandler<SocialSecurityNrValidator>
XML reader for the SocialSecurityNumber
SocialSecurityNrValidator
validator.
Examples
<field name="social_security_number" type="string">
<validations>
<social-security-number/>
</validations>
</field>
-
Field Summary
Fields inherited from class ch.tocco.nice2.validate.api.reader.handlers.validation.AbstractValidatorModelHandler
doContinue, level, name, negate, receiver, runOn, validator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final void
Will be called after running theAbstractValidatorModelHandler.finish()
-Method.protected final void
Will be called before running theAbstractValidatorModelHandler.finish()
-Method.protected Class
<? extends SocialSecurityNrValidator> A concrete class which implmentsAbstractValidatorModelHandler
.protected Class
<SocialSecurityNrValidator> Return the Interface which represents this validator.Methods inherited from class ch.tocco.nice2.validate.api.reader.handlers.validation.AbstractValidatorModelHandler
createValidator, finish, setContinue, setLevel, setName, setNegate, setRunOn
-
Constructor Details
-
SocialSecurityNumberModelHandler
-
-
Method Details
-
beforeFinish
protected final void beforeFinish()Description copied from class:AbstractValidatorModelHandler
Will 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:
beforeFinish
in classAbstractValidatorModelHandler<SocialSecurityNrValidator>
-
afterFinish
protected final void 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<SocialSecurityNrValidator>
-
getImplClass
Description copied from class:AbstractValidatorModelHandler
A concrete class which implmentsAbstractValidatorModelHandler
. Expects a public-constructor which takes the Validatable.- Specified by:
getImplClass
in classAbstractValidatorModelHandler<SocialSecurityNrValidator>
- 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<SocialSecurityNrValidator>
- Returns:
- interface-class
-