Package nl.gx.webmanager.services.seo
Enum SEOUpdateFrequency
- java.lang.Object
-
- java.lang.Enum<SEOUpdateFrequency>
-
- nl.gx.webmanager.services.seo.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SEOUpdateFrequency
byId(String id)
Returns the SEO Update frequency by its idString
getId()
Returns the identifier of the SEO Update frequency.static SEOUpdateFrequency
valueOf(String name)
Returns the enum constant of this type with the specified name.static SEOUpdateFrequency[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALWAYS
public static final SEOUpdateFrequency ALWAYS
Always update
-
HOURLY
public static final SEOUpdateFrequency HOURLY
Update each hour
-
DAILY
public static final SEOUpdateFrequency DAILY
Update each day
-
WEEKLY
public static final SEOUpdateFrequency WEEKLY
Update each week
-
MONTHLY
public static final SEOUpdateFrequency MONTHLY
Update each month
-
YEARLY
public static final SEOUpdateFrequency YEARLY
Update each year
-
NEVER
public static final SEOUpdateFrequency NEVER
Update never
-
-
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 nameNullPointerException
- 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
-
-