Interface IJsonProblemHandler
- All Superinterfaces:
IProblemHandler
- All Known Implementing Classes:
DefaultJsonProblemHandler
Handles common issues resulting from parsing JSON content.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhandleUnknownProperty(IBoundDefinitionModelComplex definition, IBoundObject parentItem, 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 Details
-
handleUnknownProperty
boolean handleUnknownProperty(@NonNull IBoundDefinitionModelComplex definition, @Nullable IBoundObject parentItem, @NonNull String fieldName, @NonNull IJsonParsingContext parsingContext) 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 theparentDefinitionfieldName- the unknown JSON field nameparsingContext- the JSON parsing context used for parsing- Returns:
trueif the attribute was handled by this method, orfalseotherwise- Throws:
IOException- if an error occurred while handling the unrecognized data
-