Interface ComplexModelType<T>

Type Parameters:
T - the proxy type used by this type
All Superinterfaces:
ModelType, Serializable
All Known Implementing Classes:
BasicComplexModelType, BeanModelType, ListModelType, ModelDescriptor

@Deprecated public interface ComplexModelType<T> extends ModelType
Deprecated.
Template model and model types are not supported for lit template, but you can use @Id mapping and the component API or the element API with property synchronization instead. Polymer template support is deprecated - we recommend you to use LitTemplate instead. Read more details from the Vaadin blog.
A complex model type (represents either a list or a bean).

For internal use only. May be renamed or removed in a future release.

Since:
1.0
Author:
Vaadin Ltd
  • Method Details

    • applicationToModel

      StateNode applicationToModel(Object applicationValue, PropertyFilter filter)
      Deprecated.
      Description copied from interface: ModelType
      Creates a model value representation of the provided application value.

      For application values that contain properties (i.e. beans), the provided filter is used to determine which properties from the bean should be included in the model representation.

      Specified by:
      applicationToModel in interface ModelType
      Parameters:
      applicationValue - the user value to convert
      filter - the filter to use to determine which properties to include, not null
      Returns:
      a model value representation of the provided user value.
    • cast

      <C> ComplexModelType<C> cast(Class<C> proxyType)
      Deprecated.
      Checks that this type uses the provided proxy type and returns this type as a model type with that proxy type.
      Type Parameters:
      C - the proxy type
      Parameters:
      proxyType - the proxy type to cast to
      Returns:
      this model type