The <javaMethodAccess> element within the MethodModifiersopt declarations provides the access modifiers public, protected, or private.
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.
<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>