public abstract class PolymorphicPojoSchema extends PolymorphicSchema
RuntimeEnv.POJO_SCHEMA_ON_COLLECTION_FIELDS or
RuntimeEnv.POJO_SCHEMA_ON_MAP_FIELDS is set.
Applies to a field which is an interface and the type is assignable from List or Map.PolymorphicSchema.Factory, PolymorphicSchema.Handler| Modifier and Type | Field and Description |
|---|---|
protected Pipe.Schema<Object> |
pipeSchema |
strategy| Constructor and Description |
|---|
PolymorphicPojoSchema(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.
|
boolean |
isInitialized(Object owner) |
void |
mergeFrom(Input input,
Object owner) |
String |
messageFullName() |
String |
messageName() |
Object |
newMessage() |
Class<? super Object> |
typeClass() |
void |
writeTo(Output output,
Object value) |
setValueprotected final Pipe.Schema<Object> pipeSchema
public PolymorphicPojoSchema(IdStrategy strategy)
public Pipe.Schema<Object> getPipeSchema()
PolymorphicSchemagetPipeSchema in class PolymorphicSchemapublic String getFieldName(int number)
public int getFieldNumber(String name)
public boolean isInitialized(Object owner)
isInitialized in interface Schema<Object>isInitialized in class PolymorphicSchemapublic String messageFullName()
public String messageName()
public Object newMessage()
newMessage in interface Schema<Object>newMessage in class PolymorphicSchemapublic Class<? super Object> typeClass()
typeClass in interface Schema<Object>typeClass in class PolymorphicSchemapublic void mergeFrom(Input input, Object owner) throws IOException
IOExceptionpublic void writeTo(Output output, Object value) throws IOException
IOExceptionCopyright © 2009–2018. All rights reserved.