net.sf.oval.constraint
Annotation Type AssertFalse


@Documented
@Retention(value=RUNTIME)
@Target(value={FIELD,PARAMETER,METHOD})
@Constraint(checkWith=AssertFalseCheck.class)
public @interface AssertFalse

Check if the value is false.

Note: This constraint is also satisfied when the value to validate is null, therefore you might also need to specified @NotNull

Author:
Sebastian Thomschke

Optional Element Summary
 String errorCode
          error code passed to the ConstraintViolation object
 String message
          message to be used for constructing the ConstraintViolation object
 String[] profiles
          The associated constraint profiles.
 int severity
          severity passed to the ConstraintViolation object
 

errorCode

public abstract String errorCode
error code passed to the ConstraintViolation object

Default:
"net.sf.oval.constraints.AssertFalse"

message

public abstract String message
message to be used for constructing the ConstraintViolation object

See Also:
ConstraintViolation
Default:
"net.sf.oval.constraints.AssertFalse.violated"

profiles

public abstract String[] profiles
The associated constraint profiles.

Default:
{}

severity

public abstract int severity
severity passed to the ConstraintViolation object

Default:
0


Copyright © 2008 The OVal Development Team. All Rights Reserved.