Package net.sf.json.processors
Class JsDateJsonValueProcessor
- java.lang.Object
-
- net.sf.json.processors.JsDateJsonValueProcessor
-
- All Implemented Interfaces:
JsonValueProcessor
public class JsDateJsonValueProcessor extends Object implements JsonValueProcessor
Transforms a java.util.Date property into a JSONObject ideal for JsDate conversion- Author:
- Andres Almiray
-
-
Constructor Summary
Constructors Constructor Description JsDateJsonValueProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
processArrayValue(Object value, JsonConfig jsonConfig)
Processes the value an returns a suitable JSON value.Object
processObjectValue(String key, Object value, JsonConfig jsonConfig)
Processes the value an returns a suitable JSON value.
-
-
-
Method Detail
-
processArrayValue
public Object processArrayValue(Object value, JsonConfig jsonConfig)
Description copied from interface:JsonValueProcessor
Processes the value an returns a suitable JSON value.- Specified by:
processArrayValue
in interfaceJsonValueProcessor
- Parameters:
value
- the input value- Returns:
- a valid JSON value that represents the input value
-
processObjectValue
public Object processObjectValue(String key, Object value, JsonConfig jsonConfig)
Description copied from interface:JsonValueProcessor
Processes the value an returns a suitable JSON value.- Specified by:
processObjectValue
in interfaceJsonValueProcessor
- Parameters:
key
- the name of the propertyvalue
- the value of the property- Returns:
- a valid JSON value that represents the input property
-
-