org.hibernate.jsr303.tck.tests.xmlconfiguration.constraintdefinition
Annotation Type Length
@Documented
@Constraint(validatedBy=LengthValidator.class)
@Target(value={METHOD,FIELD,TYPE})
@Retention(value=RUNTIME)
public @interface Length
Validate that the string is between min and max included
- Author:
- Emmanuel Bernard, Hardy Ferentschik
min
public abstract int min
- Default:
- 0
max
public abstract int max
- Default:
- 2147483647
message
public abstract String message
- Default:
- "min length {min}. max length {max}."
groups
public abstract Class<?>[] groups
- Default:
- {}
payload
public abstract Class<? extends javax.validation.Payload>[] payload
- Default:
- {}
Copyright © 2008-2011. All Rights Reserved.