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

org.hibernate.validator.internal.properties.javabean.JavaBeanAnnotatedElement Maven / Gradle / Ivy

There is a newer version: 8.0.1.Final
Show newest version
/*
 * Hibernate Validator, declare and validate application constraints
 *
 * License: Apache License, Version 2.0
 * See the license.txt file in the root directory or .
 */
package org.hibernate.validator.internal.properties.javabean;

import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedType;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;

/**
 * @author Guillaume Smet
 */
public interface JavaBeanAnnotatedElement {

	Type getType();

	AnnotatedType getAnnotatedType();

	Annotation[] getDeclaredAnnotations();

	Type getGenericType();

	TypeVariable[] getTypeParameters();

	 A getAnnotation(Class annotationClass);

	default boolean isAnnotationPresent(Class annotationClass) {
		return getAnnotation( annotationClass ) != null;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy