Interface IJsonProblemHandler
- All Superinterfaces:
IProblemHandler
- All Known Implementing Classes:
DefaultJsonProblemHandler
-
Method Summary
Modifier and TypeMethodDescriptionboolean
handleUnknownProperty
(IBoundDefinitionModelComplex definition, IBoundObject parentItem, String fieldName, com.fasterxml.jackson.core.JsonParser parser) Callback used to handle a JSON property that is unknown to the model being parsed.Methods inherited from interface gov.nist.secauto.metaschema.databind.io.IProblemHandler
handleMissingInstances
-
Method Details
-
handleUnknownProperty
boolean handleUnknownProperty(@NonNull IBoundDefinitionModelComplex definition, @Nullable IBoundObject parentItem, @NonNull String fieldName, @NonNull com.fasterxml.jackson.core.JsonParser parser) throws IOException Callback used to handle a JSON property that is unknown to the model being parsed.- Parameters:
definition
- the bound class currently describing the data being parsedparentItem
- the Java object for theparentDefinition
fieldName
- the unknown JSON field nameparser
- the JSON reader context used for parsing- Returns:
true
if the attribute was handled by this method, orfalse
otherwise- Throws:
IOException
- if an error occurred while handling the unrecognized data
-