public class ComponentResultJsonSerializer<T extends ComponentModel> extends Object
MetadataResult
of a ComponentMetadataDescriptor
type into a readable and
processable JSON representation and from a JSON String
to an MetadataResult
instanceModifier and Type | Field and Description |
---|---|
protected com.google.gson.Gson |
gson |
Constructor and Description |
---|
ComponentResultJsonSerializer() |
ComponentResultJsonSerializer(boolean prettyPrint) |
Modifier and Type | Method and Description |
---|---|
MetadataResult<ComponentMetadataDescriptor<T>> |
deserialize(String metadataResult)
Deserializes a JSON representation of an
MetadataResult , to an actual instance of it. |
String |
serialize(MetadataResult<ComponentMetadataDescriptor<T>> metadataResult) |
public ComponentResultJsonSerializer()
public ComponentResultJsonSerializer(boolean prettyPrint)
public String serialize(MetadataResult<ComponentMetadataDescriptor<T>> metadataResult)
metadataResult
- the MetadataResult
to be serializedString
JSON representation of the MetadataResult
public MetadataResult<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 © 2018. All rights reserved.