Package com.vaadin.flow.templatemodel
Class BasicComplexModelType<T>
java.lang.Object
com.vaadin.flow.templatemodel.AbstractBasicModelType<T>
com.vaadin.flow.templatemodel.BasicComplexModelType<T>
- Type Parameters:
T- the (basic) Java type used by this model type
- All Implemented Interfaces:
ComplexModelType<T>,ModelType,Serializable
@Deprecated
public class BasicComplexModelType<T>
extends AbstractBasicModelType<T>
implements ComplexModelType<T>
Deprecated.
A model type representing an immutable leaf value (e.g. strings, numbers or
booleans) to use them in a list.
There is a similar class BasicModelType which do the same but it
keeps handles the values as is. This class wraps them into StateNode
to be able to use them in side lists.
For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionapplicationToModel(Object applicationValue, PropertyFilter filter) Deprecated.Creates a model value representation of the provided application value.<C> ComplexModelType<C>Deprecated.Checks that this type uses the provided proxy type and returns this type as a model type with that proxy type.static Optional<ComplexModelType<?>>Deprecated.Gets the basic model type definition for the given Java class.static booleanisBasicType(Type type) Deprecated.Checks whether thetypeis a basic supported type.modelToApplication(Serializable modelValue) Deprecated.Creates a representation of the provided model value that is intended for use in application code.Methods inherited from class com.vaadin.flow.templatemodel.AbstractBasicModelType
accepts, convertToApplication, createInitialValue, getJavaType, loadBasicTypes, toJsonMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.templatemodel.ModelType
accepts, createInitialValue, getJavaType, toJson
-
Method Details
-
get
Deprecated.Gets the basic model type definition for the given Java class.- Parameters:
type- the Java class to find a basic model type for- Returns:
- the basic model type, or an empty optional if the provided type is not a basic type
-
isBasicType
Deprecated.Checks whether thetypeis a basic supported type.- Parameters:
type- type to check- Returns:
trueis thetypeis basic supported type,falseotherwise
-
modelToApplication
Deprecated.Description copied from interface:ModelTypeCreates a representation of the provided model value that is intended for use in application code. For mutable values, this is typically a proxy that is directly connected to the underlying model value.- Specified by:
modelToApplicationin interfaceModelType- Parameters:
modelValue- the model value to convert- Returns:
- a user-friendly representation of the provided model value
-
applicationToModel
Deprecated.Description copied from interface:ModelTypeCreates 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:
applicationToModelin interfaceComplexModelType<T>- Specified by:
applicationToModelin interfaceModelType- Parameters:
applicationValue- the user value to convertfilter- the filter to use to determine which properties to include, notnull- Returns:
- a model value representation of the provided user value.
-
cast
Deprecated.Description copied from interface:ComplexModelTypeChecks that this type uses the provided proxy type and returns this type as a model type with that proxy type.- Specified by:
castin interfaceComplexModelType<T>- Type Parameters:
C- the proxy type- Parameters:
proxyType- the proxy type to cast to- Returns:
- this model type
-
@Idmapping and the component API or the element API with property synchronization instead. Polymer template support is deprecated - we recommend you to useLitTemplateinstead. Read more details from the Vaadin blog.