Class JsonReadContext
java.lang.Object
jadex.transformation.jsonserializer.processors.JsonReadContext
- All Implemented Interfaces:
jadex.common.transformation.traverser.IUserContextContainer
public class JsonReadContext
extends Object
implements jadex.common.transformation.traverser.IUserContextContainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionAlready known objectsprotected LinkedList
<Integer> protected Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addKnownObject
(Object obj, int idx) Returns the known objects.getKnownObject
(int num) Returns the known objects.Returns the user context.void
void
setKnownObject
(int num, Object obj) Returns the known objects.void
setUserContext
(Object usercontext) Sets the user context.
-
Field Details
-
idobjects
Already known objects -
idstack
-
usercontext
-
-
Constructor Details
-
JsonReadContext
public JsonReadContext()
-
-
Method Details
-
addKnownObject
Returns the known objects. -
pushIdStack
public void pushIdStack() -
popIdStack
-
getKnownObject
Returns the known objects.- Returns:
- Known objects.
-
setKnownObject
Returns the known objects. -
getUserContext
Returns the user context.- Specified by:
getUserContext
in interfacejadex.common.transformation.traverser.IUserContextContainer
- Returns:
- The user context.
-
setUserContext
Sets the user context.- Parameters:
usercontext
- The user context.
-