Class JsonReadContext

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<java.lang.Integer,​java.lang.Object> idobjects
      Already known objects
      protected java.util.LinkedList<java.lang.Integer> idstack  
      protected java.lang.Object usercontext  
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonReadContext()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addKnownObject​(java.lang.Object obj, int idx)
      Returns the known objects.
      java.lang.Object getKnownObject​(int num)
      Returns the known objects.
      java.lang.Object getUserContext()
      Returns the user context.
      java.lang.Integer popIdStack()  
      void pushIdStack()  
      void setKnownObject​(int num, java.lang.Object obj)
      Returns the known objects.
      void setUserContext​(java.lang.Object usercontext)
      Sets the user context.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • idobjects

        protected java.util.Map<java.lang.Integer,​java.lang.Object> idobjects
        Already known objects
      • idstack

        protected java.util.LinkedList<java.lang.Integer> idstack
      • usercontext

        protected java.lang.Object usercontext
    • Constructor Detail

      • JsonReadContext

        public JsonReadContext()
    • Method Detail

      • addKnownObject

        public void addKnownObject​(java.lang.Object obj,
                                   int idx)
        Returns the known objects.
      • pushIdStack

        public void pushIdStack()
      • popIdStack

        public java.lang.Integer popIdStack()
      • getKnownObject

        public java.lang.Object getKnownObject​(int num)
        Returns the known objects.
        Returns:
        Known objects.
      • setKnownObject

        public void setKnownObject​(int num,
                                   java.lang.Object obj)
        Returns the known objects.
      • getUserContext

        public java.lang.Object getUserContext()
        Returns the user context.
        Specified by:
        getUserContext in interface IUserContextContainer
        Returns:
        The user context.
      • setUserContext

        public void setUserContext​(java.lang.Object usercontext)
        Sets the user context.
        Parameters:
        usercontext - The user context.