public final class JsonMetadataTypeLoader extends Object implements TypeLoader
TypeLoader that creates instances of MetadataType from JSON representations generated by
JsonMetadataTypeWriter.
Instances of this class are not thread safe, so only one deserialization at a time can be made with each instance.| Constructor and Description |
|---|
JsonMetadataTypeLoader() |
| Modifier and Type | Method and Description |
|---|---|
TypeBuilder |
buildType(com.google.gson.JsonElement jsonElement,
BaseTypeBuilder baseBuilder) |
Optional<MetadataType> |
load(com.google.gson.JsonElement jsonElement)
Parses a
MetadataType JSON representation and returns a new MetadataType instance. |
Optional<MetadataType> |
load(String typeIdentifier)
Parses a
MetadataType JSON representation and returns a new MetadataType instance. |
public Optional<MetadataType> load(String typeIdentifier)
MetadataType JSON representation and returns a new MetadataType instance.load in interface TypeLoadertypeIdentifier - MetadataType JSON representation as a StringOptional value of a MetadataTypepublic Optional<MetadataType> load(com.google.gson.JsonElement jsonElement)
MetadataType JSON representation and returns a new MetadataType instance.jsonElement - MetadataType JSON representation as a JsonElementOptional value of a MetadataTypepublic TypeBuilder buildType(com.google.gson.JsonElement jsonElement, BaseTypeBuilder baseBuilder)
Copyright © 2016 MuleSoft, Inc.. All rights reserved.