javaMethodPrimitive

The <javaMethodPrimitive> element specifies the return value of the method or constructor as a primitive type, such as int.

Description

The return Type variables in the Java language can have a primitive or reference data type. Possible alternative definitions of the <javaMethodPrimitive> element are the javaMethodClass, javaMethodInterface, javaMethodArray and javaVoid elements.

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
<javaMethod id="com.ibm.xtools.ras.impord.engine.tasks.IImportEngineTask">
   <apiName>getPriority</apiName>
   <shortdesc>Retrieve the priority of the task.</shortdesc>
   <javaMethodDetail>
      <javaMethodDef>
        <javaMethodAccess value="public"/>
        <javaReturn>
          <javaMethodPrimitive value="int"/>
          <apiDefNote>priority of the task in the range 0..100..</apiDefNote>
        </javaReturn>
     </javaMethodDef>
     <apiDesc>This corresponds to the priority attribute defined in the importEngineTask
         extension point</apiDesc>
   </javaMethodDetail>
</javaMethod>

Processing Expectations

Contained by

javaParam, javaReturn

Content model

no content

Inheritance

topic/state reference/state apiRef/apiType apiOperation/apiType