Annotation Type Validate

public @interface Validate

Used to attach validation constraints directly to a property (either the getter or the setter method). The annotation value is a comma separated list of validation constraints, each one identifying a validator type (such as "required", "minlength") and optionally, a constraint value. Most validators need a constraint value, which is separated from the type by an equals size (i.e., "maxlength=30"). In addition, the value may include validator macros.

May be placed on any getter or setter method, or on the matching field.

See Also:

Required Element Summary
 String value

Element Detail


public abstract String value

Copyright © 2003-2012 The Apache Software Foundation.