public abstract class

CrawlRateConstruct

extends EnumConstruct
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ValueConstruct
       ↳ com.google.gdata.data.EnumConstruct
         ↳ com.google.gdata.data.webmastertools.CrawlRateConstruct
Known Direct Subclasses

Class Overview

GData schema extension describing a node with a crawl rate. The crawl rate is a value in slowest, slower, normal, faster, fastest. This class is abstract, subclasses must define a default constructor which has the node name hardcoded. See EnumConstruct.

Summary

[Expand]
Inherited Fields
From class com.google.gdata.data.EnumConstruct
From class com.google.gdata.data.ValueConstruct
From class com.google.gdata.data.AbstractExtension
Public Constructors
CrawlRateConstruct(String nodeName)
Constructs EnumConstruct to represent the crawl rate setting.
Public Methods
boolean equals(Object rhs)
Compares DomainPreferenceConstruct objects based on the domain preference that they they hold.
CrawlRate getCrawlRate()
int hashCode()
Returns a hash code which is based on the crawl rate string.
void setCrawlRate(CrawlRate value)
void setValue(String value)
Override setValue(String) to validate that the supplied value is a one of the accepted crawl rates.
[Expand]
Inherited Methods
From class com.google.gdata.data.EnumConstruct
From class com.google.gdata.data.ValueConstruct
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Public Constructors

public CrawlRateConstruct (String nodeName)

Constructs EnumConstruct to represent the crawl rate setting.

Parameters
nodeName

Public Methods

public boolean equals (Object rhs)

Compares DomainPreferenceConstruct objects based on the domain preference that they they hold.

Parameters
rhs

public CrawlRate getCrawlRate ()

public int hashCode ()

Returns a hash code which is based on the crawl rate string.

public void setCrawlRate (CrawlRate value)

Parameters
value

public void setValue (String value)

Override setValue(String) to validate that the supplied value is a one of the accepted crawl rates. See CrawlRate

Parameters
value New value for the value construct or null to reset.
Throws
NullPointerException if the value is null.
IllegalArgumentException if value is not a valid crawl rate.