Interface IJsonProblemHandler
-
- All Superinterfaces:
IProblemHandler
- All Known Implementing Classes:
DefaultJsonProblemHandler
public interface IJsonProblemHandler extends IProblemHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
handleUnknownProperty(IClassBinding classBinding, Object targetObject, String fieldName, IJsonParsingContext parsingContext)
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 Detail
-
handleUnknownProperty
boolean handleUnknownProperty(@NonNull IClassBinding classBinding, @Nullable Object targetObject, @NonNull String fieldName, @NonNull IJsonParsingContext parsingContext) throws IOException
Callback used to handle a JSON property that is unknown to the model being parsed.- Parameters:
classBinding
- the bound class currently describing the data being parsedtargetObject
- the Java object for theparentDefinition
fieldName
- the unknown JSON field nameparsingContext
- the JSON parsing 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
-
-