com.redfin.sitemapgenerator.ChangeFreq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sitemapgen4j Show documentation
Show all versions of sitemapgen4j Show documentation
SitemapGen4j is an XML sitemap generator written in Java.
package com.redfin.sitemapgenerator;
/**
* How frequently the page is likely to change. This value provides
* general information to search engines and may not correlate exactly
* to how often they crawl the page. The value {@link #ALWAYS} should be used to
* describe documents that change each time they are accessed. The value
* {@link #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 {@link #HOURLY} less frequently than
* that, and they may crawl pages marked {@link #YEARLY} more frequently than
* that. Crawlers may periodically crawl pages marked {@link #NEVER} so that
* they can handle unexpected changes to those pages.
*/
public enum ChangeFreq {
ALWAYS, HOURLY, DAILY, WEEKLY, MONTHLY, YEARLY, NEVER;
String lowerCase;
private ChangeFreq() {
lowerCase = this.name().toLowerCase();
}
@Override
public String toString() {
return lowerCase;
}
}