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

## com.opensymphony.xwork2.conversion.annotations
Annotation Type Conversion

    @Target(value=TYPE)
    @Retention(value=RUNTIME)
    public @interface Conversion

A marker annotation for type conversions at Type level.

Annotation usage: The Conversion annotation must be applied at Type level.

Annotation parameters:

Parameter | Required | Default | Description
--- | --- | --- | ---
conversion | no |  | used for Type Conversions applied at Type level.

Example code:

     @Conversion(
         conversions = {
              // key must be the name of a property for which converter should be used
              @TypeConversion(key = "date", converter = "org.demo.converter.DateConverter")
         }
     )
     public class ConversionAction implements Action {

         private Date date;

         public setDate(Date date) {
             this.date = date;
         }

         public Date getDate() {
             return date;
         }

     }

Version:
  $Id$
Author:
  Rainer Hermanns

Optional Element Summary
`TypeConversion[]` | `conversions` Allow Type Conversions being applied at Type level.

### conversions

    public abstract TypeConversion[] conversions

  Allow Type Conversions being applied at Type level.

  Default:
    {}

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

Copyright © 2000–2018 Apache Software Foundation. All rights reserved.