T
- Property typepublic interface BeanProperty<T> extends PathProperty<T>
PathProperty
, providing additional configuration informations and
read/write methods.
This class is mainly intended for internal use.
BeanIntrospector
Modifier and Type | Interface and Description |
---|---|
static interface |
BeanProperty.Builder<T>
BeanProperty builder.
|
PathProperty.PathPropertyBuilder<T>
CloneableProperty.CloneablePathProperty<T,P extends Property<T> & Path<T>>
Property.PropertyAccessException, Property.PropertyNotFoundException, Property.PropertyReadException, Property.PropertyReadOnlyException, Property.PropertyWriteException
Localizable.LocalizableBuilder, Localizable.LocalizationException
Expression.ExpressionResolverFunction<E extends Expression,R extends Expression>, Expression.InvalidExpressionException
Path.FinalPath<T>, Path.PathBuilder<T>
PATH_HIERARCHY_SEPARATOR
DEFAULT_CONFIG_PROPERTY_PREFIX, PATH
Modifier and Type | Method and Description |
---|---|
static <T> BeanProperty.Builder<T> |
builder(String name,
Class<T> type)
Get a builder to create a
BeanProperty . |
<A extends Annotation> |
getAnnotation(Class<A> annotationClass)
Gets the annotation of given
annotationClass type declared on this property, if available. |
Optional<Field> |
getField()
Get the field to which the bean property is bound
|
Optional<BeanProperty<?>> |
getParentProperty()
Get the parent bean property, if any
|
Optional<Method> |
getReadMethod()
Get the bean method to be used to read property value, if available.
|
Optional<Integer> |
getSequence()
Get the property sequence within a property set, if configured.
|
Optional<Method> |
getWriteMethod()
Get the bean method to be used to write property value, if available.
|
default <A extends Annotation> |
hasAnnotation(Class<A> annotationClass)
Checks whether an annotation of given
annotationClass is present on this property. |
boolean |
isIdentifier()
Get whether the property is declared as an identifier for the bean property set.
|
create, create, isReadOnly
clone
getConfiguration, getConvertedValue, getConverter, getExpressionValueConverter, getName, getTemporalType, getType, present, render, renderIfAvailable
getValidators, validate
builder, getMessage, getMessageArguments, getMessageCode, of, of
hasConfiguration
getModelType, getModelValue
isCollectionExpression, isConverterExpression
validate
asc, desc, from
fullName, fullName, getName, getParent, isRootPath, of, relativeName, relativeName, stream
getDataPath, isDataMappable
between, count, eq, eq, goe, goe, gt, gt, in, in, in, isNotNull, isNull, loe, loe, lt, lt, max, min, neq, neq, nin, nin, nin
bean, constant, countAll, path, propertySet, propertySet
Optional<BeanProperty<?>> getParentProperty()
Optional<Method> getReadMethod()
Optional<Method> getWriteMethod()
Optional<Field> getField()
Optional<Integer> getSequence()
boolean isIdentifier()
true
if it is an identifier property, false
otherwise<A extends Annotation> Optional<A> getAnnotation(Class<A> annotationClass)
annotationClass
type declared on this property, if available.
Only annotations declared on the Field
which corresponds to this property are taken into account, any
annotation on read/write methods is ignored.
A
- Annotation typeannotationClass
- Annotation class to obtaindefault <A extends Annotation> boolean hasAnnotation(Class<A> annotationClass)
annotationClass
is present on this property.A
- Annotation typeannotationClass
- Annotation class to checktrue
if an annotation of given type is present on this property, false
otherwisestatic <T> BeanProperty.Builder<T> builder(String name, Class<T> type)
BeanProperty
.T
- Property typename
- Property name (not null)type
- Property type (not null)Copyright © 2019 The Holon Platform. All rights reserved.