Package io.protostuff.runtime
Class PolymorphicCollectionSchema
java.lang.Object
io.protostuff.runtime.PolymorphicSchema
io.protostuff.runtime.PolymorphicCollectionSchema
Used when the type is an interface (Collection/List/Set/SortedSet).
- Author:
- David Yu
-
Nested Class Summary
Nested classes/interfaces inherited from class io.protostuff.runtime.PolymorphicSchema
PolymorphicSchema.Factory, PolymorphicSchema.Handler -
Field Summary
FieldsFields inherited from class io.protostuff.runtime.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.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.voidSerializes a message/object to theoutput.Methods inherited from class io.protostuff.runtime.PolymorphicSchema
isInitialized, newMessage, setValue, typeClass
-
Field Details
-
pipeSchema
-
-
Constructor Details
-
PolymorphicCollectionSchema
-
-
Method Details
-
getPipeSchema
Description copied from class:PolymorphicSchemaThe pipe schema associated with this schema.- Specified by:
getPipeSchemain classPolymorphicSchema
-
getFieldName
Description copied from interface:SchemaGets the field name associated with the number. This is particularly useful when serializing to different formats (Eg. JSON). When using numeric field names:return String.valueOf(number);
-
getFieldNumber
Description copied from interface:SchemaGets the field number associated with the name. This is particularly useful when serializing to different formats (Eg. JSON). When using numeric field names:return Integer.parseInt(name);
-
messageFullName
Description copied from interface:SchemaReturns the full name of the message tied to this schema. Allows custom schemas to provide a custom name other than typeClass().getName(); -
messageName
Description copied from interface:SchemaReturns the simple name of the message tied to this schema. Allows custom schemas to provide a custom name other than typeClass().getSimpleName(); -
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
-