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
- Author:
- Andres Almiray aalmiray@users.sourceforge.net
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocessArrayValue(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.
-
Constructor Details
-
JsDateJsonValueProcessor
public JsDateJsonValueProcessor()
-
-
Method Details
-
processArrayValue
Description copied from interface:JsonValueProcessorProcesses the value an returns a suitable JSON value.- Specified by:
processArrayValuein interfaceJsonValueProcessor- Parameters:
value- the input value- Returns:
- a valid JSON value that represents the input value
-
processObjectValue
Description copied from interface:JsonValueProcessorProcesses the value an returns a suitable JSON value.- Specified by:
processObjectValuein interfaceJsonValueProcessor- Parameters:
key- the name of the propertyvalue- the value of the property- Returns:
- a valid JSON value that represents the input property
-