javaMethodClass

The <javaMethodClass> element within the ResultType declaration identifies the name of the returned class when a method, constructor, or exception returns a class.

Description

A method declaration either specifies the type of value that the method returns or uses the keyword void to indicate that the method does not return a value. 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
<javaMethod id="com.ibm.xtools.ras.impord.engine.task.IImportEngineTask.getName"><?Pub Dtl?>
   <apiName>getName</apiName>
   <shortdesc>Retrieve the name of the task.</shortdesc>
   <javaMethodDetail>
     <javaMethodDef>
     <javaMethodAccess value="public"/>
     <javaReturn>
       <javaMethodClass href="http://java.sun.com/String.html" format="html" scope="external">
         String</javaMethodClass>
       <apiDefNote>name of the task.</apiDefNote>
     </javaReturn>
   </javaMethodDef>
   <apiDesc>This corresponds to the name  attribute defined in the importEngineTask
         extension point.</apiDesc>
  </javaMethodDetail>
</javaMethod>

Processing Expectations

Contained by

javaException, javaParam, javaReturn

Content model

(text data) (any number)

Inheritance

topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier