headingLevel property
final
Indicates that this subtree represents a heading.
A value of 0 indicates that it is not a heading. The value should be a number between 1 and 6, indicating the hierarchical level as a heading.
Implementation
final int headingLevel;