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, FieldModelBuilder<?> field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldSerialize(Object value)
Determines if a value should be serialized
-
-
-
Constructor Detail
-
MorphiaPropertySerialization
public MorphiaPropertySerialization(MapperOptions options, FieldModelBuilder<?> field)
- Parameters:
options
- the options to applyfield
- the field in question
-
-
Method Detail
-
shouldSerialize
public boolean shouldSerialize(Object value)
Description copied from interface:org.bson.codecs.pojo.PropertySerialization
Determines if a value should be serialized- Specified by:
shouldSerialize
in interfaceorg.bson.codecs.pojo.PropertySerialization
- Parameters:
value
- the value to check- Returns:
- true if the value should be serialized
-
-