public abstract class PolymorphicEnumSchema extends PolymorphicSchema
Enum<?> (with or with-out generics).PolymorphicSchema.Factory, PolymorphicSchema.Handler| Modifier and Type | Field and Description |
|---|---|
protected Pipe.Schema<Object> |
pipeSchema |
strategy| Constructor and Description |
|---|
PolymorphicEnumSchema(IdStrategy strategy) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFieldName(int number) |
int |
getFieldNumber(String name) |
Pipe.Schema<Object> |
getPipeSchema()
The pipe schema associated with this schema.
|
void |
mergeFrom(Input input,
Object owner) |
String |
messageFullName() |
String |
messageName() |
void |
writeTo(Output output,
Object value) |
isInitialized, newMessage, setValue, typeClassprotected final Pipe.Schema<Object> pipeSchema
public PolymorphicEnumSchema(IdStrategy strategy)
public Pipe.Schema<Object> getPipeSchema()
PolymorphicSchemagetPipeSchema in class PolymorphicSchemapublic String getFieldName(int number)
public int getFieldNumber(String name)
public String messageFullName()
public String messageName()
public void mergeFrom(Input input, Object owner) throws IOException
IOExceptionpublic void writeTo(Output output, Object value) throws IOException
IOExceptionCopyright © 2009–2017. All rights reserved.