Enum Class BlockType

java.lang.Object
java.lang.Enum<BlockType>
com.teamten.markdown.BlockType
All Implemented Interfaces:
Serializable, Comparable<BlockType>, Constable

public enum BlockType extends Enum<BlockType>
Describes the type of the block (body, header).
  • Enum Constant Details

    • BODY

      public static final BlockType BODY
    • BLOCK_QUOTE

      public static final BlockType BLOCK_QUOTE
    • PART_HEADER

      public static final BlockType PART_HEADER
    • CHAPTER_HEADER

      public static final BlockType CHAPTER_HEADER
    • MINOR_SECTION_HEADER

      public static final BlockType MINOR_SECTION_HEADER
    • MINOR_HEADER

      public static final BlockType MINOR_HEADER
    • NUMBERED_LIST

      public static final BlockType NUMBERED_LIST
    • BULLET_LIST

      public static final BlockType BULLET_LIST
    • CODE

      public static final BlockType CODE
    • OUTPUT

      public static final BlockType OUTPUT
    • INPUT

      public static final BlockType INPUT
    • POETRY

      public static final BlockType POETRY
    • SIGNATURE

      public static final BlockType SIGNATURE
    • SEPARATOR

      public static final BlockType SEPARATOR
    • VERTICAL_SPACE

      public static final BlockType VERTICAL_SPACE
    • CAPTION

      public static final BlockType CAPTION
    • NEW_PAGE

      public static final BlockType NEW_PAGE
    • ODD_PAGE

      public static final BlockType ODD_PAGE
    • HALF_TITLE_PAGE

      public static final BlockType HALF_TITLE_PAGE
    • TITLE_PAGE

      public static final BlockType TITLE_PAGE
    • TABLE_OF_CONTENTS

      public static final BlockType TABLE_OF_CONTENTS
    • INDEX

      public static final BlockType INDEX
  • Method Details

    • values

      public static BlockType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BlockType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isConsole

      public boolean isConsole()
      Whether this represents what you might see on a console.