Enum Autocapitalize.Value

java.lang.Object
java.lang.Enum<Autocapitalize.Value>
com.aoapps.html.any.attributes.enumeration.Autocapitalize.Value
All Implemented Interfaces:
Serializable, Comparable<Autocapitalize.Value>, Function<AnyDocument<?>,String>
Enclosing interface:
Autocapitalize<E extends Element<?,?,E> & Autocapitalize<E>>

public static enum Autocapitalize.Value extends Enum<Autocapitalize.Value> implements Function<AnyDocument<?>,String>
Since:
HTML 5
  • Enum Constant Details

    • OFF

      @Deprecated public static final Autocapitalize.Value OFF
      Deprecated.
      Please use NONE as it is more descriptive
      No autocapitalization is applied (all letters default to lowercase).
    • NONE

      public static final Autocapitalize.Value NONE
      No autocapitalization is applied (all letters default to lowercase).
    • ON

      @Deprecated public static final Autocapitalize.Value ON
      Deprecated.
      Please use SENTENCES as it is more descriptive
      The first letter of each sentence defaults to a capital letter; all other letters default to lowercase.
    • SENTENCES

      public static final Autocapitalize.Value SENTENCES
      The first letter of each sentence defaults to a capital letter; all other letters default to lowercase.
    • WORDS

      public static final Autocapitalize.Value WORDS
      The first letter of each word defaults to a capital letter; all other letters default to lowercase.
    • CHARACTERS

      public static final Autocapitalize.Value CHARACTERS
      All letters should default to uppercase.
  • Method Details

    • values

      public static Autocapitalize.Value[] 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 Autocapitalize.Value 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Autocapitalize.Value>
    • apply

      public String apply(AnyDocument<?> document)
      Specified by:
      apply in interface Function<AnyDocument<?>,String>
    • getValue

      public String getValue()