Package jadex.binary

Class SimpleDateFormatCodec

All Implemented Interfaces:
IDecoderHandler, jadex.common.transformation.traverser.ITraverseProcessor

public class SimpleDateFormatCodec extends BeanCodec
Codec for encoding and decoding java.text.SimpleDateFormat objects.
  • Field Details

    • intro

      protected jadex.common.transformation.traverser.IBeanIntrospector intro
      Bean introspector for inspecting beans.
  • Constructor Details

    • SimpleDateFormatCodec

      public SimpleDateFormatCodec()
  • Method Details

    • isApplicable

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

      public Object decode(Class<?> clazz, IDecodingContext context)
      Add pattern property with applyPattern method.
      Specified by:
      decode in interface IDecoderHandler
      Overrides:
      decode in class AbstractCodec
      Parameters:
      clazz - The class of the object.
      context - The decoding context.
      Returns:
      The decoded object.
    • 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)
      Add pattern property from toPattern method.
      Overrides:
      encode in class BeanCodec