public class ErrorModelToIdentifierTypeAdapter extends com.google.gson.TypeAdapter<ErrorModel>
TypeAdapter implementation for ErrorModel, which serializes it as error identifiers. An error identifier
follows the ComponentIdentifier structure, errorNamespace:errorType.| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE |
static String |
TYPE |
| Constructor and Description |
|---|
ErrorModelToIdentifierTypeAdapter(Map<String,ErrorModel> errorModelMap) |
| Modifier and Type | Method and Description |
|---|---|
ErrorModel |
read(com.google.gson.stream.JsonReader in) |
void |
write(com.google.gson.stream.JsonWriter out,
ErrorModel value) |
public static final String TYPE
public static final String NAMESPACE
public ErrorModelToIdentifierTypeAdapter(Map<String,ErrorModel> errorModelMap)
public void write(com.google.gson.stream.JsonWriter out,
ErrorModel value)
throws IOException
write in class com.google.gson.TypeAdapter<ErrorModel>IOExceptionpublic ErrorModel read(com.google.gson.stream.JsonReader in) throws IOException
read in class com.google.gson.TypeAdapter<ErrorModel>IOExceptionCopyright © 2022 MuleSoft, Inc.. All rights reserved.