public class ObjectMapperImpl extends Object implements MorphiumObjectMapper
| Constructor and Description |
|---|
ObjectMapperImpl() |
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 © 2020. All rights reserved.