Enum SEOUpdateFrequency

  • All Implemented Interfaces:
    Serializable, Comparable<SEOUpdateFrequency>

    public enum SEOUpdateFrequency
    extends Enum<SEOUpdateFrequency>
    This enumeration holds all possible values for the Google Sitemaps SEO Update Frequency. It determines how frequent changes are made to the content. The Update frequency is written to the generated sitemaps XML as changefreq attribute. For more information, see https://www.sitemaps.org/protocol.html#changefreqdef
    • Method Detail

      • values

        public static SEOUpdateFrequency[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SEOUpdateFrequency c : SEOUpdateFrequency.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SEOUpdateFrequency 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
      • getId

        public String getId()
        Returns the identifier of the SEO Update frequency.
        Returns:
        the identifier of the SEO Update frequency
      • byId

        public static SEOUpdateFrequency byId​(String id)
        Returns the SEO Update frequency by its id
        Parameters:
        id - id of the SEO Update frequency
        Returns:
        the SEO Update frequency