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