Class AbstractPojoHCAnnPropertyModel<T,I extends AbstractPojoHCAnnBootstrapIntrospector>
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.model.hcann.spi.AbstractPojoHCAnnPropertyModel<T,I>
-
- All Implemented Interfaces:
PojoPropertyModel<T>
public abstract class AbstractPojoHCAnnPropertyModel<T,I extends AbstractPojoHCAnnBootstrapIntrospector> extends Object implements PojoPropertyModel<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected List<XProperty>declaredXPropertiesThe declared XProperties for this property in the holder type.protected AbstractPojoHCAnnRawTypeModel<?,I>holderTypeModelprotected Iintrospectorprotected Stringname
-
Constructor Summary
Constructors Constructor Description AbstractPojoHCAnnPropertyModel(I introspector, AbstractPojoHCAnnRawTypeModel<?,I> holderTypeModel, String name, List<XProperty> declaredXProperties, List<Member> members)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Stream<Annotation>annotations()protected abstract ValueReadHandle<T>createHandle(Member member)ValueReadHandle<T>handle()protected Membermember()Stringname()PojoTypeModel<T>typeModel()
-
-
-
Field Detail
-
introspector
protected final I extends AbstractPojoHCAnnBootstrapIntrospector introspector
-
holderTypeModel
protected final AbstractPojoHCAnnRawTypeModel<?,I extends AbstractPojoHCAnnBootstrapIntrospector> holderTypeModel
-
name
protected final String name
-
-
Method Detail
-
name
public final String name()
- Specified by:
namein interfacePojoPropertyModel<T>- Returns:
- The name of this property, without the
get/setprefixes of getters/setters.
-
annotations
public final Stream<Annotation> annotations()
- Specified by:
annotationsin interfacePojoPropertyModel<T>- Returns:
- All annotations on this property.
-
typeModel
public final PojoTypeModel<T> typeModel()
- Specified by:
typeModelin interfacePojoPropertyModel<T>- Returns:
- A model of this property's type. Implementations may decide to implement their own,
but could also simply use
GenericContextAwarePojoGenericTypeModel.
-
handle
public final ValueReadHandle<T> handle()
- Specified by:
handlein interfacePojoPropertyModel<T>- Returns:
- A handle to read the value of this property on a instance of its hosting type.
-
member
protected final Member member()
-
createHandle
protected abstract ValueReadHandle<T> createHandle(Member member) throws ReflectiveOperationException
- Throws:
ReflectiveOperationException
-
-