T - the type of the beanpublic class BeanPropertySet<T> extends Object implements PropertySet<T>
PropertySet that uses reflection to find bean properties.| Modifier and Type | Method and Description |
|---|---|
static <T> PropertySet<T> |
get(Class<? extends T> beanType)
Gets a
BeanPropertySet for the given bean type. |
Stream<PropertyDefinition<T,?>> |
getProperties()
Gets all known properties as a stream.
|
Optional<PropertyDefinition<T,?>> |
getProperty(String name)
Gets the definition for the named property, or an empty optional if there
is no property with the given name.
|
String |
toString() |
public static <T> PropertySet<T> get(Class<? extends T> beanType)
BeanPropertySet for the given bean type.beanType - the bean type to get a property set for, not nullnullpublic Stream<PropertyDefinition<T,?>> getProperties()
PropertySetgetProperties in interface PropertySet<T>nullpublic Optional<PropertyDefinition<T,?>> getProperty(String name)
PropertySetgetProperty in interface PropertySet<T>name - the property name to look for, not nullCopyright © 2017 Vaadin Ltd. All rights reserved.