public enum ChangeFreq extends Enum<ChangeFreq >
ALWAYS should be used to describe documents that change each time they are accessed. The value
NEVER should be used to describe archived URLs.
Please note that the value of this tag is considered a hint and not a command. Even though search engine crawlers may consider this information when making decisions, they may crawl pages marked HOURLY less frequently than that, and they may crawl pages marked YEARLY more frequently than that. Crawlers may periodically crawl pages marked NEVER so that they can handle unexpected changes to those pages.
| Enum Constant and Description |
|---|
ALWAYS
|
DAILY
|
HOURLY
|
MONTHLY
|
NEVER
|
WEEKLY
|
YEARLY
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
|
static ChangeFreq |
valueOf(String
Returns the enum constant of this type with the specified name.
|
static ChangeFreq |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final ChangeFreqALWAYS
public static final ChangeFreqHOURLY
public static final ChangeFreqDAILY
public static final ChangeFreqWEEKLY
public static final ChangeFreqMONTHLY
public static final ChangeFreqYEARLY
public static final ChangeFreqNEVER
public static ChangeFreq[] values()
for (ChangeFreq c : ChangeFreq.values()) System.out.println(c);
public static ChangeFreqvalueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null
public StringtoString()