Example usage for com.google.gson ExclusionStrategy interface-usage

List of usage examples for com.google.gson ExclusionStrategy interface-usage

Introduction

In this page you can find the example usage for com.google.gson ExclusionStrategy interface-usage.

Usage

From source file com.jd.survey.web.settings.NowwebmanagerController.java

class TargetStrategy implements ExclusionStrategy {
    private static Logger log = LoggerFactory.getLogger(TargetStrategy.class);
    private Class<?> target;
    private String[] fields;
    private Class<?>[] clazz;
    private boolean reverse;

From source file com.jinais.gnlib.android.state.GNStateGsonExclusionStrategy.java

/**
 * Created by jkader on 10/11/14.
 */

public class GNStateGsonExclusionStrategy implements ExclusionStrategy {

From source file com.katsu.gson.exclusionstrategy.MvcExclusionStrategy.java

/**
 * Estrategia de exclusion para la libreria Gson para que no serialize
 * determinados campos. Eficaz para evitar recursion infinita o no serializar datos
 * innecesarios
 * @author katsu
 */

From source file com.linuxrouter.netcool.json.EntitySerializationExclusitionStrategy.java

/**
 * Com tempo fazer xD
 *
 * @author g0004218
 */
public class EntitySerializationExclusitionStrategy implements ExclusionStrategy {

From source file com.nimbits.server.gson.NimbitsExclusionStrategy.java

public class NimbitsExclusionStrategy implements ExclusionStrategy {
    private final Class<?> typeToSkip;

    NimbitsExclusionStrategy(Class<?> typeToSkip) {
        this.typeToSkip = typeToSkip;
    }

From source file com.postmark.java.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 com.softwaremagico.tm.json.AnnotationExclusionStrategy.java

public class AnnotationExclusionStrategy implements ExclusionStrategy {

    @Override
    public boolean shouldSkipField(FieldAttributes f) {
        return f.getAnnotation(ExcludeFromJson.class) != null;
    }

From source file com.solace.support.json.DefaultJsonExclusionStrategy.java

/**
 * By default we automatically exclude anything annotated 
 * with {@link JsonIgnore}
 * @author <a href="mailto:dan.williams@nbcuni.com">Daniel Williams</a>
 *
 */

From source file com.stoneapp.ourvlemoodle2.util.GsonExclude.java

public class GsonExclude implements ExclusionStrategy {
    @Override
    public boolean shouldSkipClass(Class<?> arg0) {
        return false;
    }

From source file com.tomeokin.lspush.data.support.GsonStrategy.java

public class GsonStrategy implements ExclusionStrategy {
    @Override
    public boolean shouldSkipField(FieldAttributes f) {
        return f.getAnnotation(GsonIgnore.class) != null;
    }