equal
deleted
inserted
replaced
41 * This element defines setter if it contains one argument. |
41 * This element defines setter if it contains one argument. |
42 * It does not return the value of the field in this case. |
42 * It does not return the value of the field in this case. |
43 * For example:<pre> |
43 * For example:<pre> |
44 * <field name="id"><int>0</int></field></pre> |
44 * <field name="id"><int>0</int></field></pre> |
45 * is equivalent to {@code id = 0} in Java code. |
45 * is equivalent to {@code id = 0} in Java code. |
46 * <p>The following atributes are supported: |
46 * <p>The following attributes are supported: |
47 * <dl> |
47 * <dl> |
48 * <dt>name |
48 * <dt>name |
49 * <dd>the field name |
49 * <dd>the field name |
50 * <dt>class |
50 * <dt>class |
51 * <dd>the type is used for static fields only |
51 * <dd>the type is used for static fields only |
60 final class FieldElementHandler extends AccessorElementHandler { |
60 final class FieldElementHandler extends AccessorElementHandler { |
61 private Class<?> type; |
61 private Class<?> type; |
62 |
62 |
63 /** |
63 /** |
64 * Parses attributes of the element. |
64 * Parses attributes of the element. |
65 * The following atributes are supported: |
65 * The following attributes are supported: |
66 * <dl> |
66 * <dl> |
67 * <dt>name |
67 * <dt>name |
68 * <dd>the field name |
68 * <dd>the field name |
69 * <dt>class |
69 * <dt>class |
70 * <dd>the type is used for static fields only |
70 * <dd>the type is used for static fields only |