com.vaadin.flow.data.binder.
Interface PropertySet<T>
-
Type Parameters:
T
- the type for which the properties are definedAll Superinterfaces:
All Known Implementing Classes:
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:
1.0
Author:
Vaadin Ltd
-
-
Method Summary
All Methods Modifier and Type Method and 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
-
-