public static enum Group.Field extends Enum<Group.Field>
| Enum Constant and Description |
|---|
DESCRIPTION
Description of group Optional.
|
ID
Unique ID for this group Required.
|
TITLE
Title of group Required.
|
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
ALL_FIELDS
The set of all fields.
|
static Set<String> |
DEFAULT_FIELDS
The set of default fields returned fields.
|
| Modifier and Type | Method and Description |
|---|---|
static Group.Field |
fromUrlString(String jsonString)
Converts from a url string (usually passed in the fields= parameter) into the
corresponding field enum.
|
String |
toString()
Emit the field as a JSON element.
|
static Group.Field |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Group.Field[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Group.Field ID
public static final Group.Field TITLE
public static final Group.Field DESCRIPTION
public static Group.Field[] values()
for (Group.Field c : Group.Field.values()) System.out.println(c);
public static Group.Field valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<Group.Field>public static Group.Field fromUrlString(String jsonString)
jsonString - The string to translate.Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.