Class JsonNestedMapProcessor
- java.lang.Object
-
- jadex.transformation.jsonserializer.processors.AbstractJsonProcessor
-
- jadex.transformation.jsonserializer.processors.JsonMapProcessor
-
- jadex.transformation.jsonserializer.processors.JsonNestedMapProcessor
-
- All Implemented Interfaces:
ITraverseProcessor
public class JsonNestedMapProcessor extends JsonMapProcessor
Processor for reading nested maps.
-
-
Constructor Summary
Constructors Constructor Description JsonNestedMapProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getValueClass(java.lang.Object val, java.lang.Object context)
Returns the class of a map value.boolean
isApplicable(java.lang.Object object, java.lang.reflect.Type type, boolean clone, java.lang.ClassLoader targetcl)
Test if the processor is applicable.-
Methods inherited from class jadex.transformation.jsonserializer.processors.JsonMapProcessor
getReturnObject, isApplicable, isApplicable, readObject, writeObject
-
Methods inherited from class jadex.transformation.jsonserializer.processors.AbstractJsonProcessor
isApplicable, process
-
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(java.lang.Object object, java.lang.reflect.Type type, boolean clone, java.lang.ClassLoader targetcl)
Test if the processor is applicable.- 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.
-
getValueClass
public java.lang.Class<?> getValueClass(java.lang.Object val, java.lang.Object context)
Returns the class of a map value.- Overrides:
getValueClass
in classJsonMapProcessor
- Parameters:
val
- The value.context
- The context.- Returns:
- The value class.
-
-