Class JsDateJsonValueProcessor

  • All Implemented Interfaces:
    JsonValueProcessor

    public class JsDateJsonValueProcessor
    extends java.lang.Object
    implements JsonValueProcessor
    Transforms a java.util.Date property into a JSONObject ideal for JsDate conversion
    Author:
    Andres Almiray
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object processArrayValue​(java.lang.Object value, JsonConfig jsonConfig)
      Processes the value an returns a suitable JSON value.
      java.lang.Object processObjectValue​(java.lang.String key, java.lang.Object value, JsonConfig jsonConfig)
      Processes the value an returns a suitable JSON value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsDateJsonValueProcessor

        public JsDateJsonValueProcessor()
    • Method Detail

      • processArrayValue

        public java.lang.Object processArrayValue​(java.lang.Object value,
                                                  JsonConfig jsonConfig)
        Description copied from interface: JsonValueProcessor
        Processes the value an returns a suitable JSON value.
        Specified by:
        processArrayValue in interface JsonValueProcessor
        Parameters:
        value - the input value
        Returns:
        a valid JSON value that represents the input value
      • processObjectValue

        public java.lang.Object processObjectValue​(java.lang.String key,
                                                   java.lang.Object value,
                                                   JsonConfig jsonConfig)
        Description copied from interface: JsonValueProcessor
        Processes the value an returns a suitable JSON value.
        Specified by:
        processObjectValue in interface JsonValueProcessor
        Parameters:
        key - the name of the property
        value - the value of the property
        Returns:
        a valid JSON value that represents the input property