play.data.validation
Annotation Type Match


@Retention(value=RUNTIME)
@Target(value={FIELD,PARAMETER})
@Constraint(checkWith=MatchCheck.class)
public @interface Match

This field must match the regexp. Message key: validation.match $1: field name $2: reference pattern


Required Element Summary
 String value
           
 
Optional Element Summary
 String message
           
 

Element Detail

value

public abstract String value

message

public abstract String message
Default:
"validation.match"


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly