Class DefaultJsonProblemHandler
java.lang.Object
gov.nist.secauto.metaschema.databind.io.AbstractProblemHandler
gov.nist.secauto.metaschema.databind.io.json.DefaultJsonProblemHandler
- All Implemented Interfaces:
IProblemHandler
,IJsonProblemHandler
public class DefaultJsonProblemHandler
extends AbstractProblemHandler
implements IJsonProblemHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
handleUnknownProperty
(IBoundDefinitionModelComplex classBinding, IBoundObject targetObject, 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 class gov.nist.secauto.metaschema.databind.io.AbstractProblemHandler
applyDefaults, handleMissingInstances
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface gov.nist.secauto.metaschema.databind.io.IProblemHandler
handleMissingInstances
-
Constructor Details
-
DefaultJsonProblemHandler
public DefaultJsonProblemHandler()
-
-
Method Details
-
handleUnknownProperty
public boolean handleUnknownProperty(IBoundDefinitionModelComplex classBinding, IBoundObject targetObject, String fieldName, com.fasterxml.jackson.core.JsonParser parser) throws IOException Description copied from interface:IJsonProblemHandler
Callback used to handle a JSON property that is unknown to the model being parsed.- Specified by:
handleUnknownProperty
in interfaceIJsonProblemHandler
- Parameters:
classBinding
- the bound class currently describing the data being parsedtargetObject
- 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
-