|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DomainPreference>
com.google.gdata.data.webmastertools.DomainPreference
public enum DomainPreference
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
Enum Constant Summary | |
---|---|
NONE
|
|
PREFER_NO_WWW
|
|
PREFER_WWW
|
Method Summary | |
---|---|
static DomainPreference |
fromString(java.lang.String value)
Parse a string and return a domain preference. |
static DomainPreference |
getDefault()
Get the default value for the domain preference. |
java.lang.String |
toString()
Returns the string representation of the Domain Preference. |
static DomainPreference |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DomainPreference[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DomainPreference NONE
public static final DomainPreference PREFER_WWW
public static final DomainPreference PREFER_NO_WWW
Method Detail |
---|
public static DomainPreference[] values()
for (DomainPreference c : DomainPreference.values()) System.out.println(c);
public static DomainPreference valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<DomainPreference>
public static DomainPreference getDefault()
public static DomainPreference fromString(java.lang.String value) throws java.lang.IllegalArgumentException
value
- a string representing a domain preference
java.lang.IllegalArgumentException
- if the parameter is not a valid
DomainPreference string
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |