@Immutable public interface PField<M extends PMessage<M>>
Note the generic is here only to be used for type validation in interfaces, as the field is a field for a specific message type.
Modifier and Type | Method and Description |
---|---|
static String |
asIfString(PField<?> field)
asIfString helper for interface fields.
|
static String |
asString(PField<?> field)
asString helper for fields.
|
PStructDescriptor<?> |
getArgumentsType()
If present, is the params type to be used for parameterizable field
content, e.g. with GraphQL.
|
Object |
getDefaultValue() |
PDescriptor |
getDescriptor() |
int |
getId() |
String |
getName() |
String |
getPojoName() |
PRequirement |
getRequirement() |
default PType |
getType() |
boolean |
hasDefaultValue() |
PMessageDescriptor<M> |
onMessageType()
The message type the field is on.
|
int getId()
@Nonnull PRequirement getRequirement()
@Nonnull PDescriptor getDescriptor()
@Nullable PStructDescriptor<?> getArgumentsType()
boolean hasDefaultValue()
Object getDefaultValue()
@Nonnull PMessageDescriptor<M> onMessageType()
@Nonnull static String asString(PField<?> field)
field
- The field to make string of.Copyright © 2015–2020 morimekta.net. All rights reserved.