javaFinalClass

The <javaFinalClass> element provides a flag within the ClassModifiersopt for classes that cannot be subclassed.

Description

A class can be declared final if its definition is complete and no subclasses are required. A class cannot be declared as both abstract and final. The <javaFinalClass> element should not be used with the <javaAbstractClass> element. This element is the specialization of the apiQualifier element from the generic topic types.

Example

Click on the following link to open the Java API topic type example in
<javaClass id="com.ibm.xtools.viz.ui.UMLDiagramResourceUtil">
   <apiName>UMLDiagramResourceUtil</apiName>
   <shortdesc>Represents an utility class that exposes UML diagram resource lifecycle
        operations and provides access to the modeling platform.</shortdesc>
   <javaClassDetail>
	  <javaClassDef>
		<javaFinalClass/>
        <javaClassAccess value="public"/>
        <javaBaseClass href="http://java.sun.com/../Object.html" format=”html” 
         scope=”external”>java.lang.Object</javaBaseClass>
     </javaClassDef>
	 <apiDesc>API clients should not instantiate this class.</apiDesc>
   </javaClassDetail>
</javaClass>

Processing Expectations

Contained by

javaClassDef

Content model

no content

Inheritance

topic/state reference/state apiRef/apiQualifier apiClassifier/apiQualifier