|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ValueConstruct
com.google.gdata.data.EnumConstruct
com.google.gdata.data.webmastertools.DomainPreferenceConstruct
public abstract class DomainPreferenceConstruct
GData schema extension describing a node with a domain preference.
The domain preference is a value in preferwww, prefernowww, none
.
This class is abstract, subclasses must define a default constructor
which has the node name hardcoded. See EnumConstruct
.
Constructor Summary | |
---|---|
DomainPreferenceConstruct(java.lang.String nodeName)
Constructs EnumConstruct to represent the preference setting. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object rhs)
Compares DomainPreferenceConstruct objects based on the
domain preference that they they hold. |
DomainPreference |
getPreference()
|
int |
hashCode()
Returns a hash code which is based on the preference string. |
void |
setPreference(DomainPreference value)
|
void |
setValue(java.lang.String value)
Override EnumConstruct.setValue(String) to validate that
the supplied value is a one of the accepted domain preferences. |
Methods inherited from class com.google.gdata.data.ValueConstruct |
---|
generate, getHandler, getValue, hasValue, isRequired, putAttributes |
Methods inherited from class com.google.gdata.data.AbstractExtension |
---|
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DomainPreferenceConstruct(java.lang.String nodeName)
EnumConstruct
to represent the preference setting.
Method Detail |
---|
public boolean equals(java.lang.Object rhs)
DomainPreferenceConstruct
objects based on the
domain preference that they they hold.
equals
in class ValueConstruct
public int hashCode()
hashCode
in class ValueConstruct
public 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 domain preferences.
See DomainPreference
.
setValue
in class EnumConstruct
value
- 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 domain
preference none, preferwww, prefernowww
.public void setPreference(DomainPreference value)
public DomainPreference getPreference()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |