Class ImportedTypesModelTypeAdapter
java.lang.Object
com.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.ImportedTypeModel>
org.mule.runtime.extension.internal.persistence.ImportedTypesModelTypeAdapter
public class ImportedTypesModelTypeAdapter
extends com.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.ImportedTypeModel>
TypeAdapter implementation which serializes ImportedTypeModel instances- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance which doesn't handle type references. -
Method Summary
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
ImportedTypesModelTypeAdapter
public ImportedTypesModelTypeAdapter()Creates a new instance which doesn't handle type references. Types are described (no ref) in the imported types section.
-
-
Method Details
-
write
public void write(com.google.gson.stream.JsonWriter out, org.mule.runtime.api.meta.model.ImportedTypeModel value) throws IOException - Specified by:
writein classcom.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.ImportedTypeModel>- Throws:
IOException
-
read
public org.mule.runtime.api.meta.model.ImportedTypeModel read(com.google.gson.stream.JsonReader in) throws IOException - Specified by:
readin classcom.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.ImportedTypeModel>- Throws:
IOException
-