public abstract class

DomainPreferenceConstruct

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.DomainPreferenceConstruct
Known Direct Subclasses

Class Overview

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.

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
DomainPreferenceConstruct(String nodeName)
Constructs EnumConstruct to represent the preference setting.
Public Methods
boolean equals(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(String value)
Override setValue(String) to validate that the supplied value is a one of the accepted domain preferences.
[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 DomainPreferenceConstruct (String nodeName)

Constructs EnumConstruct to represent the preference 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 DomainPreference getPreference ()

public int hashCode ()

Returns a hash code which is based on the preference string.

public void setPreference (DomainPreference value)

Parameters
value

public void setValue (String value)

Override setValue(String) to validate that the supplied value is a one of the accepted domain preferences. See DomainPreference.

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 domain preference none, preferwww, prefernowww.