Interface ITraverseProcessor
-
- All Known Implementing Classes:
jadex.binary.AbstractCodec
,jadex.transformation.jsonserializer.processors.AbstractJsonProcessor
,ArrayProcessor
,BeanProcessor
,BigIntegerProcessor
,BinaryResponseProcessor
,CloneProcessor
,CloneResponseProcessor
,CollectionProcessor
,ColorProcessor
,DateProcessor
,EnumerationProcessor
,ExcludeProcessor
,ExcludeSwingProcessor
,FilterProcessor
,ImageProcessor
,ImmutableProcessor
,IteratorProcessor
,JsonResponseProcessor
,ListProcessor
,LogRecordProcessor
,MapProcessor
,MultiCollectionProcessor
,OptionalProcessor
,RectangleProcessor
,SetProcessor
,TimestampProcessor
,TransformProcessor
,TupleProcessor
,UUIDProcessor
public interface ITraverseProcessor
Interface for traverse processors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isApplicable(java.lang.Object object, java.lang.reflect.Type type, java.lang.ClassLoader targetcl, java.lang.Object context)
Test if the processor is applicable.java.lang.Object
process(java.lang.Object object, java.lang.reflect.Type type, Traverser traverser, java.util.List<ITraverseProcessor> conversionprocessors, java.util.List<ITraverseProcessor> processors, Traverser.MODE mode, java.lang.ClassLoader targetcl, java.lang.Object context)
Process an object.
-
-
-
Method Detail
-
isApplicable
boolean isApplicable(java.lang.Object object, java.lang.reflect.Type type, java.lang.ClassLoader targetcl, java.lang.Object context)
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.
-
process
java.lang.Object process(java.lang.Object object, java.lang.reflect.Type type, Traverser traverser, java.util.List<ITraverseProcessor> conversionprocessors, java.util.List<ITraverseProcessor> processors, Traverser.MODE mode, java.lang.ClassLoader targetcl, java.lang.Object context)
Process an object.- 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.
-
-