Class CMARichHeading


  • public class CMARichHeading
    extends CMARichBlock
    Defines a headline of the text.

    Can have an arbitrary level assigned, but useful probably between 1 and 6.

    • Field Summary

      • Fields inherited from class com.contentful.java.cma.model.rich.CMARichNode

        data
    • Constructor Summary

      Constructors 
      Constructor Description
      CMARichHeading​(int level)
      Create a heading block, describing a level elements deep nested heading.
    • Constructor Detail

      • CMARichHeading

        public CMARichHeading​(int level)
        Create a heading block, describing a level elements deep nested heading.
        Parameters:
        level - a number indicating the level of this heading.
    • Method Detail

      • getLevel

        public int getLevel()
        Returns:
        the current nesting level of this heading.