javaMethodAccess

The <javaMethodAccess> element within the MethodModifiersopt declarations provides the access modifiers public, protected, or private.

Description

The access modifiers of the method include the declarations for the public modifiers, such as public, protected, or private. The <javaMethodAccess> must not be used with the <javaAbstractMethod> element if you select the value attribute of the <javaMethodAccess> element to be private.

Example

Click on the following link to open the Java API topic type example in
<javaMethod id="com.ibm.xtools.getLabel">
   <apiName>getLabel</apiName>
   <shortdesc>Returns a short description of what the operation does.</shortdesc>
   <javaMethodDetail>
      <javaMethodDef>
         <javaFinalMethod/>
         <javaMethodAccess value="public"/>
         <javaReturn>
            <javaMethodClass href="http://java.sun.com/../String.html" format="html" scope="external">
               String
            </javaMethodClass>
            <apiDefNote>The operation's label</apiDefNote>
        </javaReturn>
      </javaMethodDef>
      <apiDesc>This label is used as a format parameter presented to users under
           the Edit > Undo and Edit > Redo menus.</apiDesc>
   </javaMethodDetail>
</javaMethod>

Processing Expectations

Contained by

javaConstructorDef, javaMethodDef

Content model

no content

Inheritance

topic/state reference/state apiRef/apiQualifier apiOperation/apiQualifier