javaFieldPrimitive

The <javaFieldPrimitive> element specifies within the Data Type declaration that the field must have a value of the specified primitive type, such as int.

Description

The variables in the Java language can have a primitive or reference data type. Arrays, classes, and interfaces are reference types and represented by the <javaFieldClass> and <javaFieldInterface> elements. In contrast, the value of a reference type variable is a reference to the actual value or set of values represented by the variable. This element has the following predefined attributes: name ="type" and value ="boolean | byte | char | double | float | int | long | short" .

Example

Click on the following link to open the Java API topic type example in
<javaField id="com.ibm.xtools.ras.impord.engine.tasks.IImportEngineTask">
   <apiName>PRIORITY_MAX</apiName>
   <shortDesc>The maximum value of the priority attribute.</shortDesc>
   <javaFieldDetail>
      <javaFieldDef>
         <javaFinalField/>
         <javaStaticField/>
         <javaFieldAccess value="public" />
         <javaFieldPrimitive name=”type” value=”int”/>
      </javaFieldDef>
   </javaFieldDetail>
   <related-links>
       <link href=”http://java.sun.com/values.html#PRIORITY_MAX”
            format=”html” scope=”external”>
           <linktext>Constant Field Values</linktext>
       </link>
    </related-links>
</javaField>

Processing Expectations

Contained by

javaFieldDef

Content model

no content

Inheritance

topic/state reference/state apiRef/apiType apiValue/apiType