Interface StylesJsonValueParser<Builder extends BaseStyles.Builder<?>>

Type Parameters:
Builder - the builder type extending BaseStyles
All Known Implementing Classes:
BaseStylesJsonValueParser, TextInputStylesJsonValueParser, TextStylesJsonValueParser
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@NullMarked @FunctionalInterface public interface StylesJsonValueParser<Builder extends BaseStyles.Builder<?>>
StylesJsonValueParser handles parsing a style value from a JsonElement and setting it into a StylesBuilder.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setPropertyFromJson(Builder stylesBuilder, String propertyKey, technology.sola.json.JsonElement value)
    Sets the desired property in a StylesBuilder based on the JsonElement value
  • Method Details

    • setPropertyFromJson

      void setPropertyFromJson(Builder stylesBuilder, String propertyKey, technology.sola.json.JsonElement value)
      Sets the desired property in a StylesBuilder based on the JsonElement value
      Parameters:
      stylesBuilder - the StylesBuilder to set a property of
      propertyKey - the property of the styles builder to set
      value - the value to set into the builder