AI-generated Key Takeaways
-
ObjectInputValidation
is a callback interface used for validating objects after they have been deserialized. -
It allows for checking the validity of an entire object graph post-deserialization.
-
The
validateObject
method is called to perform the validation, and it may throw anInvalidObjectException
if the object is invalid.
A callback interface for post-deserialization checks on objects. Allows, for example, the validation of a whole graph of objects after all of them have been loaded.
Public Method Summary
abstract void |
validateObject()
Validates this object.
|
Public Methods
public abstract void validateObject ()
Validates this object.
Throws
InvalidObjectException | if this object fails to validate itself. |
---|