public abstract class PolymorphicSchema extends java.lang.Object implements Schema<java.lang.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<java.lang.Object> |
getPipeSchema()
The pipe schema associated with this schema.
|
boolean |
isInitialized(java.lang.Object message) |
java.lang.Object |
newMessage() |
protected abstract void |
setValue(java.lang.Object value,
java.lang.Object owner)
Set the value to the owner.
|
java.lang.Class<? super java.lang.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(java.lang.Object message)
isInitialized in interface Schema<java.lang.Object>public java.lang.Object newMessage()
newMessage in interface Schema<java.lang.Object>public java.lang.Class<? super java.lang.Object> typeClass()
public abstract Pipe.Schema<java.lang.Object> getPipeSchema()
protected abstract void setValue(java.lang.Object value,
java.lang.Object owner)
Copyright © 2009-2023. All Rights Reserved.