Package com.aoapps.html.any.attributes.enumeration


package com.aoapps.html.any.attributes.enumeration
See 2.4.3 Keywords and enumerated attributes.

Per-attribute interfaces with default implementations.

Attributes are attached to elements by simply implementing the interface. Thanks to the default methods on the interfaces, the element has a fully functional attribute with just the one-liner. However, the elements still have the option to override the attribute.

Values may be provided either as a String or an Enum, with the Enum representation preferred. The String value is allowed for values that are not part of the enumeration.

When converting from Enum, uses Function. giving the AnyDocument. This allows the enum to select values by Serialization and/or Doctype, as-needed.

See Also: