Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## com.opensymphony.xwork2.util
Annotation Type Element

    @Target(value=FIELD)
    @Retention(value=RUNTIME)
    public @interface Element

Sets the Element for type conversion.

Annotation usage:

The Element annotation must be applied at field level.

Annotation parameters:

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

Example code:

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

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

Version:
  $Id: Element.java 1200 2006-11-16 21:15:31 +0100 (Do, 16 Nov 2006) rainerh $
Author:
  Rainer Hermanns

Optional Element Summary
`Class` | `value` The Element value.

### value

    public abstract Class value

  The Element value. Defaults to `java.lang.Object.class`.

  Default:
    java.lang.Object.class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2007 OpenSymphony. All Rights Reserved.