public class InnerCatalogObjectTypeReferenceHandler extends Object implements ObjectTypeReferenceHandler
ObjectTypeReferenceHandler implementation for type serialization that declare an inner type catalog in its serialized
structure.| Modifier and Type | Method and Description |
|---|---|
Optional<TypeBuilder> |
readReference(String typeReference)
If a ref is found, the type builder is taken from the previously populated catalog.
|
Optional<String> |
writeReference(ObjectType type,
com.google.gson.stream.JsonWriter writer)
Writes a type reference if this has an associated type id or uses the identity hashcode to be later fetched from the catalog.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshouldWriteReferencepublic Optional<TypeBuilder> readReference(String typeReference)
readReference in interface ObjectTypeReferenceHandlertypeReference - a type idOptional TypeBuilderpublic Optional<String> writeReference(ObjectType type, com.google.gson.stream.JsonWriter writer)
writeReference in interface ObjectTypeReferenceHandlertype - the type to writewriter - a JsonWriterOptional.empty()Copyright © 2024 MuleSoft, Inc.. All rights reserved.