play.data.validation
Annotation Type Constraints.Pattern


@Target(value=FIELD)
@Retention(value=RUNTIME)
@Constraint(validatedBy=Constraints.PatternValidator.class)
public static @interface Constraints.Pattern

Defines a pattern constraint for a string field.


Required Element Summary
 java.lang.String value
           
 
Optional Element Summary
 java.lang.Class<?>[] groups
           
 java.lang.String message
           
 java.lang.Class<? extends javax.validation.Payload>[] payload
           
 

Element Detail

value

public abstract java.lang.String value

message

public abstract java.lang.String message
Default:
"error.email"

groups

public abstract java.lang.Class<?>[] groups
Default:
{}

payload

public abstract java.lang.Class<? extends javax.validation.Payload>[] payload
Default:
{}