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
ConstructorDescriptionAbstractBeanPropertyDefinition
(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.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
-
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
-