public enum Presence extends Enum<Presence>
Enum Constant and Description |
---|
CONSTANT
The field value is constant and held in the schema and not passed on the wire.
|
OPTIONAL
The field is optional and an optional value must be provided in the schema.
|
REQUIRED
The field must be present in the message encoding.
|
Modifier and Type | Method and Description |
---|---|
static Presence |
get(String name)
Lookup Presence name and return enum.
|
String |
value()
The value as a String of the presence.
|
static Presence |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Presence[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Presence REQUIRED
public static final Presence CONSTANT
public static final Presence OPTIONAL
public static Presence[] values()
for (Presence c : Presence.values()) System.out.println(c);
public static Presence 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 value()
public static Presence get(String name)
name
- of presence to getPresence
matching the nameIllegalArgumentException
- if the name is not foundCopyright © 2013-2020 Real Logic Limited. All Rights Reserved.