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
Nested ClassesModifier and TypeClassDescriptionstatic classContains properties for a bean type which is nested in another definition. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> PropertySet<T> Gets aBeanPropertySetfor the given bean type.static <T> PropertySet<T> get(Class<? extends T> beanType, boolean checkNestedDefinitions, PropertyFilterDefinition filterDefinition) Gets aBeanPropertySetfor 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 aBeanPropertySetfor 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 aBeanPropertySetfor 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, notnullcheckNestedDefinitions- 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:PropertySetGets all known properties as a stream.- Specified by:
getPropertiesin interfacePropertySet<T>- Returns:
- a stream of property names, not
null
-
getProperty
Description copied from interface:PropertySetGets the definition for the named property, or an empty optional if there is no property with the given name.- Specified by:
getPropertyin 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
-