Package net.sf.json.processors
Class JsDateJsonValueProcessor
java.lang.Object
net.sf.json.processors.JsDateJsonValueProcessor
- All Implemented Interfaces:
JsonValueProcessor
Transforms a java.util.Date property into a JSONObject ideal for JsDate
conversion
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Object
process
(Object value, JsonConfig jsonConfig) processArrayValue
(Object value, JsonConfig jsonConfig) Processes the value an returns a suitable JSON value.processObjectValue
(String key, Object value, JsonConfig jsonConfig) Processes the value an returns a suitable JSON value.
-
Field Details
-
processor
-
-
Constructor Details
-
JsDateJsonValueProcessor
public JsDateJsonValueProcessor()
-
-
Method Details
-
processArrayValue
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
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
-
process
-