Class BsonEncodingStringToDateTransformer

java.lang.Object
org.ikasan.component.endpoint.mongo.encoding.BsonEncodingStringToDateTransformer
All Implemented Interfaces:
org.bson.Transformer

public class BsonEncodingStringToDateTransformer extends Object implements org.bson.Transformer
Transforms String values that match a date or date time regex to a java.util.Date type
Author:
Ikasan Development Team
  • Field Details

    • BSON_TRANSFORMER_DEFAULT_DATE_REG_EXP_STR

      public static final String BSON_TRANSFORMER_DEFAULT_DATE_REG_EXP_STR
      the default date regular expression
      See Also:
    • BSON_TRANSFORMER_DEFAULT_DATE_TIME_REG_EXP_STR

      public static final String BSON_TRANSFORMER_DEFAULT_DATE_TIME_REG_EXP_STR
      the default date time regular expression
      See Also:
  • Constructor Details

    • BsonEncodingStringToDateTransformer

      public BsonEncodingStringToDateTransformer()
  • Method Details

    • transform

      public Object transform(Object o)
      Specified by:
      transform in interface org.bson.Transformer
    • setDateRegExp

      public void setDateRegExp(Pattern dateRegExp)
    • setDateTimeRegExp

      public void setDateTimeRegExp(Pattern dateTimeRegExp)
    • setDateFormatString

      public void setDateFormatString(String dateFormatString)
    • setDateTimeFormatString

      public void setDateTimeFormatString(String dateTimeFormatString)
    • toString

      public String toString()
      Overrides:
      toString in class Object