Module com.aoapps.html.any
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 Summary
Enum ConstantDescriptionAll letters should default to uppercase.No autocapitalization is applied (all letters default to lowercase).Deprecated.Deprecated.Please useSENTENCES
as it is more descriptiveThe first letter of each sentence defaults to a capital letter; all other letters default to lowercase.The first letter of each word defaults to a capital letter; all other letters default to lowercase. -
Method Summary
Modifier and TypeMethodDescriptionapply
(AnyDocument<?> document) getValue()
toString()
static Autocapitalize.Value
Returns the enum constant of this type with the specified name.static Autocapitalize.Value[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OFF
Deprecated.Please useNONE
as it is more descriptiveNo autocapitalization is applied (all letters default to lowercase). -
NONE
No autocapitalization is applied (all letters default to lowercase). -
ON
Deprecated.Please useSENTENCES
as it is more descriptiveThe first letter of each sentence defaults to a capital letter; all other letters default to lowercase. -
SENTENCES
The first letter of each sentence defaults to a capital letter; all other letters default to lowercase. -
WORDS
The first letter of each word defaults to a capital letter; all other letters default to lowercase. -
CHARACTERS
All letters should default to uppercase.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<Autocapitalize.Value>
-
apply
- Specified by:
apply
in interfaceFunction<AnyDocument<?>,
String>
-
getValue
-
NONE
as it is more descriptive