Enum Class AutolinkType

java.lang.Object
java.lang.Enum<AutolinkType>
org.commonmark.ext.autolink.AutolinkType
All Implemented Interfaces:
Serializable, Comparable<AutolinkType>, Constable

public enum AutolinkType extends Enum<AutolinkType>
The types of strings that can be automatically turned into links.
  • Enum Constant Details

    • URL

      public static final AutolinkType URL
      URL such as http://example.com
    • EMAIL

      public static final AutolinkType EMAIL
      Email address such as foo@example.com
    • WWW

      public static final AutolinkType WWW
      URL such as www.example.com
  • Constructor Details

    • AutolinkType

      private AutolinkType()
  • Method Details

    • values

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