Package io.protostuff.runtime
Class HasSchema<T>
- java.lang.Object
-
- io.protostuff.runtime.HasSchema<T>
-
- All Implemented Interfaces:
PolymorphicSchema.Factory
- Direct Known Subclasses:
DefaultIdStrategy.Lazy
,DefaultIdStrategy.LazyRegister
,DefaultIdStrategy.Mapped
,DefaultIdStrategy.Registered
,ExplicitIdStrategy.BaseHS
,IncrementalIdStrategy.BaseHS
public abstract class HasSchema<T> extends java.lang.Object implements PolymorphicSchema.Factory
Wraps a schema.
-
-
Field Summary
Fields Modifier and Type Field Description ArraySchemas.Base
genericElementSchema
IdStrategy
strategy
-
Constructor Summary
Constructors Modifier Constructor Description protected
HasSchema(IdStrategy strategy)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Pipe.Schema<T>
getPipeSchema()
Gets the pipe schema.abstract Schema<T>
getSchema()
Gets the schema.PolymorphicSchema
newSchema(java.lang.Class<?> typeClass, IdStrategy strategy, PolymorphicSchema.Handler handler)
-
-
-
Field Detail
-
strategy
public final IdStrategy strategy
-
genericElementSchema
public final ArraySchemas.Base genericElementSchema
-
-
Constructor Detail
-
HasSchema
protected HasSchema(IdStrategy strategy)
-
-
Method Detail
-
getPipeSchema
public abstract Pipe.Schema<T> getPipeSchema()
Gets the pipe schema.
-
newSchema
public PolymorphicSchema newSchema(java.lang.Class<?> typeClass, IdStrategy strategy, PolymorphicSchema.Handler handler)
- Specified by:
newSchema
in interfacePolymorphicSchema.Factory
-
-