public class TypeMapper
extends java.lang.Object
| Constructor and Description |
|---|
TypeMapper(TypeFactory typeFactory) |
| Modifier and Type | Method and Description |
|---|---|
ValueObjectType |
getChildValueObject(EntityType owner,
java.lang.String voPropertyName) |
java.lang.reflect.Type |
getDehydratedType(java.lang.reflect.Type type)
Dehydrated type for JSON representation
|
ManagedType |
getJaversManagedType(java.lang.Class javaType)
throws JaversException.MANAGED_CLASS_MAPPING_ERROR if given javaClass is NOT mapped to
ManagedType |
<T extends ManagedType> |
getJaversManagedType(java.lang.Class javaClass,
java.lang.Class<T> expectedType)
if given javaClass is mapped to expected JaversType, returns its JaversType,
otherwise throws JaversException.MANAGED_CLASS_MAPPING_ERROR
|
JaversType |
getJaversType(java.lang.reflect.Type javaType)
returns mapped type or spawns new one from prototype
or infers new one using default mapping
|
MapContentType |
getMapContentType(ContainerType containerType)
for change appenders
|
MapContentType |
getMapContentType(MapType mapType) |
<T extends JaversType> |
getPropertyType(Property property) |
boolean |
isValueObject(java.lang.reflect.Type type) |
void |
registerClientsClass(ClientsClassDefinition def) |
void |
registerCustomType(java.lang.Class<?> customCLass) |
void |
registerValueType(java.lang.Class<?> valueCLass) |
public TypeMapper(TypeFactory typeFactory)
public MapContentType getMapContentType(MapType mapType)
public MapContentType getMapContentType(ContainerType containerType)
public JaversType getJaversType(java.lang.reflect.Type javaType)
public ManagedType getJaversManagedType(java.lang.Class javaType)
ManagedTypepublic <T extends ManagedType> T getJaversManagedType(java.lang.Class javaClass, java.lang.Class<T> expectedType)
public <T extends JaversType> T getPropertyType(Property property)
public void registerClientsClass(ClientsClassDefinition def)
public void registerValueType(java.lang.Class<?> valueCLass)
public void registerCustomType(java.lang.Class<?> customCLass)
public boolean isValueObject(java.lang.reflect.Type type)
public java.lang.reflect.Type getDehydratedType(java.lang.reflect.Type type)
public ValueObjectType getChildValueObject(EntityType owner, java.lang.String voPropertyName)