Class HibernateOrmDynamicMapRawTypeModel
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.model.spi.AbstractPojoRawTypeModel<Map,HibernateOrmBootstrapIntrospector>
-
- org.hibernate.search.mapper.orm.model.impl.HibernateOrmDynamicMapRawTypeModel
-
- All Implemented Interfaces:
MappableTypeModel,PojoRawTypeModel<Map>,PojoTypeModel<Map>
public class HibernateOrmDynamicMapRawTypeModel extends AbstractPojoRawTypeModel<Map,HibernateOrmBootstrapIntrospector>
-
-
Field Summary
-
Fields inherited from class org.hibernate.search.mapper.pojo.model.spi.AbstractPojoRawTypeModel
introspector, typeIdentifier
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<Annotation>annotations()Optional<? extends PojoTypeModel<?>>arrayElementType()Stream<PojoRawTypeModel<? super Map>>ascendingSuperTypes()protected List<PojoConstructorModel<Map>>createDeclaredConstructors()protected org.hibernate.search.mapper.orm.model.impl.HibernateOrmDynamicMapPropertyModel<?>createPropertyModel(String propertyName)protected Stream<String>declaredPropertyNames()Stream<PojoRawTypeModel<? super Map>>descendingSuperTypes()protected PojoTypeModel<? extends Map>doCast(PojoTypeModel<?> other)booleanisAbstract()booleanisSubTypeOf(MappableTypeModel superTypeCandidate)Optional<? extends PojoTypeModel<?>>typeArgument(Class<?> rawSuperType, int typeParameterIndex)-
Methods inherited from class org.hibernate.search.mapper.pojo.model.spi.AbstractPojoRawTypeModel
cast, caster, castTo, constructor, declaredConstructors, declaredProperties, equals, hashCode, mainConstructor, name, property, toString, typeIdentifier
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.search.mapper.pojo.model.spi.PojoRawTypeModel
rawType
-
-
-
-
Method Detail
-
isAbstract
public final boolean isAbstract()
- Returns:
trueif this type is abstract, i.e. it cannot be instantiated as-is (but may be as a subtype).falseotherwise.
-
isSubTypeOf
public boolean isSubTypeOf(MappableTypeModel superTypeCandidate)
- Parameters:
superTypeCandidate- Another type that should be assessed as a supertype.- Returns:
trueif this type is a subtype ofsuperTypeCandidate, i.e. ifsuperTypeCandidateis mentioned inMappableTypeModel.ascendingSuperTypes().falseotherwise.
-
ascendingSuperTypes
public Stream<PojoRawTypeModel<? super Map>> ascendingSuperTypes()
- Returns:
- The supertypes of the current type, in ascending order.
-
descendingSuperTypes
public Stream<PojoRawTypeModel<? super Map>> descendingSuperTypes()
- Returns:
- The supertypes of the current type, in descending order.
-
typeArgument
public Optional<? extends PojoTypeModel<?>> typeArgument(Class<?> rawSuperType, int typeParameterIndex)
- Parameters:
rawSuperType- The supertype to resolve type parameters fortypeParameterIndex- The index of the type parameter to resolve- Returns:
- The model for the type argument for the type parameter defined in
rawSuperTypeat indextypeParameterIndex, or an empty optional if the current type does not extendrawSuperType. Implementations may decide to return a model of the raw type argument, or to retain generics information.
-
arrayElementType
public Optional<? extends PojoTypeModel<?>> arrayElementType()
- Returns:
- The model for the array element type, or an empty optional if the current type is not an array type. Implementations may decide to return a model of the raw array element type, or to retain generics information.
-
annotations
public Stream<Annotation> annotations()
- Returns:
- All annotations on this specific type (non-inherited annotations from supertype are excluded).
-
createDeclaredConstructors
protected List<PojoConstructorModel<Map>> createDeclaredConstructors()
- Specified by:
createDeclaredConstructorsin classAbstractPojoRawTypeModel<Map,HibernateOrmBootstrapIntrospector>
-
doCast
protected PojoTypeModel<? extends Map> doCast(PojoTypeModel<?> other)
- Overrides:
doCastin classAbstractPojoRawTypeModel<Map,HibernateOrmBootstrapIntrospector>
-
declaredPropertyNames
protected Stream<String> declaredPropertyNames()
- Specified by:
declaredPropertyNamesin classAbstractPojoRawTypeModel<Map,HibernateOrmBootstrapIntrospector>
-
createPropertyModel
protected org.hibernate.search.mapper.orm.model.impl.HibernateOrmDynamicMapPropertyModel<?> createPropertyModel(String propertyName)
- Specified by:
createPropertyModelin classAbstractPojoRawTypeModel<Map,HibernateOrmBootstrapIntrospector>
-
-