org.apache.openjpa.example.gallery.constraint
Annotation Type ImageConstraint


@Documented
@Constraint(validatedBy=ImageValidator.class)
@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface ImageConstraint

Type-level annotation used to specify an image constraint. Uses ImageValidator to perform the validation.


Optional Element Summary
 Class<?>[] groups
           
 String message
           
 Class<? extends Payload>[] payload
           
 ImageType[] value
           
 

message

public abstract String message
Default:
"Image data is not a supported format."

groups

public abstract Class<?>[] groups
Default:
{}

payload

public abstract Class<? extends Payload>[] payload
Default:
{}

value

public abstract ImageType[] value
Default:
{org.apache.openjpa.example.gallery.ImageType.GIF, org.apache.openjpa.example.gallery.ImageType.JPEG}


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.