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

com.sap.cloud.servicesdk.prov.jacksonutil.ExclusionAnnotationIntrospector Maven / Gradle / Ivy

/*******************************************************************************
 * (c) 201X SAP SE or an SAP affiliate company. All rights reserved.
 ******************************************************************************/
package com.sap.cloud.servicesdk.prov.jacksonutil;

import java.lang.annotation.Annotation;

import com.fasterxml.jackson.databind.introspect.Annotated;
import com.fasterxml.jackson.databind.introspect.AnnotatedField;
import com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector;

public class ExclusionAnnotationIntrospector extends JacksonAnnotationIntrospector {
	@Override
	protected boolean _isIgnorable(Annotated a) {
		 
		if (!(a instanceof AnnotatedField))
			return false;
		Iterable annotations = a.annotations();
		for (Annotation annotation : annotations) {
			if (annotation instanceof  com.sap.cloud.sdk.result.ElementName)
				return false;
		}
		return true;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy