Package com.cedarsoftware.util.io
Interface JsonReader.MissingFieldHandler
-
- Enclosing class:
- JsonReader
public static interface JsonReader.MissingFieldHandler
Used to react to fields missing when reading an object. This method will be called after all deserialization has occured to allow all ref to be resolved.Used in conjunction with
JsonReader.MISSING_FIELD_HANDLER
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
fieldMissing(Object object, String fieldName, Object value)
Notify that a field is missing.
-
-
-
Method Detail
-
fieldMissing
void fieldMissing(Object object, String fieldName, Object value)
Notify that a field is missing.
Warning : not every type can be deserialized upon missing fields. Arrays and Object type that do not have serialized @type definition will be ignored.- Parameters:
object
- the object that contains the missing fieldfieldName
- name of the field to be replacedvalue
- current value of the field
-
-