T - the (basic) Java type used by this model typepublic abstract class AbstractBasicModelType<T> extends Object implements ModelType
For internal use only. May be renamed or removed in a future release.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBasicModelType(Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Type applicationType)
Checks whether this type can accept application values of the given type.
|
protected Object |
convertToApplication(Serializable modelValue)
Converts the given model value to the application type of this model
type.
|
void |
createInitialValue(StateNode node,
String property)
Create initial value for the given
property and set it for the
node. |
Class<T> |
getJavaType()
Gets the Java
Type that this model encapsulates. |
protected static <M> Map<Class<?>,M> |
loadBasicTypes(Function<Class<?>,M> factory) |
elemental.json.JsonValue |
toJson()
Creates a JSON representation of this model type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationToModel, getSupportedTypesString, modelToApplicationpublic boolean accepts(Type applicationType)
ModelTypepublic Class<T> getJavaType()
ModelTypeType that this model encapsulates.getJavaType in interface ModelTypepublic elemental.json.JsonValue toJson()
ModelTypepublic void createInitialValue(StateNode node, String property)
ModelTypeproperty and set it for the
node.createInitialValue in interface ModelTypenode - the node where the initial value should be set the
propertyproperty - the property in the node whose initial value needs to
be createdprotected Object convertToApplication(Serializable modelValue)
modelValue - the model value to convertnull if the application
type is a primitiveCopyright © 2025. All rights reserved.