public class ObjectMapperImpl extends Object implements MorphiumObjectMapper
| Constructor and Description |
|---|
ObjectMapperImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
deregisterCustomMapperFor(Class cls) |
<T> T |
deserialize(Class<? extends T> theClass,
Map<String,Object> o) |
<T> T |
deserialize(Class<? extends T> cls,
String jsonString) |
String |
getCollectionName(Class cls) |
Morphium |
getMorphium() |
NameProvider |
getNameProviderForClass(Class<?> cls)
get current name provider for class
|
Object |
marshallIfNecessary(Object o) |
<T> void |
registerCustomMapperFor(Class<T> cls,
MorphiumTypeMapper<T> map) |
Map<String,Object> |
serialize(Object o) |
void |
setAnnotationHelper(AnnotationAndReflectionHelper an) |
void |
setMorphium(Morphium m)
will automatically be called after instanciation by Morphium
also gets the AnnotationAndReflectionHelper from this object (to make use of the caches)
|
void |
setNameProviderForClass(Class<?> cls,
NameProvider np)
override nameprovider in runtime!
|
public void setAnnotationHelper(AnnotationAndReflectionHelper an)
setAnnotationHelper in interface MorphiumObjectMapperpublic Morphium getMorphium()
getMorphium in interface MorphiumObjectMapperpublic void setMorphium(Morphium m)
setMorphium in interface MorphiumObjectMapperm - - the Morphium instancepublic void setNameProviderForClass(Class<?> cls, NameProvider np)
setNameProviderForClass in interface MorphiumObjectMappercls - - class to usenp - - the NameProvider for that classpublic <T> void registerCustomMapperFor(Class<T> cls, MorphiumTypeMapper<T> map)
registerCustomMapperFor in interface MorphiumObjectMapperpublic void deregisterCustomMapperFor(Class cls)
deregisterCustomMapperFor in interface MorphiumObjectMapperpublic NameProvider getNameProviderForClass(Class<?> cls)
MorphiumObjectMappergetNameProviderForClass in interface MorphiumObjectMappercls - - classpublic String getCollectionName(Class cls)
getCollectionName in interface MorphiumObjectMapperpublic Map<String,Object> serialize(Object o)
serialize in interface MorphiumObjectMapperpublic <T> T deserialize(Class<? extends T> cls, String jsonString) throws org.json.simple.parser.ParseException
deserialize in interface MorphiumObjectMapperorg.json.simple.parser.ParseExceptionpublic <T> T deserialize(Class<? extends T> theClass, Map<String,Object> o)
deserialize in interface MorphiumObjectMapperCopyright © 2019. All rights reserved.