Package com.vaadin.flow.templatemodel
Annotation Interface Encode
@Deprecated
@Retention(RUNTIME)
@Target(METHOD)
@Repeatable(Container.class)
public @interface Encode
Deprecated.
Defines a ModelEncoder on a template model property found through
path().
Use this annotation on setters in your TemplateModel class to perform
type conversions on properties.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDeprecated.Internal annotation to enable use of multipleEncodeannotations. -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionClass<? extends ModelEncoder<?, ?>> Deprecated.The ModelEncoder class to use for encoding the property found through {path(). -
Optional Element Summary
Optional Elements
-
Element Details
-
value
Class<? extends ModelEncoder<?,?>> valueDeprecated.The ModelEncoder class to use for encoding the property found through {path().- Returns:
- the ModelEncoder class
-
path
String pathDeprecated.The dot separated path from the TemplateModel property to the value to apply encoding to. Empty string by default, which will apply encoding directly to the property.- Returns:
- the dot separated path to the bean property to encode, empty string by default
- Default:
""
-
LitTemplateinstead. Read more details from the Vaadin blog.