public abstract class CrawlRateConstruct extends EnumConstruct
slowest, slower, normal, faster, fastest.
This class is abstract, subclasses must define a default constructor
which has the node name hardcoded. See EnumConstruct.AbstractExtension.AttributesHandlervaluesattrNamelocalName, namespace| Constructor and Description |
|---|
CrawlRateConstruct(java.lang.String nodeName)
Constructs
EnumConstruct to represent the crawl rate setting. |
| Modifier and Type | Method and Description |
|---|---|
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. |
consumeAttributes, generate, getHandler, getValue, hasValue, isRequired, putAttributes, setRequireddisableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validatepublic CrawlRateConstruct(java.lang.String nodeName)
EnumConstruct to represent the crawl rate setting.public boolean equals(java.lang.Object rhs)
DomainPreferenceConstruct objects based on the
domain preference that they they hold.equals in class ValueConstructpublic int hashCode()
hashCode in class ValueConstructpublic void setValue(java.lang.String value)
throws java.lang.NullPointerException,
java.lang.IllegalArgumentException
EnumConstruct.setValue(String) to validate that
the supplied value is a one of the accepted crawl rates.
See CrawlRatesetValue in class EnumConstructvalue - new value for the value construct or null to reset.java.lang.NullPointerException - if the value is null.java.lang.IllegalArgumentException - if value is not a valid crawl rate.public void setCrawlRate(CrawlRate value)
public CrawlRate getCrawlRate()