public abstract class PolymorphicSchema extends Object implements Schema<Object>
| Modifier and Type | Class and Description |
|---|---|
static interface |
PolymorphicSchema.Factory
A factory which creates a schema with the handler connected to it.
|
static interface |
PolymorphicSchema.Handler
The handler who's job is to set the value to the owner.
|
| Modifier and Type | Field and Description |
|---|---|
IdStrategy |
strategy |
| Constructor and Description |
|---|
PolymorphicSchema(IdStrategy strategy) |
| Modifier and Type | Method and Description |
|---|---|
abstract Pipe.Schema<Object> |
getPipeSchema()
The pipe schema associated with this schema.
|
boolean |
isInitialized(Object message) |
Object |
newMessage() |
protected abstract void |
setValue(Object value,
Object owner)
Set the value to the owner.
|
Class<? super Object> |
typeClass() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFieldName, getFieldNumber, mergeFrom, messageFullName, messageName, writeTopublic final IdStrategy strategy
public PolymorphicSchema(IdStrategy strategy)
public boolean isInitialized(Object message)
isInitialized in interface Schema<Object>public Object newMessage()
newMessage in interface Schema<Object>public abstract Pipe.Schema<Object> getPipeSchema()
Copyright © 2009–2017. All rights reserved.