Package jadex.binary
Class LocalDateTimeCodec
- java.lang.Object
-
- jadex.binary.AbstractCodec
-
- jadex.binary.LocalDateTimeCodec
-
- All Implemented Interfaces:
IDecoderHandler
,ITraverseProcessor
public class LocalDateTimeCodec extends AbstractCodec
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Class<?>
CHRONOLOCALDATECLASS
LocalDate super interfacestatic java.lang.Class<?>
CHRONOLOCALDATETIMECLASS
LocalDateTime super interfacestatic java.lang.Class<?>
LOCALTIMECLASS
Local time class
-
Constructor Summary
Constructors Constructor Description LocalDateTimeCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canReference(java.lang.Object object, java.lang.Class<?> clazz, IEncodingContext ec)
Test if the codec allows referencing.java.lang.Object
createObject(java.lang.Class<?> clazz, IDecodingContext context)
Creates the object during decoding.java.lang.Object
encode(java.lang.Object object, java.lang.Class<?> clazz, java.util.List<ITraverseProcessor> preprocessors, java.util.List<ITraverseProcessor> processors, Traverser.MODE mode, Traverser traverser, java.lang.ClassLoader targetcl, IEncodingContext ec)
Encode the object.boolean
isApplicable(java.lang.Class<?> clazz)
Tests if the decoder can decode the class.-
Methods inherited from class jadex.binary.AbstractCodec
decode, decodeSubObjects, isApplicable, isFixedFrame, process, recordKnownDecodedObject
-
-
-
-
Field Detail
-
CHRONOLOCALDATECLASS
public static final java.lang.Class<?> CHRONOLOCALDATECLASS
LocalDate super interface
-
LOCALTIMECLASS
public static final java.lang.Class<?> LOCALTIMECLASS
Local time class
-
CHRONOLOCALDATETIMECLASS
public static final java.lang.Class<?> CHRONOLOCALDATETIMECLASS
LocalDateTime super interface
-
-
Method Detail
-
encode
public java.lang.Object encode(java.lang.Object object, java.lang.Class<?> clazz, java.util.List<ITraverseProcessor> preprocessors, java.util.List<ITraverseProcessor> processors, Traverser.MODE mode, Traverser traverser, java.lang.ClassLoader targetcl, IEncodingContext ec)
Encode the object.- Specified by:
encode
in classAbstractCodec
-
createObject
public java.lang.Object createObject(java.lang.Class<?> clazz, IDecodingContext context)
Creates the object during decoding.- Specified by:
createObject
in classAbstractCodec
- Parameters:
clazz
- The class of the object.context
- The decoding context.- Returns:
- The created object.
-
isApplicable
public boolean isApplicable(java.lang.Class<?> clazz)
Tests if the decoder can decode the class.- Specified by:
isApplicable
in interfaceIDecoderHandler
- Specified by:
isApplicable
in classAbstractCodec
- Parameters:
clazz
- The class.- Returns:
- True, if the decoder can decode this class.
-
canReference
public boolean canReference(java.lang.Object object, java.lang.Class<?> clazz, IEncodingContext ec)
Test if the codec allows referencing.- Overrides:
canReference
in classAbstractCodec
- Parameters:
object
- The object.clazz
- The class.ec
- The encoding context.- Returns:
- True, if the codec allows referencing.
-
-