Class JsonThrowableProcessor
java.lang.Object
jadex.transformation.jsonserializer.processors.AbstractJsonProcessor
jadex.transformation.jsonserializer.processors.JsonBeanProcessor
jadex.transformation.jsonserializer.processors.JsonThrowableProcessor
- All Implemented Interfaces:
jadex.common.transformation.traverser.ITraverseProcessor
-
Field Summary
Fields inherited from class jadex.transformation.jsonserializer.processors.JsonBeanProcessor
intro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isApplicable
(Object object, Type type, ClassLoader targetcl, JsonReadContext context) Test if the processor is applicable.protected boolean
isApplicable
(Object object, Type type, ClassLoader targetcl, JsonWriteContext context) Test if the processor is applicable.protected Object
readObject
(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, JsonReadContext context) Process an object.protected Object
writeObject
(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, JsonWriteContext context) Process an object.Methods inherited from class jadex.transformation.jsonserializer.processors.JsonBeanProcessor
getReturnObject, readProperties, writeProperties
Methods inherited from class jadex.transformation.jsonserializer.processors.AbstractJsonProcessor
isApplicable, process
-
Constructor Details
-
JsonThrowableProcessor
public JsonThrowableProcessor()
-
-
Method Details
-
isApplicable
protected boolean isApplicable(Object object, Type type, ClassLoader targetcl, JsonReadContext context) Test if the processor is applicable.- Overrides:
isApplicable
in classJsonBeanProcessor
- 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.
-
isApplicable
protected boolean isApplicable(Object object, Type type, ClassLoader targetcl, JsonWriteContext context) Test if the processor is applicable.- Overrides:
isApplicable
in classJsonBeanProcessor
- 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.
-
readObject
protected Object readObject(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, JsonReadContext context) Process an object.- Overrides:
readObject
in classJsonBeanProcessor
- 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.
-
writeObject
protected Object writeObject(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, JsonWriteContext context) Process an object.- Overrides:
writeObject
in classJsonBeanProcessor
- 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.
-