List of usage examples for com.google.gson TypeAdapter subclass-usage
From source file org.mule.runtime.extension.internal.persistence.metadata.MetadataKeyTypeAdapter.java
public class MetadataKeyTypeAdapter extends TypeAdapter<MetadataKey> { private Gson gson = new GsonBuilder().create(); @Override public void write(JsonWriter out, MetadataKey value) throws IOException {
From source file org.mule.runtime.extension.internal.persistence.ModelPropertyMapTypeAdapter.java
/**
* {@link TypeAdapter} implementation that knows how to serialize and deserialize {@code Map<Class<? extends ModelProperty>, ModelProperty>}.
* This {@link TypeAdapter} has been created at this level, and not just a {@link TypeAdapter<ModelProperty>}, to be able
* to easily tag every object with a representative name of the class.
* <p>
* Due to the nature of {@link ModelProperty}, that can be dynamically attached to any {@link EnrichableModel}, only
From source file org.mule.runtime.extension.internal.persistence.MuleVersionTypeAdapter.java
/** * {@link TypeAdapter} implementation which serializes {@link MuleVersion} instances * * @since 1.0 */ public class MuleVersionTypeAdapter extends TypeAdapter<MuleVersion> {
From source file org.mule.runtime.extension.internal.persistence.OperationModelTypeAdapter.java
/**
* A {@link TypeAdapter} for serializing instances of {@link OperationModel} and all its
* child interfaces
*
* @since 1.0
*/
From source file org.mule.runtime.extension.internal.persistence.SubTypesModelTypeAdapter.java
/** * {@link TypeAdapter} implementation which serializes {@link SubTypesModel} instances * * @since 1.0 */ public class SubTypesModelTypeAdapter extends TypeAdapter<SubTypesModel> {
From source file org.mule.runtime.extension.internal.persistence.XmlDslModelTypeAdapter.java
/** * A {@link TypeAdapter} for serializing instances of {@link XmlDslModel} * * @since 1.0 */ public class XmlDslModelTypeAdapter extends TypeAdapter<XmlDslModel> {
From source file org.netscan.core.json.CredentialJsonAdapter.java
/**
* Author Rigoberto Leander Salgado Reyes <rlsalgado2006@gmail.com>
* <p>
* Copyright 2015 by Rigoberto Leander Salgado Reyes.
* <p>
* This program is licensed to you under the terms of version 3 of the
From source file org.netscan.core.json.FilterJsonAdapter.java
/**
* Author Rigoberto Leander Salgado Reyes <rlsalgado2006@gmail.com>
* <p>
* Copyright 2015 by Rigoberto Leander Salgado Reyes.
* <p>
* This program is licensed to you under the terms of version 3 of the
From source file org.netscan.core.json.IPv4JsonAdapter.java
/**
* Author Rigoberto Leander Salgado Reyes <rlsalgado2006@gmail.com>
* <p>
* Copyright 2015 by Rigoberto Leander Salgado Reyes.
* <p>
* This program is licensed to you under the terms of version 3 of the
From source file org.netxms.websvc.json.adapters.DateAdapter.java
/** * Type adapter for Date class */ public class DateAdapter extends TypeAdapter<Date> { /* (non-Javadoc) * @see com.google.gson.TypeAdapter#write(com.google.gson.stream.JsonWriter, java.lang.Object)