Class ErrorModelToIdentifierTypeAdapter
java.lang.Object
com.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.error.ErrorModel>
org.mule.runtime.extension.internal.persistence.ErrorModelToIdentifierTypeAdapter
public class ErrorModelToIdentifierTypeAdapter
extends com.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.error.ErrorModel>
TypeAdapter implementation for ErrorModel, which serializes it as error identifiers. An error identifier
follows the ComponentIdentifier structure, errorNamespace:errorType.- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionErrorModelToIdentifierTypeAdapter(Map<String, org.mule.runtime.api.meta.model.error.ErrorModel> errorModelMap) -
Method Summary
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
ErrorModelToIdentifierTypeAdapter
-
-
Method Details
-
write
public void write(com.google.gson.stream.JsonWriter out, org.mule.runtime.api.meta.model.error.ErrorModel value) throws IOException - Specified by:
writein classcom.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.error.ErrorModel>- Throws:
IOException
-
read
public org.mule.runtime.api.meta.model.error.ErrorModel read(com.google.gson.stream.JsonReader in) throws IOException - Specified by:
readin classcom.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.error.ErrorModel>- Throws:
IOException
-