All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.openyelp.server.NoGsonExclusionStrategy Maven / Gradle / Ivy

There is a newer version: 1.04
Show newest version
package com.openyelp.server;

import com.google.gson.ExclusionStrategy;
import com.google.gson.FieldAttributes;
import com.openyelp.annotation.NoGson;

public class NoGsonExclusionStrategy implements ExclusionStrategy {

	@Override
	public boolean shouldSkipField(FieldAttributes f) {
		NoGson gson=	f.getAnnotation(NoGson.class);
		if(gson!=null){
			return true;
		}else{
			return false;

		}
	}

	@Override
	public boolean shouldSkipClass(Class clazz) {
		// TODO Auto-generated method stub
		return false;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy