Package jadex.binary

Class LocalDateTimeCodec

java.lang.Object
jadex.binary.AbstractCodec
jadex.binary.LocalDateTimeCodec
All Implemented Interfaces:
IDecoderHandler, jadex.common.transformation.traverser.ITraverseProcessor

public class LocalDateTimeCodec extends AbstractCodec
  • Field Details

    • CHRONOLOCALDATECLASS

      public static final Class<?> CHRONOLOCALDATECLASS
      LocalDate super interface
    • LOCALTIMECLASS

      public static final Class<?> LOCALTIMECLASS
      Local time class
    • CHRONOLOCALDATETIMECLASS

      public static final Class<?> CHRONOLOCALDATETIMECLASS
      LocalDateTime super interface
  • Constructor Details

    • LocalDateTimeCodec

      public LocalDateTimeCodec()
  • Method Details

    • encode

      public Object encode(Object object, Class<?> clazz, List<jadex.common.transformation.traverser.ITraverseProcessor> preprocessors, List<jadex.common.transformation.traverser.ITraverseProcessor> processors, jadex.common.transformation.IStringConverter converter, jadex.common.transformation.traverser.Traverser.MODE mode, jadex.common.transformation.traverser.Traverser traverser, ClassLoader targetcl, IEncodingContext ec)
      Encode the object.
      Specified by:
      encode in class AbstractCodec
    • createObject

      public Object createObject(Class<?> clazz, IDecodingContext context)
      Creates the object during decoding.
      Specified by:
      createObject in class AbstractCodec
      Parameters:
      clazz - The class of the object.
      context - The decoding context.
      Returns:
      The created object.
    • isApplicable

      public boolean isApplicable(Class<?> clazz)
      Tests if the decoder can decode the class.
      Specified by:
      isApplicable in interface IDecoderHandler
      Specified by:
      isApplicable in class AbstractCodec
      Parameters:
      clazz - The class.
      Returns:
      True, if the decoder can decode this class.
    • canReference

      public boolean canReference(Object object, Class<?> clazz, IEncodingContext ec)
      Test if the codec allows referencing.
      Overrides:
      canReference in class AbstractCodec
      Parameters:
      object - The object.
      clazz - The class.
      ec - The encoding context.
      Returns:
      True, if the codec allows referencing.