br.com.caelum.stella.hibernate.validator
Class StellaTituloEleitoralValidator
java.lang.Object
br.com.caelum.stella.hibernate.validator.StellaTituloEleitoralValidator
- All Implemented Interfaces:
- org.hibernate.validator.Validator<TituloEleitoral>
public class StellaTituloEleitoralValidator
- extends Object
- implements org.hibernate.validator.Validator<TituloEleitoral>
Valida a cadeia gerada através do método Object.toString() para
verificar se ela está de acordo com o padrão de Título Eleitoral.
- Author:
- Leonardo Bessa
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StellaTituloEleitoralValidator
public StellaTituloEleitoralValidator()
initialize
public void initialize(TituloEleitoral tituloEleitoral)
- Specified by:
initialize in interface org.hibernate.validator.Validator<TituloEleitoral>
- See Also:
Validator.initialize(java.lang.annotation.Annotation)
isValid
public boolean isValid(Object o)
- Specified by:
isValid in interface org.hibernate.validator.Validator<TituloEleitoral>
- See Also:
Validator.isValid(java.lang.Object)
Copyright © 2009 Caelum. All Rights Reserved.