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
Constructors Constructor Description DefaultJsonProblemHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhandleUnknownProperty(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 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 Detail
-
DefaultJsonProblemHandler
public DefaultJsonProblemHandler()
-
-
Method Detail
-
handleUnknownProperty
public boolean handleUnknownProperty(IClassBinding classBinding, Object targetObject, String fieldName, IJsonParsingContext parsingContext) throws IOException
Description copied from interface:IJsonProblemHandlerCallback used to handle a JSON property that is unknown to the model being parsed.- Specified by:
handleUnknownPropertyin interfaceIJsonProblemHandler- Parameters:
classBinding- the bound class currently describing the data being parsedtargetObject- 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
-
-