public static enum Any._Field extends Enum<Any._Field> implements PField
| Enum Constant and Description |
|---|
DATA |
MEDIA_TYPE |
TEXT |
TYPE |
| Modifier and Type | Method and Description |
|---|---|
static Any._Field |
fieldForId(int id) |
static Any._Field |
fieldForName(String name) |
static Any._Field |
findById(int id) |
static Any._Field |
findByName(String name) |
Object |
getDefaultValue() |
PDescriptor |
getDescriptor() |
int |
getId() |
String |
getName() |
PRequirement |
getRequirement() |
boolean |
hasDefaultValue() |
String |
toString() |
static Any._Field |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Any._Field[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Any._Field TYPE
public static final Any._Field MEDIA_TYPE
public static final Any._Field DATA
public static final Any._Field TEXT
public static Any._Field[] values()
for (Any._Field c : Any._Field.values()) System.out.println(c);
public static Any._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 int getId()
public PRequirement getRequirement()
getRequirement in interface PFieldpublic PDescriptor getDescriptor()
getDescriptor in interface PFieldpublic String getName()
public boolean hasDefaultValue()
hasDefaultValue in interface PFieldpublic Object getDefaultValue()
getDefaultValue in interface PFieldpublic String toString()
toString in class Enum<Any._Field>public static Any._Field findById(int id)
id - Field namepublic static Any._Field findByName(String name)
name - Field namepublic static Any._Field fieldForId(int id)
id - Field nameIllegalArgumentException - If no such fieldpublic static Any._Field fieldForName(String name)
name - Field nameIllegalArgumentException - If no such fieldCopyright © 2015–2019 morimekta.net. All rights reserved.