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 | Class and Description |
|---|---|
static class |
BeanPropertySet.NestedBeanPropertyDefinition<T,V>
Contains properties for a bean type which is nested in another
definition.
|
| 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) throws IllegalArgumentException
PropertySetgetProperty in interface PropertySet<T>name - the property name to look for, not nullIllegalArgumentExceptionCopyright © 2017 Vaadin Ltd. All rights reserved.