List of usage examples for com.google.gson ExclusionStrategy interface-usage
From source file com.uwimonacs.fstmobile.util.GsonExclude.java
public class GsonExclude implements ExclusionStrategy { @Override public boolean shouldSkipClass(Class<?> arg0) { return false; }
From source file com.xse.optstack.persconftool.base.persistence.EmfExclusionStrategy.java
/**
* {@link ExclusionStrategy} implementation to filter EMF specific fields from JSON persistence.
*
* @author philipb
*
*/
From source file de.grobmeier.postmark.SkipMeExclusionStrategy.java
/**
* Postmark for Java
* <p/>
* This library can be used to leverage the postmarkapp.com functionality from a Java client
* <p/>
* http://github.com/jaredholdcroft/postmark-java
From source file dk.ilios.spanner.json.AnnotationExclusionStrategy.java
/** * An exclusion strategy that excludes elements annotated with {@link ExcludeFromJson}. */ public final class AnnotationExclusionStrategy implements ExclusionStrategy { @Override public boolean shouldSkipField(FieldAttributes f) {
From source file dtu.ds.warnme.ws.rest.json.gson.exclusionStrategies.PasswordExclusionStrategy.java
/** * @author Bartosz Cichecki */ public class PasswordExclusionStrategy implements ExclusionStrategy { private Class<?> clazz;
From source file Editor.EstrategiaGuardado.java
/**
* Estrategia de guardado para el guardado con Gson del mapa. <br>
* Hace que no se guarden los atributos "mapa" y "juego" para evitar bucles
* infinitos.
* @author David Campos Rodrguez <a href="mailto:david.campos@rai.usc.es">david.campos@rai.usc.es</a>
*/
From source file es.cenobit.struts2.json.JsonSerializerExclusionStrategy.java
public class JsonSerializerExclusionStrategy implements ExclusionStrategy { @SuppressWarnings("rawtypes") private final Set toExcludeClasses; private final Set<String> fieldsToExclude;
From source file es.sm2.openppm.utils.json.Exclusion.java
public class Exclusion implements ExclusionStrategy { private final Class<?> typeToSkip; private final List<String> nameExlusion; public Exclusion(Class<?> typeToSkip) {
From source file hd3gtv.tools.GsonIgnoreStrategy.java
public class GsonIgnoreStrategy implements ExclusionStrategy { static final boolean DEBUG = false; public boolean shouldSkipField(FieldAttributes f) { if (DEBUG) {
From source file helper.JsonExcludeStrategy.java
/** * * @author Tuhama * not used for now */ public class JsonExcludeStrategy implements ExclusionStrategy {