T - Property typepublic interface BeanProperty<T> extends PathProperty<T>
PathProperty, providing additional configuration informations and
methods.BeanIntrospector| Modifier and Type | Interface and Description |
|---|---|
static interface |
BeanProperty.Builder<T>
BeanProperty builder.
|
PathProperty.PathPropertyBuilder<T>Property.PropertyAccessException, Property.PropertyNotFoundException, Property.PropertyReadException, Property.PropertyReadOnlyException, Property.PropertyWriteExceptionLocalizable.LocalizableBuilder, Localizable.LocalizationExceptionPath.FinalPath<T>, Path.PathBuilder<T>Expression.ExpressionResolverFunction<E extends Expression,R extends Expression>, Expression.InvalidExpressionExceptionPATH_HIERARCHY_SEPARATOR| Modifier and Type | Method and Description |
|---|---|
static <T> BeanProperty.Builder<T> |
builder(String name,
Class<T> type)
Get a builder to create a
BeanProperty. |
<NT> BeanProperty.Builder<NT> |
clone(Class<NT> type)
Clone this property to obtain a property with same configuration but different type.
|
<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. |
asc, avg, between, clone, contains, contains, containsIgnoreCase, count, create, create, desc, endsWith, endsWith, endsWithIgnoreCase, eq, eq, goe, goe, gt, gt, in, in, in, isNotNull, isNull, isReadOnly, loe, loe, lt, lt, max, min, neq, neq, nin, nin, nin, startsWith, startsWith, startsWithIgnoreCase, sumgetConfiguration, getConvertedValue, getConverter, getType, present, render, renderIfAvailablegetValidators, validatebuilder, getMessage, getMessageArguments, getMessageCodefromfullName, getName, getParent, getType, isRootPath, of, relativeName, streamgetTypevalidategetTypeOptional<BeanProperty<?>> getParentProperty()
Optional<Method> getReadMethod()
Optional<Method> getWriteMethod()
Optional<Field> getField()
Optional<Integer> getSequence()
<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
otherwise<NT> BeanProperty.Builder<NT> clone(Class<NT> type)
PropertyValueConverter or Validator is not inherited from the cloned property.NT - Type of the cloned propertytype - New property type (not null)BeanProperty builder for the newly created propertystatic <T> BeanProperty.Builder<T> builder(String name, Class<T> type)
BeanProperty.T - Property typename - Property name (not null)type - Property type (not null)Copyright © 2017 The Holon Platform. All rights reserved.