Interface PropertySet<T>

  • Type Parameters:
    T - the type for which the properties are defined
    All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    BeanPropertySet

    public interface PropertySet<T>
    extends java.io.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 Detail

      • getProperties

        java.util.stream.Stream<PropertyDefinition<T,​?>> getProperties()
        Gets all known properties as a stream.
        Returns:
        a stream of property names, not null
      • getProperty

        java.util.Optional<PropertyDefinition<T,​?>> getProperty​(java.lang.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