public final class FieldAdapterManager extends Object
The Display representation of a DataModel is a set of JSF Beans There are mainly 3 cases:
1 - Perfect match: the JSF components generate a bean that can be directly stored ie: String ...
2 - Type Mismatch: The JSF component generate a bean that is not of the right type ie: The JSF generate a Date whereas the Core expect a Calendar type.
3 - Structure Mismatch: The JSF bean must be split in several fields ie: The uploaded file is one object, but the core expect at least 2 separate fields (filename and content)
Modifier and Type | Method and Description |
---|---|
static Class<?> |
getComponentTypeForDisplay(Class<?> componentType)
Returns component type that will be used to display objects of given component type.
|
static Class<?> |
getComponentTypeForStorage(Class<?> componentType)
Returns component type that will be used to store objects of given component type.
|
static Object |
getValueForDisplay(Object value)
Gets value adapting it for display.
|
static Object |
getValueForStorage(Object value)
Sets value adapting it for storage.
|
public static Object getValueForStorage(Object value)
public static Class<?> getComponentTypeForStorage(Class<?> componentType)
public static Object getValueForDisplay(Object value)
public static Class<?> getComponentTypeForDisplay(Class<?> componentType)
Copyright © 2015 Nuxeo SA. All rights reserved.