.. ******************************************************************************* * MetaFactory.io R2 * Technical Documentation * * File name : CIX_JCIE_Field.rst * Created by : Marnix Bochove (original text) * Updated by : Niels de Nies * * MetaFactory BV Amsterdam ******************************************************************************* .. include:: /metadata_include.txt .. include:: /inline-images.txt Field ===== is a child element of or and defines the generation of a mapped Java type property, such as int, Integer, String, date etc. Each field is a Java property of a Class or Interface. |Loupe S| See also: :ref:`Maps ` and :ref:`Mappings ` .. rubric:: Usage The name attribute is mandatory and indicates the name of the field. .. code-block:: xml :caption: Syntax :name: field-01 :linenos: ... name="" visibility="" access="" static="" final="" transient="" volatile="" code instruction base ... .. rubric:: Fields .. list-table:: **attributes of ** :widths: 20 80 :header-rows: 1 :class: tight-table * - Name - Details * - name - The name of the java field that is made (also called the field or property). * - visibility - Visibility of this field. Possible values are public, protected en private. * - access - The access field determines whether getters and setters should be created. Possible values are ro, rw and wo. With ro (readonly) only the getter is generated. With rw (readwrite) both getter and setter are generated. With wo (writeonly) only the setter is generated. If the access field is omitted, then neither getter nor setter is generated. * - static - true or false. Indicates whether or not the field should be defined static. * - final - true or false. Indicates whether or not the field should be defined final. * - transient - true or false. Indicates whether or not the field should be defined as transient. * - volatile - true or false. Indicates whether or not the field should be defined volatile. * - code instruction base - |Loupe S| :ref:`Code instruction base `. .. rubric:: Sub elements .. list-table:: **sub elements of ** :widths: 15 70 15 :header-rows: 1 :class: tight-table * - Name - Details - Number * - apicommentline - Javadoc that is attached to this field. - 0 or 1 * - devcommentline - Commentary that is attached to this attribute. - 0 or 1 * - import - The value of this field is attached as an import statement to the class or interface in which this attribute is defined. - 0 or 1 * - annotation - Annotation defined for the attribute. - 0 or more * - datatype - |Question S| - 0 or 1 * - body - The contents of the field. - 0 or 1 * - getter_body - |Question S| - 0 or 1 * - setter_body - |Question S| - 0 or 1 * - annotation_getter - |Question S| - 0 or 1 * - annotation_setter - |Question S| - 0 or 1