Class JsonReadContext
- java.lang.Object
- 
- jadex.transformation.jsonserializer.processors.JsonReadContext
 
- 
- All Implemented Interfaces:
- IUserContextContainer
 
 public class JsonReadContext extends java.lang.Object implements IUserContextContainer 
- 
- 
Field SummaryFields 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 SummaryConstructors Constructor Description JsonReadContext()
 - 
Method SummaryAll 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- 
addKnownObjectpublic void addKnownObject(java.lang.Object obj, int idx)Returns the known objects.
 - 
pushIdStackpublic void pushIdStack() 
 - 
popIdStackpublic java.lang.Integer popIdStack() 
 - 
getKnownObjectpublic java.lang.Object getKnownObject(int num) Returns the known objects.- Returns:
- Known objects.
 
 - 
setKnownObjectpublic void setKnownObject(int num, java.lang.Object obj)Returns the known objects.
 - 
getUserContextpublic java.lang.Object getUserContext() Returns the user context.- Specified by:
- getUserContextin interface- IUserContextContainer
- Returns:
- The user context.
 
 - 
setUserContextpublic void setUserContext(java.lang.Object usercontext) Sets the user context.- Parameters:
- usercontext- The user context.
 
 
- 
 
-