javax.validation
Annotation Type MethodValidated


@Target(value={METHOD,TYPE})
@Retention(value=RUNTIME)
public @interface MethodValidated

Marker for a type or method indicating in which way method-level constraints shall be validated upon invocation of the given method or any methods of the given type.

Author:
Gunnar Morling

Optional Element Summary
 Class<?>[] groups
          Returns the group(s) to validate.
 MethodValidated.ValidationMode validationMode
          Returns the validation mode.
 

groups

public abstract Class<?>[] groups
Returns the group(s) to validate. Defaults to Default.

Returns:
The group(s) to validate.
Default:
{}

validationMode

public abstract MethodValidated.ValidationMode validationMode
Returns the validation mode. Defaults to MethodValidated.ValidationMode.ALL.

Returns:
The validation mode.
Default:
javax.validation.MethodValidated.ValidationMode.ALL


Copyright © 2007-2012. All Rights Reserved.