Package com.vaadin.flow.data.binder
Class BeanPropertySet<T>
java.lang.Object
com.vaadin.flow.data.binder.BeanPropertySet<T>
- Type Parameters:
T
- the type of the bean
- All Implemented Interfaces:
PropertySet<T>
,Serializable
A
PropertySet
that uses reflection to find bean properties.
For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Contains properties for a bean type which is nested in another definition. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> PropertySet<T>
Gets aBeanPropertySet
for the given bean type.static <T> PropertySet<T>
get
(Class<? extends T> beanType, boolean checkNestedDefinitions, PropertyFilterDefinition filterDefinition) Gets aBeanPropertySet
for the given bean type.Gets the bean type of this bean property set.Gets all known properties as a stream.getProperty
(String name) Gets the definition for the named property, or an empty optional if there is no property with the given name.toString()
-
Method Details
-
get
Gets aBeanPropertySet
for the given bean type.- Type Parameters:
T
- the type of the bean- Parameters:
beanType
- the bean type to get a property set for, notnull
- Returns:
- the bean property set, not
null
-
get
public static <T> PropertySet<T> get(Class<? extends T> beanType, boolean checkNestedDefinitions, PropertyFilterDefinition filterDefinition) Gets aBeanPropertySet
for the given bean type.- Type Parameters:
T
- the bean type to get a property set for- Parameters:
beanType
- the bean type to get a property set for, notnull
checkNestedDefinitions
- whether to scan for nested definitions in beanTypefilterDefinition
- filtering conditions for nested properties- Returns:
- the bean property set, not
null
-
getProperties
Description copied from interface:PropertySet
Gets all known properties as a stream.- Specified by:
getProperties
in interfacePropertySet<T>
- Returns:
- a stream of property names, not
null
-
getProperty
Description copied from interface:PropertySet
Gets the definition for the named property, or an empty optional if there is no property with the given name.- Specified by:
getProperty
in interfacePropertySet<T>
- Parameters:
name
- the property name to look for, notnull
- Returns:
- the property definition, or empty optional if property doesn't exist
- Throws:
IllegalArgumentException
-
getBeanType
Gets the bean type of this bean property set.- Returns:
- the bean type of this bean property set
-
toString
-