Class PolymorphicPojoCollectionSchema
java.lang.Object
io.protostuff.runtime.PolymorphicSchema
io.protostuff.runtime.PolymorphicPojoCollectionSchema
Will be used if
RuntimeEnv.POJO_SCHEMA_ON_COLLECTION_FIELDS is enabled and the
field is assignable from Collection.-
Nested Class Summary
Nested classes/interfaces inherited from class PolymorphicSchema
PolymorphicSchema.Factory, PolymorphicSchema.Handler -
Field Summary
FieldsFields inherited from class PolymorphicSchema
strategy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFieldName(int number) Gets the field name associated with the number.intgetFieldNumber(String name) Gets the field number associated with the name.The pipe schema associated with this schema.booleanisInitialized(Object owner) Returns true if there is no required field or if all the required fields are set.voidDeserializes a message/object from theinput.Returns the full name of the message tied to this schema.Returns the simple name of the message tied to this schema.Creates the message/object tied to this schema.(package private) static ObjectreadObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static ObjectreadObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) (package private) static voidtransferObject(Pipe.Schema<Object> pipeSchema, Pipe pipe, Input input, Output output, IdStrategy strategy) (package private) static voidtransferObject(Pipe.Schema<Object> pipeSchema, Pipe pipe, Input input, Output output, IdStrategy strategy, int number) Gets the class of the message.(package private) static voidwriteObjectTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) voidSerializes a message/object to theoutput.Methods inherited from class PolymorphicSchema
setValue
-
Field Details
-
pipeSchema
-
-
Constructor Details
-
PolymorphicPojoCollectionSchema
-
-
Method Details
-
getPipeSchema
Description copied from class:PolymorphicSchemaThe pipe schema associated with this schema.- Specified by:
getPipeSchemain classPolymorphicSchema
-
getFieldName
-
getFieldNumber
-
isInitialized
Description copied from interface:SchemaReturns true if there is no required field or if all the required fields are set.- Specified by:
isInitializedin interfaceSchema<Object>- Overrides:
isInitializedin classPolymorphicSchema
-
messageFullName
-
messageName
-
newMessage
Description copied from interface:SchemaCreates the message/object tied to this schema.- Specified by:
newMessagein interfaceSchema<Object>- Overrides:
newMessagein classPolymorphicSchema
-
typeClass
-
mergeFrom
Description copied from interface:SchemaDeserializes a message/object from theinput.- Throws:
IOException
-
writeTo
Description copied from interface:SchemaSerializes a message/object to theoutput.- Throws:
IOException
-
writeObjectTo
static void writeObjectTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) throws IOException - Throws:
IOException
-
readObjectFrom
static Object readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy) throws IOException - Throws:
IOException
-
readObjectFrom
static Object readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) throws IOException - Throws:
IOException
-
transferObject
static void transferObject(Pipe.Schema<Object> pipeSchema, Pipe pipe, Input input, Output output, IdStrategy strategy) throws IOException - Throws:
IOException
-
transferObject
static void transferObject(Pipe.Schema<Object> pipeSchema, Pipe pipe, Input input, Output output, IdStrategy strategy, int number) throws IOException - Throws:
IOException
-