Enum Class LineType

java.lang.Object
java.lang.Enum<LineType>
com.github.rjeschke.txtmark.LineType
All Implemented Interfaces:
Serializable, Comparable<LineType>, Constable

enum LineType extends Enum<LineType>
Line type enumeration.
  • Enum Constant Details

    • EMPTY

      public static final LineType EMPTY
      Empty line.
    • OTHER

      public static final LineType OTHER
      Undefined content.
    • HEADLINE

      public static final LineType HEADLINE
      A markdown headline.
    • HEADLINE1

      public static final LineType HEADLINE1
    • HEADLINE2

      public static final LineType HEADLINE2
    • CODE

      public static final LineType CODE
      A code block line.
    • ULIST

      public static final LineType ULIST
      A list.
    • OLIST

      public static final LineType OLIST
    • BQUOTE

      public static final LineType BQUOTE
      A block quote.
    • HR

      public static final LineType HR
      A horizontal ruler.
    • XML

      public static final LineType XML
      Start of a XML block.
    • FENCED_CODE

      public static final LineType FENCED_CODE
      Fenced code block start/end
  • Constructor Details

    • LineType

      private LineType()
  • Method Details

    • values

      public static LineType[] 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 LineType 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