Package dev.morphia.mapping.codec
Class MorphiaPropertySerialization
- java.lang.Object
-
- dev.morphia.mapping.codec.MorphiaPropertySerialization
-
- All Implemented Interfaces:
org.bson.codecs.pojo.PropertySerialization
public class MorphiaPropertySerialization extends Object implements org.bson.codecs.pojo.PropertySerialization
Determines if a property should be serialized or not
-
-
Constructor Summary
Constructors Constructor Description MorphiaPropertySerialization(MapperOptions options, PropertyModelBuilder property)
-
-
-
Constructor Detail
-
MorphiaPropertySerialization
public MorphiaPropertySerialization(MapperOptions options, PropertyModelBuilder property)
- Parameters:
options
- the options to applyproperty
- the property in question
-
-
Method Detail
-
shouldSerialize
public boolean shouldSerialize(@Nullable Object value)
- Specified by:
shouldSerialize
in interfaceorg.bson.codecs.pojo.PropertySerialization
-
-