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

org.hibernate.validator.internal.engine.valueextraction.AnnotatedObject 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.engine.valueextraction;

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

/**
 * A pseudo type variable used to express that the annotated element itself (e.g. a list) has been marked for
 * cascaded validation.
 *
 * @author Gunnar Morling
 */
public class AnnotatedObject implements TypeVariable> {

	public static final AnnotatedObject INSTANCE = new AnnotatedObject();

	private AnnotatedObject() {
	}

	@Override
	public  T getAnnotation(Class annotationClass) {
		throw new UnsupportedOperationException();
	}

	@Override
	public Annotation[] getAnnotations() {
		throw new UnsupportedOperationException();
	}

	@Override
	public Annotation[] getDeclaredAnnotations() {
		throw new UnsupportedOperationException();
	}

	@Override
	public Type[] getBounds() {
		throw new UnsupportedOperationException();
	}

	@Override
	public Class getGenericDeclaration() {
		throw new UnsupportedOperationException();
	}

	@Override
	public String getName() {
		throw new UnsupportedOperationException();
	}

	@Override
	public AnnotatedType[] getAnnotatedBounds() {
		throw new UnsupportedOperationException();
	}

	@Override
	public String toString() {
		return "AnnotatedObject.INSTANCE";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy