Enum Class MetaDataName

java.lang.Object
java.lang.Enum<MetaDataName>
com.oorian.html.elements.consts.MetaDataName
All Implemented Interfaces:
Serializable, Comparable<MetaDataName>, Constable

public enum MetaDataName extends Enum<MetaDataName>
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:
  • Enum Constant Details

    • APPLICATION_NAME

      public static final MetaDataName APPLICATION_NAME
      Specifies the name of the web application. Used to identify the application name for installed web apps.
    • AUTHOR

      public static final MetaDataName AUTHOR
      Specifies the author of the document. Contains the name of the document's creator or author.
    • DESCRIPTION

      public static final MetaDataName DESCRIPTION
      Provides a brief description of the page content. Used by search engines to display page summaries in search results.
    • GENERATOR

      public static final MetaDataName GENERATOR
      Identifies the software used to generate the document. Specifies the tool or platform that created the HTML.
    • KEYWORDS

      public static final MetaDataName KEYWORDS
      Specifies keywords relevant to the page content. Used for SEO and search engine indexing (comma-separated list).
  • Method Details

    • values

      public static MetaDataName[] 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 MetaDataName 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
    • getValue

      public String getValue()
      Gets the metadata name value for use in meta elements.
      Returns:
      the string value used in HTML name attribute.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<MetaDataName>