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>
idobjects
Already known objectsprotected 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.
-
-
-
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 interfaceIUserContextContainer
- Returns:
- The user context.
-
setUserContext
public void setUserContext(java.lang.Object usercontext)
Sets the user context.- Parameters:
usercontext
- The user context.
-
-