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.gilecode.yagson.strategy.ExcludeClassesAssignableTo.java

/**
 * Excludes classes which are assignable to one of the specified classes, i.e. these classes and all subclasses.
 *
 * @author Andrey Mogilev
 */
public class ExcludeClassesAssignableTo implements ExclusionStrategy {

From source file com.gilecode.yagson.strategy.ExcludeFieldsByDeclaringClasses.java

/**
 * Excludes fields declared in one of the specified classes (not subclasses!).
 *
 * @author Andrey Mogilev
 */
public class ExcludeFieldsByDeclaringClasses implements ExclusionStrategy {

From source file com.gilecode.yagson.strategy.ExcludeFieldsInClassesByNames.java

/**
 * Excludes fields in the specified classes or their subclasses by the field names.
 *
 * @author Andrey Mogilev
 */
public class ExcludeFieldsInClassesByNames implements ExclusionStrategy {

From source file com.google.caliper.json.AnnotationExclusionStrategy.java

/**
 * An exclusion strategy that excludes elements annotated with {@link ExcludeFromJson}.
 */
final class AnnotationExclusionStrategy implements ExclusionStrategy {
    @Override
    public boolean shouldSkipField(FieldAttributes f) {

From source file com.gst.infrastructure.core.api.ParameterListExclusionStrategy.java

public class ParameterListExclusionStrategy implements ExclusionStrategy {

    private final Set<String> parameterNamesToSkip;

    public ParameterListExclusionStrategy(final Set<String> parameterNamesToSkip) {
        this.parameterNamesToSkip = parameterNamesToSkip;

From source file com.gst.infrastructure.core.api.ParameterListInclusionStrategy.java

public class ParameterListInclusionStrategy implements ExclusionStrategy {

    private final Set<String> parameterNamesToInclude;

    public ParameterListInclusionStrategy(final Set<String> parameterNamesToSkip) {
        this.parameterNamesToInclude = parameterNamesToSkip;

From source file com.ilearnrw.reader.types.LogBasicExclusionStrategy.java

public class LogBasicExclusionStrategy implements ExclusionStrategy {
    private Class<?> c;
    private ArrayList<String> fieldNames;

    public LogBasicExclusionStrategy(String... skipVariables)
            throws SecurityException, NoSuchFieldException, ClassNotFoundException {

From source file com.intuit.wasabi.tests.library.util.serialstrategies.SerializationStrategy.java

/**
 * SerializationStrategies are used by the model classes for Gsonserialization.
 */
public interface SerializationStrategy extends ExclusionStrategy {

    /**

From source file com.itametis.jsonconverter.ignorestrategy.ReadIgnoreStrategy.java

/**
 *
 * @author <a href="mailto:chloe.mahalin@itametis.com">Chlo MAHALIN - ITAMETIS</a>
 */
public class ReadIgnoreStrategy implements ExclusionStrategy {

From source file com.itametis.jsonconverter.ignorestrategy.WriteIgnoreStrategy.java

/**
 *
 * @author <a href="mailto:chloe.mahalin@itametis.com">Chlo MAHALIN - ITAMETIS</a>
 */
public class WriteIgnoreStrategy implements ExclusionStrategy {