Interface IProblemHandler
-
- All Known Subinterfaces:
IJsonProblemHandler,IXmlProblemHandler
- All Known Implementing Classes:
AbstractProblemHandler,DefaultJsonProblemHandler,DefaultXmlProblemHandler
public interface IProblemHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandleMissingInstances(IClassBinding parentDefinition, Object targetObject, Collection<? extends IBoundNamedInstance> unhandledInstances)A callback used to handle bound properties for which no data was found when the content was parsed.
-
-
-
Method Detail
-
handleMissingInstances
void handleMissingInstances(@NonNull IClassBinding parentDefinition, @NonNull Object targetObject, @NonNull Collection<? extends IBoundNamedInstance> unhandledInstances) throws IOException
A callback used to handle bound properties for which no data was found when the content was parsed.This can be used to supply default or prescribed values based on application logic.
- Parameters:
parentDefinition- the bound class on which the missing properties are foundtargetObject- the Java object for theparentDefinitionunhandledInstances- the set of instances that had no data to parse- Throws:
IOException- if an error occurred while handling the missing instances
-
-