Package com.vaadin.flow.templatemodel
Class ModelDescriptor<T extends TemplateModel>
- java.lang.Object
-
- com.vaadin.flow.templatemodel.BeanModelType<T>
-
- com.vaadin.flow.templatemodel.ModelDescriptor<T>
-
- Type Parameters:
T
- the template model type used by this descriptor
- All Implemented Interfaces:
ComplexModelType<T>
,ModelType
,Serializable
@Deprecated public class ModelDescriptor<T extends TemplateModel> extends BeanModelType<T>
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 useLitTemplate
instead. Read more details from the Vaadin blog.Describes the model type of a template class.For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T extends TemplateModel>
ModelDescriptor<T>get(Class<T> modelType)
Deprecated.Gets the model descriptor for a model type.-
Methods inherited from class com.vaadin.flow.templatemodel.BeanModelType
accepts, applicationToModel, cast, createInitialValue, createInitialValues, getClientUpdateAllowedProperties, getClientUpdateMode, getExistingProperty, getJavaType, getPropertyNames, getPropertyType, getProxyType, hasProperty, importProperties, isBean, modelToApplication, resolveType, toJson
-
-
-
-
Method Detail
-
get
public static <T extends TemplateModel> ModelDescriptor<T> get(Class<T> modelType)
Deprecated.Gets the model descriptor for a model type.- Type Parameters:
T
- the model type- Parameters:
modelType
- the model type to find a descriptor, notnull
- Returns:
- the model descriptor derived from the provided model type, not
null
-
-