Package com.vaadin.flow.data.binder
Class AbstractBeanPropertyDefinition<T,V>
java.lang.Object
com.vaadin.flow.data.binder.AbstractBeanPropertyDefinition<T,V>
- Type Parameters:
T
- the type of the property setV
- the property type
- All Implemented Interfaces:
PropertyDefinition<T,
,V> Serializable
- Direct Known Subclasses:
BeanPropertySet.NestedBeanPropertyDefinition
public abstract class AbstractBeanPropertyDefinition<T,V>
extends Object
implements PropertyDefinition<T,V>
Abstract base class for PropertyDefinition implementations for beans.
For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractBeanPropertyDefinition
(BeanPropertySet<T> propertySet, Class<?> propertyHolderType, PropertyDescriptor descriptor) Constructor for setting the immutable descriptor, property set and property holder type used by this instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the human readable caption to show for this property.protected PropertyDescriptor
Gets the property descriptor of this instance.getName()
Gets the full name of this property.Class<?>
Gets the type of the class containing this property.Gets thePropertySet
that this property belongs to.getType()
Gets the type of this property.boolean
Gets whether the type of this property references a generic type (thusPropertyDefinition.getType()
will returnObject
) or a concrete type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.data.binder.PropertyDefinition
getGetter, getParent, getSetter, getTopLevelName, isSubProperty
-
Constructor Details
-
AbstractBeanPropertyDefinition
public AbstractBeanPropertyDefinition(BeanPropertySet<T> propertySet, Class<?> propertyHolderType, PropertyDescriptor descriptor) Constructor for setting the immutable descriptor, property set and property holder type used by this instance.- Parameters:
propertySet
- property set this property belongs topropertyHolderType
- property holder typedescriptor
- property descriptor
-
-
Method Details
-
getType
Description copied from interface:PropertyDefinition
Gets the type of this property.- Specified by:
getType
in interfacePropertyDefinition<T,
V> - Returns:
- the property type. not
null
-
isGenericType
public boolean isGenericType()Description copied from interface:PropertyDefinition
Gets whether the type of this property references a generic type (thusPropertyDefinition.getType()
will returnObject
) or a concrete type.- Specified by:
isGenericType
in interfacePropertyDefinition<T,
V> - Returns:
true
if the type of this property references a generic type,false
otherwise
-
getName
Description copied from interface:PropertyDefinition
Gets the full name of this property.- Specified by:
getName
in interfacePropertyDefinition<T,
V> - Returns:
- the property name, not
null
-
getCaption
Description copied from interface:PropertyDefinition
Gets the human readable caption to show for this property.- Specified by:
getCaption
in interfacePropertyDefinition<T,
V> - Returns:
- the caption to show, not
null
-
getPropertySet
Description copied from interface:PropertyDefinition
Gets thePropertySet
that this property belongs to.- Specified by:
getPropertySet
in interfacePropertyDefinition<T,
V> - Returns:
- the property set, not
null
-
getDescriptor
Gets the property descriptor of this instance.- Returns:
- the property descriptor
-
getPropertyHolderType
Description copied from interface:PropertyDefinition
Gets the type of the class containing this property.- Specified by:
getPropertyHolderType
in interfacePropertyDefinition<T,
V> - Returns:
- the property type. not
null
-