Class JsonReferenceProcessor
java.lang.Object
jadex.transformation.jsonserializer.processors.JsonReferenceProcessor
- All Implemented Interfaces:
jadex.common.transformation.traverser.ITraverseProcessor
public class JsonReferenceProcessor
extends Object
implements jadex.common.transformation.traverser.ITraverseProcessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isApplicable
(Object object, Type type, ClassLoader targetcl, Object context) Test if the processor is applicable.process
(Object object, Type type, jadex.common.transformation.traverser.Traverser traverser, List<jadex.common.transformation.traverser.ITraverseProcessor> conversionprocessors, List<jadex.common.transformation.traverser.ITraverseProcessor> processors, jadex.common.transformation.IStringConverter converter, jadex.common.transformation.traverser.Traverser.MODE mode, ClassLoader targetcl, Object context) Process an object.
-
Constructor Details
-
JsonReferenceProcessor
public JsonReferenceProcessor()
-
-
Method Details
-
isApplicable
Test if the processor is applicable.- Specified by:
isApplicable
in interfacejadex.common.transformation.traverser.ITraverseProcessor
- Parameters:
object
- The object.targetcl
- If not null, the traverser should make sure that the result object is compatible with the class loader, e.g. by cloning the object using the class loaded from the target class loader.- Returns:
- True, if is applicable.
-
process
public Object process(Object object, Type type, jadex.common.transformation.traverser.Traverser traverser, List<jadex.common.transformation.traverser.ITraverseProcessor> conversionprocessors, List<jadex.common.transformation.traverser.ITraverseProcessor> processors, jadex.common.transformation.IStringConverter converter, jadex.common.transformation.traverser.Traverser.MODE mode, ClassLoader targetcl, Object context) Process an object.- Specified by:
process
in interfacejadex.common.transformation.traverser.ITraverseProcessor
- Parameters:
object
- The object.targetcl
- If not null, the traverser should make sure that the result object is compatible with the class loader, e.g. by cloning the object using the class loaded from the target class loader.- Returns:
- The processed object.
-