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