Package com.oorian.html.elements.consts
Enum Class MetaDataName
- All Implemented Interfaces:
Serializable,Comparable<MetaDataName>,Constable
Enumeration defining standard metadata names for HTML meta elements.
This enum provides type-safe constants for the meta element's "name" attribute,
which identifies the type of metadata being provided.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies the name of the web application.Specifies the author of the document.Provides a brief description of the page content.Identifies the software used to generate the document.Specifies keywords relevant to the page content. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Gets the metadata name value for use in meta elements.toString()static MetaDataNameReturns the enum constant of this class with the specified name.static MetaDataName[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
APPLICATION_NAME
Specifies the name of the web application. Used to identify the application name for installed web apps. -
AUTHOR
Specifies the author of the document. Contains the name of the document's creator or author. -
DESCRIPTION
Provides a brief description of the page content. Used by search engines to display page summaries in search results. -
GENERATOR
Identifies the software used to generate the document. Specifies the tool or platform that created the HTML. -
KEYWORDS
Specifies keywords relevant to the page content. Used for SEO and search engine indexing (comma-separated list).
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
Gets the metadata name value for use in meta elements.- Returns:
- the string value used in HTML name attribute.
-
toString
- Overrides:
toStringin classEnum<MetaDataName>
-