
org.hibernate.search.mapper.pojo.model.PojoModelElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-mapper-pojo-base Show documentation
Show all versions of hibernate-search-mapper-pojo-base Show documentation
Abstract base and common implementations for Hibernate Search Mappers for POJOs
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