javaTransientField

The <javaTransientField> element declares within the FieldModifiersopt that the fields introduced by the declaration are marked transient fields.

Description

This element specifies that the value of the field should not be serialized. The variables can be marked transient to indicate that they are not part of the persistent state of an object. Possible alternative definitions of the FieldModifier declaration are the <javaStaticField>, <javaFinalField>, and <javaVolatileField> elements. The <javaSynchronizedMethod> element has the following predefined attributes:name ="transient" and value ="transient".

Example

Click on the following link to open the Java API topic type example in
<javaField id="javax.swing.plaf.TabbedPaneUI">
   <apiName>calcRect</apiName>
   <shortDesc>
      A rectangle used for general layout calculations in order to
      avoid constructing many new rectangles automatically.
   </shortDesc>
   <javaFieldDetail>
      <javaFieldDef>
         <javaTransientField/>
         <javaFieldAccess value="protected"/>
         <javaFieldClass href=”http://java.sun.com/…/awt/Rectangle.html”
              format=”html” scope=”external”>Rectangle</javaFieldClass>
      </javaFieldDef>
    </javaFieldDetail>
</javaField>

Processing Expectations

Contained by

javaFieldDef

Content model

no content

Inheritance

topic/state reference/state apiRef/apiQualifier apiValue/apiQualifier