br.com.caelum.stella.hibernate.validator
Class StellaNITValidator
java.lang.Object
br.com.caelum.stella.hibernate.validator.StellaNITValidator
- All Implemented Interfaces:
- org.hibernate.validator.Validator<NIT>
public class StellaNITValidator
- extends Object
- implements org.hibernate.validator.Validator<NIT>
Valida a cadeia gerada através do método Object.toString() para
verificar se ela está de acordo com o padrão de um NIT. O padrão NIT é o
mesmo utilizado no PIS, PASEP e o SUS.
- Author:
- Fabio Kung, Leonardo Bessa
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StellaNITValidator
public StellaNITValidator()
initialize
public void initialize(NIT nit)
- Specified by:
initialize in interface org.hibernate.validator.Validator<NIT>
- See Also:
Validator.initialize(java.lang.annotation.Annotation)
isValid
public boolean isValid(Object o)
- Specified by:
isValid in interface org.hibernate.validator.Validator<NIT>
- See Also:
Validator.isValid(java.lang.Object)
Copyright © 2009 Caelum. All Rights Reserved.