Package com.vaadin.flow.templatemodel
Interface ModelEncoder<D,E extends Serializable>
- Type Parameters:
D- the decoded typeE- the encoded type
- All Superinterfaces:
Serializable
Deprecated.
Template models encoder. Used for enabling the use of types in template model
methods that are not natively supported by the framework.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Decodes the given value.Deprecated.Encodes the given value.Deprecated.Get the decoded type of this encoder.Deprecated.Get the encoded type of this encoder.
-
Method Details
-
getDecodedType
Deprecated.Get the decoded type of this encoder.- Returns:
- the application type
-
getEncodedType
Deprecated.Get the encoded type of this encoder.- Returns:
- the model type
-
encode
Deprecated.Encodes the given value.- Parameters:
value- the value to encode- Returns:
- the encoded model value
-
decode
Deprecated.Decodes the given value.- Parameters:
value- the value to decode- Returns:
- the decoded value
-
@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.