Closed monicavaldez closed 8 years ago
The attributes message
, messageResId
and sequence
are mandatory when you declare custom annotations.
@ValidateUsing(MobileNumberRule.class)
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface MobileNumber {
@StringRes int messageResId() default -1;
String message() default "Please enter a valid mobile phone number.";
int sequence() default -1;
}
I created a custom annotation for validating a mobile number:
ProfileValidator.class
MobileNumberRule.class
MobileNumber.class
I am not sure if this is the right way to file this issue, or if it is an issue even. But can you please tell me what should I do, etc.
Thanks!