Fork me on GitHub
<< back to Core Developers Guide Edit on GitHub

Element Annotation

Sets the Element for type conversion.


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


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


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

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