public class ComponentResultJsonSerializer<T extends org.mule.runtime.api.meta.model.ComponentModel> extends Object
MetadataResult of a ComponentMetadataDescriptor type into a readable and
processable JSON representation and from a JSON String to an MetadataResult instance| Modifier and Type | Field and Description |
|---|---|
protected com.google.gson.Gson |
gson |
| Constructor and Description |
|---|
ComponentResultJsonSerializer() |
ComponentResultJsonSerializer(boolean prettyPrint) |
ComponentResultJsonSerializer(boolean prettyPrint,
boolean reduced) |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.descriptor.ComponentMetadataDescriptor<T>> |
deserialize(String metadataResult)
Deserializes a JSON representation of an
MetadataResult, to an actual instance of it. |
String |
serialize(org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.descriptor.ComponentMetadataDescriptor<T>> metadataResult) |
public ComponentResultJsonSerializer()
public ComponentResultJsonSerializer(boolean prettyPrint)
public ComponentResultJsonSerializer(boolean prettyPrint,
boolean reduced)
public String serialize(org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.descriptor.ComponentMetadataDescriptor<T>> metadataResult)
metadataResult - the MetadataResult to be serializedString JSON representation of the MetadataResultpublic org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.descriptor.ComponentMetadataDescriptor<T>> deserialize(String metadataResult)
MetadataResult, to an actual instance of it.metadataResult - the serialized MetadataResult in a String JSON representationMetadataResult based on the serialized JSONCopyright © 2021 MuleSoft, Inc.. All rights reserved.