jdk/src/share/classes/com/sun/beans/decoder/FieldElementHandler.java
changeset 21278 ef8a3a2a72f2
parent 5506 202f599c92aa
child 23010 6dadb192ad81
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
    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  * &lt;field name="id"&gt;&lt;int&gt;0&lt;/int&gt;&lt;/field&gt;</pre>
    44  * &lt;field name="id"&gt;&lt;int&gt;0&lt;/int&gt;&lt;/field&gt;</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