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

    Constructors
    Constructor
    Description
    ErrorModelToIdentifierTypeAdapter(Map<String,org.mule.runtime.api.meta.model.error.ErrorModel> errorModelMap)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.mule.runtime.api.meta.model.error.ErrorModel
    read(com.google.gson.stream.JsonReader in)
     
    void
    write(com.google.gson.stream.JsonWriter out, org.mule.runtime.api.meta.model.error.ErrorModel value)
     

    Methods inherited from class com.google.gson.TypeAdapter

    fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ErrorModelToIdentifierTypeAdapter

      public ErrorModelToIdentifierTypeAdapter(Map<String,org.mule.runtime.api.meta.model.error.ErrorModel> errorModelMap)
  • 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:
      write in class com.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:
      read in class com.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.error.ErrorModel>
      Throws:
      IOException