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

org.hibernate.search.mapper.pojo.model.PojoModelElement Maven / Gradle / Ivy

The newest version!
/*
 * SPDX-License-Identifier: Apache-2.0
 * Copyright Red Hat Inc. and Hibernate Authors
 */
package org.hibernate.search.mapper.pojo.model;

import org.hibernate.search.util.common.annotation.Incubating;

/**
 * An element in the POJO model.
 *
 * @see PojoModelType
 * @see PojoModelProperty
 */
@Incubating
public interface PojoModelElement {

	/**
	 * @param clazz A {@link Class}.
	 * @return {@code true} if instances of the given class can be assigned to this element,
	 * {@code false} otherwise.
	 */
	boolean isAssignableTo(Class clazz);

	/**
	 * @return The {@link Class} representing the raw type of this element.
	 */
	Class rawType();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy