Interface Scope

  • All Known Subinterfaces:
    ScopeMixin
    All Known Implementing Classes:
    DefaultScope

    public interface Scope
    API for resolving cross-references in serialized object graphs.
    • Method Detail

      • resolveOrFail

        SharedGraphNode resolveOrFail​(int id)
        Looks up the object with the given ID.
        Parameters:
        id - The ID of the requested object.
        Returns:
        The object with the given ID.
        Throws:
        IllegalArgumentException - If there is no object with the requested ID.
      • readData

        void readData​(SharedGraphNode node,
                      int id,
                      JsonReader in)
               throws IOException
        Reads object data of the given node and assigns the given ID to this node.
        Parameters:
        node - The node to read data for.
        id - The ID to assign ot the given node.
        Throws:
        IOException