public enum MandatoryEnumeration extends Enum<MandatoryEnumeration>
Java class for MandatoryEnumeration.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="MandatoryEnumeration">
<restriction base="{http://www.w3.org/2001/XMLSchema}normalizedString">
<enumeration value="required"/>
<enumeration value="optional"/>
<enumeration value="notAllowed"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
NOT_ALLOWED |
OPTIONAL |
REQUIRED |
| Modifier and Type | Method and Description |
|---|---|
static MandatoryEnumeration |
fromValue(String v) |
String |
value() |
static MandatoryEnumeration |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MandatoryEnumeration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MandatoryEnumeration REQUIRED
public static final MandatoryEnumeration OPTIONAL
public static final MandatoryEnumeration NOT_ALLOWED
public static MandatoryEnumeration[] values()
for (MandatoryEnumeration c : MandatoryEnumeration.values()) System.out.println(c);
public static MandatoryEnumeration 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 MandatoryEnumeration fromValue(String v)
Copyright © 2018 Entur AS. All rights reserved.