de.smartics.properties.tutorial.property.constraints
Annotation Type RealHappiness


@Target(value={METHOD,FIELD,ANNOTATION_TYPE})
@Retention(value=RUNTIME)
@Documented
@Constraint(validatedBy=RealHappinessValidator.class)
public @interface RealHappiness

A sample custom constraint for this tutorial.


Optional Element Summary
 Class<?>[] groups
          Support of validation groups.
 String message
          Returns the message key to be rendered, if the constraint has been violated.
 Class<? extends javax.validation.Payload>[] payload
          Support of payloads.
 

message

public abstract String message
Returns the message key to be rendered, if the constraint has been violated.

Defaults to returning "{de.smartics.properties.tutorial.property.constraints.RealHappiness.message}".

Default:
"{de.smartics.properties.tutorial.property.constraints.RealHappiness.message}"

groups

public abstract Class<?>[] groups
Support of validation groups.

Default:
{}

payload

public abstract Class<? extends javax.validation.Payload>[] payload
Support of payloads.

Default:
{}


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.