Enum Class HtmlNamespaceExtension.Mode

java.lang.Object
java.lang.Enum<HtmlNamespaceExtension.Mode>
org.faceless.publisher.ext.HtmlNamespaceExtension.Mode
All Implemented Interfaces:
Serializable, Comparable<HtmlNamespaceExtension.Mode>, Constable
Enclosing class:
HtmlNamespaceExtension

public static enum HtmlNamespaceExtension.Mode extends Enum<HtmlNamespaceExtension.Mode>
Determines how namespaces are inferred in HTML.
  • Enum Constant Details

    • None

      public static final HtmlNamespaceExtension.Mode None
      No additional namespaces are added to HTML; it functions as specified
    • XMLNS

      public static final HtmlNamespaceExtension.Mode XMLNS
      Additional namespaces are added to HTML by the use of the "xmlns" prefix, exactly as with XML
    • Manual

      public static final HtmlNamespaceExtension.Mode Manual
      Additional namespaces are added to HTML by mapping known elements to a particular namespace
    • Auto

      public static final HtmlNamespaceExtension.Mode Auto
      Additional namespaces are added to HTML by either the use of the "xmlns" or by mapping known elements to a particular namespace. Whichever is encountered first in the document applies.
  • Method Details

    • values

      public static HtmlNamespaceExtension.Mode[] 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 HtmlNamespaceExtension.Mode 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