com.yahoo.parsec.constraint.validators.Msisdn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of parsec-constraint-validators Show documentation
Show all versions of parsec-constraint-validators Show documentation
The Parsec Libraries provides for web service build.
// Copyright 2016 Yahoo Inc.
// Licensed under the terms of the Apache license. Please see LICENSE.md file distributed with this work for terms.
package com.yahoo.parsec.constraint.validators;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* The javax.validation Msisdn annotation.
*/
@Target({ FIELD, METHOD, ANNOTATION_TYPE })
@Retention(RUNTIME)
@Constraint(validatedBy = MsisdnValidator.class)
public @interface Msisdn {
/**
* the default error message.
*
* @return the default error message
*/
String message() default "invalid Msisdn";
/**
* the class groups to apply for validation.
*
* @return array of validation groups
*/
Class>[] groups() default {
};
/**
* the annotation payload.
*
* @return array of Payload classes
*/
Class extends Payload>[] payload() default {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy