org.apache.openjpa.example.gallery.constraint
Annotation Type ImageContent
@Documented
@Constraint(validatedBy=ImageContentValidator.class)
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface ImageContent
Attribute-level annotation used to specify an image content constraint. Uses
ImageContentValidator to perform the validation.
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.