javaFieldClass

The <javaFieldClass> element specifies within the Data Type declaration that the final value of the field must be an object of a class.

Description

All variables in the Java language must have a data type. The Java language has two two major categories of data types: primitive and reference. If a final variable holds a reference to a class, then the state of the object can be changed by operations on the object, but the variable will always refer to the same object.

The keyref attribute must provide a unique key such as a fully qualified class name for the named API item.

Example

Click on the following link to open the Java API topic type example in
<javaField id="com.ibm.xtools.ras.impord.engine.tasks.UMLDiagramResourceUtil.TYPE_EXTRACT">
   <apiName>TYPE_EXTRACT</apiName>
   <shortdesc>RAS import task type "Extract".</shortdesc>
   <javaFieldDetail>
      <javaFieldDef>
        <javaStaticField/>
        <javaFieldAccess value="public"/>
        <javaFieldClass href="http:">String</javaFieldClass>
      </javaFieldDef>
   </javaFieldDetail>
   <related-links>
     <link href="http://java.sun.com/../constant-values.html#ATTRIBUTE_NODE" 
        format="html" scope="external">
        <linktext>Constant Field Values</linktext>
     </link>
   </related-links>
</javaField>

Processing Expectations

Contained by

javaFieldDef

Content model

(text data) (any number)

Inheritance

topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier