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 typeAll Implemented Interfaces:
PropertyDefinition<T,V>
,Serializable
Direct Known Subclasses:
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
Constructors Constructor Description AbstractBeanPropertyDefinition(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
All Methods Modifier and Type Method Description String
getCaption()
Gets the human readable caption to show for this property.
protected PropertyDescriptor
getDescriptor()
Gets the property descriptor of this instance.
String
getName()
Gets the full name of this property.
Class<?>
getPropertyHolderType()
Gets the type of the class containing this property.
BeanPropertySet<T>
getPropertySet()
Gets the
PropertySet
that this property belongs to.Class<V>
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 Detail
-
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 Detail
-
getType
public Class<V> 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
public String 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
public String 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
public BeanPropertySet<T> getPropertySet()
Description copied from interface:
PropertyDefinition
Gets the
PropertySet
that this property belongs to.Specified by:
getPropertySet
in interfacePropertyDefinition<T,V>
Returns:
the property set, not
null
-
getDescriptor
protected PropertyDescriptor getDescriptor()
Gets the property descriptor of this instance.
Returns:
the property descriptor
-
getPropertyHolderType
public Class<?> 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
-
-