public enum PresenceT extends Enum<PresenceT>
Java class for presence_t.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="presence_t">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="optional"/>
<enumeration value="required"/>
<enumeration value="forbidden"/>
<enumeration value="ignored"/>
<enumeration value="constant"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CONSTANT
The field has a constant value; in some encodings it need not be sent on the wire.
|
FORBIDDEN
The field or component MUST NOT be present.
|
IGNORED
The field or component MAY be present but is not validated.
|
OPTIONAL
The field or component MAY be present; it may be conditionally required based on a rule.
|
REQUIRED
The field or component MUST be present.
|
| Modifier and Type | Method and Description |
|---|---|
static PresenceT |
fromValue(String v) |
String |
value() |
static PresenceT |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PresenceT[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PresenceT OPTIONAL
public static final PresenceT REQUIRED
public static final PresenceT FORBIDDEN
public static final PresenceT IGNORED
public static final PresenceT CONSTANT
public static PresenceT[] values()
for (PresenceT c : PresenceT.values()) System.out.println(c);
public static PresenceT 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()
Copyright © 2016–2020 FIX Trading Community. All rights reserved.