Enum HtmlFormat

java.lang.Object
java.lang.Enum<HtmlFormat>
org.apache.juneau.html.annotation.HtmlFormat
All Implemented Interfaces:
Serializable, Comparable<HtmlFormat>, java.lang.constant.Constable

public enum HtmlFormat extends Enum<HtmlFormat>
Identifies possible values for the Html.format() annotation.
See Also:
  • Enum Constant Details

    • PLAIN_TEXT

      public static final HtmlFormat PLAIN_TEXT
      Object is serialized to a String using the toString() method and written directly to output.
      Useful when you want to serialize custom HTML.
    • HTML

      public static final HtmlFormat HTML
      Object is serialized to HTML.
      This is the default value for serialization.
    • HTML_CDC

      public static final HtmlFormat HTML_CDC
      Object is serialized to HTML, use comma-delimited format instead of list.
    • HTML_SDC

      public static final HtmlFormat HTML_SDC
      Object is serialized to HTML, use space-delimited format instead of list.
    • XML

      public static final HtmlFormat XML
      Object is serialized to XML.
      Useful when creating beans that model HTML elements.
  • Method Details

    • values

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

      public static HtmlFormat valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null