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:
1.0
Author:
Vaadin Ltd
  • Method Details

    • 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, not null
      Returns:
      the property definition, or empty optional if property doesn't exist