public final enum

DomainPreference

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.google.gdata.data.webmastertools.DomainPreference

Class Overview

DomainPreference is an enumerated type that indicates the preferred domain to use for a concrete site for Webmaster tools. The possibilities are:

  - PREFERWWW: domain.com and www.domain.com should be  associated 
        and www.domain.com is preferred
  - PREFERNOWWW: domain.com and www.domain.com should be associated 
         domain.com is preferred
  - NONE: there should be no association 
 

Summary

Enum Values
DomainPreference  NONE   
DomainPreference  PREFER_NO_WWW   
DomainPreference  PREFER_WWW   
Fields
private String value
[Expand]
Inherited Fields
From class java.lang.Enum
Public Methods
static DomainPreference fromString(String value)
Parse a string and return a domain preference.
static DomainPreference getDefault()
Get the default value for the domain preference.
String toString()
Returns the string representation of the Domain Preference.
static DomainPreference valueOf(String name)
final static DomainPreference[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final DomainPreference NONE

public static final DomainPreference PREFER_NO_WWW

public static final DomainPreference PREFER_WWW

Fields

private String value

Public Methods

public static DomainPreference fromString (String value)

Parse a string and return a domain preference.

Parameters
value A string representing a domain preference
Returns
  • a DomainPrefrence if the parameter can be successfully parsed
Throws
IllegalArgumentException if the parameter is not a valid DomainPreference string

public static DomainPreference getDefault ()

Get the default value for the domain preference.

Returns
  • default value for the domain preference.

public String toString ()

Returns the string representation of the Domain Preference.

public static DomainPreference valueOf (String name)

Parameters
name

public static final DomainPreference[] values ()