public class InnerCatalogObjectTypeReferenceHandler extends Object implements ObjectTypeReferenceHandler
ObjectTypeReferenceHandler implementation for type seralization
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.
|
boolean |
shouldWriteReference(ObjectType type)
Only should write references of types than have a typeId to be referenced to.
|
Optional<String> |
writeReference(ObjectType type,
com.google.gson.stream.JsonWriter writer)
Writes a type reference if this has an associated type id to be later fetched from the catalog.
|
public Optional<TypeBuilder> readReference(String typeReference)
readReference in interface ObjectTypeReferenceHandlertypeReference - a type idOptional TypeBuilderpublic boolean shouldWriteReference(ObjectType type)
shouldWriteReference in interface ObjectTypeReferenceHandlertype - the type to writepublic Optional<String> writeReference(ObjectType type, com.google.gson.stream.JsonWriter writer)
writeReference in interface ObjectTypeReferenceHandlertype - the type to writewriter - a JsonWriterOptional.empty()Copyright © 2019 MuleSoft, Inc.. All rights reserved.