Class JsonReadContext
- java.lang.Object
-
- jadex.transformation.jsonserializer.processors.JsonReadContext
-
- All Implemented Interfaces:
IUserContextContainer
public class JsonReadContext extends java.lang.Object implements IUserContextContainer
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.Integer,java.lang.Object>idobjectsAlready known objectsprotected java.util.LinkedList<java.lang.Integer>idstackprotected java.lang.Objectusercontext
-
Constructor Summary
Constructors Constructor Description JsonReadContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddKnownObject(java.lang.Object obj, int idx)Returns the known objects.java.lang.ObjectgetKnownObject(int num)Returns the known objects.java.lang.ObjectgetUserContext()Returns the user context.java.lang.IntegerpopIdStack()voidpushIdStack()voidsetKnownObject(int num, java.lang.Object obj)Returns the known objects.voidsetUserContext(java.lang.Object usercontext)Sets the user context.
-
-
-
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:
getUserContextin interfaceIUserContextContainer- Returns:
- The user context.
-
setUserContext
public void setUserContext(java.lang.Object usercontext)
Sets the user context.- Parameters:
usercontext- The user context.
-
-