All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ag.orbia.common.javax.annotations.Cpf.kt Maven / Gradle / Ivy

package ag.orbia.common.javax.annotations

import ag.orbia.common.javax.validators.cpf.CpfValidator
import javax.validation.Constraint
import kotlin.reflect.KClass

/**
 * The annotated element must be a valid CPF.
 *
 * It ignores the formatting of the string. It only validates the CPF numbers.
 *
 * @since 1.0.0
 */
@Target(AnnotationTarget.FIELD)
@Retention(AnnotationRetention.RUNTIME)
@Constraint(validatedBy = [CpfValidator::class])
annotation class Cpf (
		val message: String = "CPF inválido",
		val groups: Array> = [],
		val payload: Array> = []
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy