Commits

rainerh  committed 9f44eb0

WW-1006 annotation docs

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@693e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 0680f9a

Comments (0)

Files changed (2)

File tiger/src/java/com/opensymphony/xwork/conversion/annotations/Conversion.java

 
 /**
  * <!-- START SNIPPET: description -->
- * <p/>The Conversion annotation must be applied at Type level.
+ * <p/>A marker annotation for type conversions at Type level.
  * <!-- END SNIPPET: description -->
  *
- * <p/> <u>Annotation parameters:</u>
- *
- * <!-- START SNIPPET: parameters -->
- *
- * <ul>
+ * <p/> <u>Annotation usage:</u>
  *
- * <li>conversion (optional) - used for Type Conversions applied at Type level.</li>
+ * <!-- START SNIPPET: usage -->
+ * <p/>The Conversion annotation must be applied at Type level.
+ * <!-- END SNIPPET: usage -->
  *
- * </ul>
+ * <p/> <u>Annotation parameters:</u>
  *
+ * <!-- START SNIPPET: parameters -->
+ * <table>
+ * <thead>
+ * <tr>
+ * <th>Parameter</th>
+ * <th>Required</th>
+ * <th>Default</th>
+ * <th>Description</th>
+ * </tr>
+ * </thead>
+ * <tbody>
+ * <tr>
+ * <td>conversion</td>
+ * <td>no</td>
+ * <td>&nbsp;</td>
+ * <td>used for Type Conversions applied at Type level.</td>
+ * </tr>
+ * </tbody>
+ * </table>
  * <!-- END SNIPPET: parameters -->
  *
  * <p/> <u>Example code:</u>

File tiger/src/java/com/opensymphony/xwork/conversion/annotations/TypeConversion.java

  * @Conversion()
  * public class ConversionAction implements Action {
  *
- *  private String convertInt;
+ *   private String convertInt;
  *
- * private String convertDouble;
- * private List users = null;
+ *   private String convertDouble;
+ *   private List users = null;
  *
- * private HashMap keyValues = null;
+ *   private HashMap keyValues = null;
  *
  *   @TypeConversion(type = ConversionType.APPLICATION, converter = "com.opensymphony.xwork.util.XWorkBasicConverter")
  *   public void setConvertInt( String convertInt ) {