public enum PRequirement extends Enum<PRequirement>
Modifier and Type | Field and Description |
---|---|
boolean |
fieldIsValueType |
String |
label |
boolean |
presenceRequired |
Modifier and Type | Method and Description |
---|---|
static PRequirement |
forLabel(String label) |
static PRequirement |
forName(String label) |
static PRequirement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PRequirement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PRequirement DEFAULT
public static final PRequirement OPTIONAL
public static final PRequirement REQUIRED
public boolean fieldIsValueType
public boolean presenceRequired
public String label
public static PRequirement[] values()
for (PRequirement c : PRequirement.values()) System.out.println(c);
public static PRequirement 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 static PRequirement forName(String label)
public static PRequirement forLabel(String label)
Copyright © 2016. All rights reserved.