Dashboard > XWork > ... > Annotations > Element Annotation
  XWork Log In View a printable version of the current page.  
  Element Annotation
Added by Rainer Hermanns, last edited by Rainer Hermanns on Dec 01, 2006
Labels: 
(None)

Sets the Element for type conversion.

Usage

The Element annotation must be applied at field or method level.

Parameters

Parameter Required Default Description
value no java.lang.Object.class The element property value.

Examples

// The key property for User objects within the users collection is the <code>userName</code> attribute.
@Element( value = com.acme.User )
private Map<Long, User> userMap;

@Element( value = com.acme.User )
public List<User> userList;

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators