Package com.vaadin.data
Interface PropertyDefinition<T,V>
-
- Type Parameters:
T
- the type of the property setV
- the property type
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractBeanPropertyDefinition
,BeanPropertySet.NestedBeanPropertyDefinition
public interface PropertyDefinition<T,V> extends Serializable
A property from aPropertySet
.- Since:
- 8.0
- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getCaption()
Gets the human readable caption to show for this property.ValueProvider<T,V>
getGetter()
Gets the value provider that is used for finding the value of this property for a bean.String
getName()
Gets the full name of this property.Class<?>
getPropertyHolderType()
Gets the type of the class containing this property.PropertySet<T>
getPropertySet()
Gets thePropertySet
that this property belongs to.Optional<Setter<T,V>>
getSetter()
Gets an optional setter for storing a property value in a bean.default String
getTopLevelName()
Gets the top level name of this property.Class<V>
getType()
Gets the type of this property.
-
-
-
Method Detail
-
getGetter
ValueProvider<T,V> getGetter()
Gets the value provider that is used for finding the value of this property for a bean.- Returns:
- the getter, not
null
-
getSetter
Optional<Setter<T,V>> getSetter()
Gets an optional setter for storing a property value in a bean.- Returns:
- the setter, or an empty optional if this property is read-only
-
getPropertyHolderType
Class<?> getPropertyHolderType()
Gets the type of the class containing this property.- Returns:
- the property type. not
null
- Since:
- 8.1
-
getName
String getName()
Gets the full name of this property.- Returns:
- the property name, not
null
-
getTopLevelName
default String getTopLevelName()
Gets the top level name of this property.- Returns:
- the top level property name, not
null
- Since:
- 8.3
-
getCaption
String getCaption()
Gets the human readable caption to show for this property.- Returns:
- the caption to show, not
null
-
getPropertySet
PropertySet<T> getPropertySet()
Gets thePropertySet
that this property belongs to.- Returns:
- the property set, not
null
-
-