T - the (basic) Java type used by this model typepublic class BasicComplexModelType<T> extends AbstractBasicModelType<T> implements ComplexModelType<T>
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.
BasicModelType,
Serialized Form| Modifier and Type | Method and Description |
|---|---|
StateNode |
applicationToModel(Object applicationValue,
PropertyFilter filter)
Creates a model value representation of the provided application value.
|
<C> ComplexModelType<C> |
cast(Class<C> proxyType)
Checks that this type uses the provided proxy type and returns this type
as a model type with that proxy type.
|
static Optional<ComplexModelType<?>> |
get(Class<?> type)
Gets the basic model type definition for the given Java class.
|
static boolean |
isBasicType(Type type)
Checks whether the
type is a basic supported type. |
T |
modelToApplication(Serializable modelValue)
Creates a representation of the provided model value that is intended for
use in application code.
|
accepts, convertToApplication, createInitialValue, getJavaType, loadBasicTypes, toJsonclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccepts, createInitialValue, getJavaType, getSupportedTypesString, toJsonpublic static Optional<ComplexModelType<?>> get(Class<?> type)
type - the Java class to find a basic model type forpublic static boolean isBasicType(Type type)
type is a basic supported type.type - type to checktrue is the type is basic supported type,
false otherwisepublic T modelToApplication(Serializable modelValue)
ModelTypemodelToApplication in interface ModelTypemodelValue - the model value to convertpublic StateNode applicationToModel(Object applicationValue, PropertyFilter filter)
ModelTypeFor 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.
applicationToModel in interface ComplexModelType<T>applicationToModel in interface ModelTypeapplicationValue - the user value to convertfilter - the filter to use to determine which properties to include,
not nullpublic <C> ComplexModelType<C> cast(Class<C> proxyType)
ComplexModelTypecast in interface ComplexModelType<T>C - the proxy typeproxyType - the proxy type to cast toCopyright © 2025. All rights reserved.