org.sakaiproject.entitybroker.entityprovider.annotations
Annotation Type EntityContent


@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
public @interface EntityContent

Marks a getter method or field as the main content text for an entity, Example: the main text body for a blog entry or email, the main content of an article or posting, the convention is to run toString on the return from the "getContent" method or the value in the "content" field
NOTE: This annotation should only be used once in a class, the getter method must take no arguments and return an object

Author:
Aaron Zeckoski (aaron@caret.cam.ac.uk)



Copyright © 2007-2013 Sakai Project. All Rights Reserved.