Package com.vaadin.data
Interface PropertySet<T>
-
- Type Parameters:
T
- the type for which the properties are defined
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
BeanPropertySet
public interface PropertySet<T> extends Serializable
Describes a set of properties that can be used for configuration based on property names instead of setter and getter callbacks.- Since:
- 8.0
- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
getProperties
Stream<PropertyDefinition<T,?>> getProperties()
Gets all known properties as a stream.- Returns:
- a stream of property names, not
null
-
getProperty
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.- Parameters:
name
- the property name to look for, notnull
- Returns:
- the property definition, or empty optional if property doesn't exist
-
-