Class ReadableObjectId


  • public class ReadableObjectId
    extends java.lang.Object
    Simple value container for containing information about single Object Id during deserialization
    • Method Detail

      • bindItem

        public void bindItem​(java.lang.Object ob)
                      throws java.io.IOException
        Method called to assign actual POJO to which ObjectId refers to: will also handle referring properties, if any, by assigning POJO.
        Throws:
        java.io.IOException
      • resolve

        public java.lang.Object resolve()
      • hasReferringProperties

        public boolean hasReferringProperties()
      • tryToResolveUnresolved

        public boolean tryToResolveUnresolved​(DeserializationContext ctxt)
        Method called by DeserializationContext at the end of deserialization if this Object Id was not resolved during normal processing. Call is made to allow custom implementations to use alternative resolution strategies; currently the only way to make use of this functionality is by sub-classing ReadableObjectId and overriding this method.

        Default implementation simply returns false to indicate that resolution attempt did not succeed.

        Returns:
        True, if resolution succeeded (and no error needs to be reported); false to indicate resolution did not succeed.
        Since:
        2.6
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object