Google Data APIs Client Library (1.41.1)



com.google.gdata.data.webmastertools
Class CrawlRateConstruct

java.lang.Object
  extended by com.google.gdata.data.AbstractExtension
      extended by com.google.gdata.data.ValueConstruct
          extended by com.google.gdata.data.EnumConstruct
              extended by com.google.gdata.data.webmastertools.CrawlRateConstruct
All Implemented Interfaces:
Extension
Direct Known Subclasses:
SitesEntry.CrawlingRate

public abstract class CrawlRateConstruct
extends EnumConstruct

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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension
AbstractExtension.AttributesHandler
 
Field Summary
 
Fields inherited from class com.google.gdata.data.EnumConstruct
values
 
Fields inherited from class com.google.gdata.data.ValueConstruct
attrName
 
Fields inherited from class com.google.gdata.data.AbstractExtension
localName, namespace
 
Constructor Summary
CrawlRateConstruct(java.lang.String nodeName)
          Constructs EnumConstruct to represent the crawl rate setting.
 
Method Summary
 boolean equals(java.lang.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(java.lang.String value)
          Override EnumConstruct.setValue(String) to validate that the supplied value is a one of the accepted crawl rates.
 
Methods inherited from class com.google.gdata.data.ValueConstruct
consumeAttributes, generate, getHandler, getValue, hasValue, isRequired, putAttributes, setRequired
 
Methods inherited from class com.google.gdata.data.AbstractExtension
disableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrawlRateConstruct

public CrawlRateConstruct(java.lang.String nodeName)
Constructs EnumConstruct to represent the crawl rate setting.

Method Detail

equals

public boolean equals(java.lang.Object rhs)
Compares DomainPreferenceConstruct objects based on the domain preference that they they hold.

Overrides:
equals in class ValueConstruct

hashCode

public int hashCode()
Returns a hash code which is based on the crawl rate string.

Overrides:
hashCode in class ValueConstruct

setValue

public void setValue(java.lang.String value)
              throws java.lang.NullPointerException,
                     java.lang.IllegalArgumentException
Override EnumConstruct.setValue(String) to validate that the supplied value is a one of the accepted crawl rates. See CrawlRate

Overrides:
setValue in class EnumConstruct
Parameters:
value - new value for the value construct or null to reset.
Throws:
java.lang.NullPointerException - if the value is null.
java.lang.IllegalArgumentException - if value is not a valid crawl rate.

setCrawlRate

public void setCrawlRate(CrawlRate value)

getCrawlRate

public CrawlRate getCrawlRate()