public static enum Account.Field extends Enum<Account.Field>
All of the fields that an account can have, all fields are required
Enum Constant and Description |
---|
DOMAIN
the json field for domain.
|
USER_ID
the json field for userId.
|
USERNAME
the json field for username.
|
Modifier and Type | Method and Description |
---|---|
String |
toString()
emit the field as a json element.
|
static Account.Field |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Account.Field[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Account.Field DOMAIN
public static final Account.Field USER_ID
public static final Account.Field USERNAME
public static Account.Field[] values()
for (Account.Field c : Account.Field.values()) System.out.println(c);
public static Account.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<Account.Field>
Copyright © 2017 WSO2. All Rights Reserved.