001package com.plivo.api.validators; 002 003import java.lang.annotation.Retention; 004import java.lang.annotation.Target; 005 006import static java.lang.annotation.ElementType.FIELD; 007import static java.lang.annotation.ElementType.PARAMETER; 008import static java.lang.annotation.RetentionPolicy.RUNTIME; 009 010@Target({FIELD, PARAMETER}) 011@Retention(value = RUNTIME) 012public @interface UrlValues { 013 /** 014 * @return error message to return when validation fails 015 */ 016 String message() default "is not a valid URL"; 017 018 /** 019 * @return array of possible options 020 */ 021 String[] options() default {}; 022 023 /** 024 * @return caseSensitive of possible options 025 */ 026 boolean caseSensitive() default false; 027}