T - the specific MetadataTypepublic abstract class AbstractComplexTypeSerializer<T extends MetadataType> extends BaseTypeSerializer<T>
BaseTypeSerializer specification that contains common logic to handle recursive scenarios.
All TypeSerializers that can have recursive structures should inherit from this class.
typeName| Modifier and Type | Method and Description |
|---|---|
void |
serialize(com.google.gson.stream.JsonWriter writer,
T type,
Stack<MetadataType> typeStack)
Writes a
T MetadataType into a JsonWriter, a Stack is also passed to this method to track the
serialization process and handle recursive cases. |
doSerialize, writeAnnotations, writeMetadataFormatpublic void serialize(com.google.gson.stream.JsonWriter writer,
T type,
Stack<MetadataType> typeStack)
TypeSerializerT MetadataType into a JsonWriter, a Stack is also passed to this method to track the
serialization process and handle recursive cases.serialize in interface TypeSerializer<T extends MetadataType>serialize in class BaseTypeSerializer<T extends MetadataType>writer - the JsonWriter to write the type into.type - the MetadataType to be serializedtypeStack - a Stack with the serialization chain state.Copyright © 2024 MuleSoft, Inc.. All rights reserved.