Class AbstractPojoHCAnnRawTypeModel<T,I extends AbstractPojoHCAnnBootstrapIntrospector>
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.model.spi.AbstractPojoRawTypeModel<T,I>
-
- org.hibernate.search.mapper.pojo.model.hcann.spi.AbstractPojoHCAnnRawTypeModel<T,I>
-
- All Implemented Interfaces:
MappableTypeModel
,PojoRawTypeModel<T>
,PojoTypeModel<T>
public abstract class AbstractPojoHCAnnRawTypeModel<T,I extends AbstractPojoHCAnnBootstrapIntrospector> extends AbstractPojoRawTypeModel<T,I>
-
-
Field Summary
Fields Modifier and Type Field Description protected org.hibernate.annotations.common.reflection.XClass
xClass
-
Fields inherited from class org.hibernate.search.mapper.pojo.model.spi.AbstractPojoRawTypeModel
introspector, typeIdentifier
-
-
Constructor Summary
Constructors Constructor Description AbstractPojoHCAnnRawTypeModel(I introspector, PojoRawTypeIdentifier<T> typeIdentifier, GenericContextAwarePojoGenericTypeModel.RawTypeDeclaringContext<T> rawTypeDeclaringContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<Annotation>
annotations()
PojoTypeModel<? extends T>
cast(PojoTypeModel<?> other)
protected Map<String,org.hibernate.annotations.common.reflection.XProperty>
declaredFieldAccessXPropertiesByName()
protected Map<String,List<org.hibernate.annotations.common.reflection.XProperty>>
declaredMethodAccessXPropertiesByName()
protected Member
declaredPropertyField(String propertyName)
protected List<Member>
declaredPropertyGetters(String propertyName)
protected Stream<String>
declaredPropertyNames()
boolean
isAbstract()
boolean
isSubTypeOf(MappableTypeModel other)
-
Methods inherited from class org.hibernate.search.mapper.pojo.model.spi.AbstractPojoRawTypeModel
caster, castTo, createPropertyModel, declaredProperties, equals, hashCode, 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
ascendingSuperTypes, descendingSuperTypes, rawType
-
-
-
-
Constructor Detail
-
AbstractPojoHCAnnRawTypeModel
public AbstractPojoHCAnnRawTypeModel(I introspector, PojoRawTypeIdentifier<T> typeIdentifier, GenericContextAwarePojoGenericTypeModel.RawTypeDeclaringContext<T> rawTypeDeclaringContext)
-
-
Method Detail
-
isAbstract
public boolean isAbstract()
- Returns:
true
if this type is abstract, i.e. it cannot be instantiated as-is (but may be as a subtype).false
otherwise.
-
isSubTypeOf
public final boolean isSubTypeOf(MappableTypeModel other)
- Parameters:
other
- Another type that should be assessed as a supertype.- Returns:
true
if this type is a subtype ofsuperTypeCandidate
, i.e. ifsuperTypeCandidate
is mentioned inMappableTypeModel.ascendingSuperTypes()
.false
otherwise.
-
annotations
public Stream<Annotation> annotations()
-
cast
public PojoTypeModel<? extends T> cast(PojoTypeModel<?> other)
- Parameters:
other
- The type to cast to this type.- Returns:
- A new type model, representing the given type cast to this type.
If casting is not possible, returns
this
. If casting is possible, the returned type type model will retain as much contextual type information as possible (type arguments, ...), so castingList<Integer>
toCollection
for example would returnCollection<Integer>
.
-
declaredPropertyNames
protected final Stream<String> declaredPropertyNames()
- Specified by:
declaredPropertyNames
in classAbstractPojoRawTypeModel<T,I extends AbstractPojoHCAnnBootstrapIntrospector>
-
declaredFieldAccessXPropertiesByName
protected final Map<String,org.hibernate.annotations.common.reflection.XProperty> declaredFieldAccessXPropertiesByName()
-
declaredMethodAccessXPropertiesByName
protected final Map<String,List<org.hibernate.annotations.common.reflection.XProperty>> declaredMethodAccessXPropertiesByName()
-
-