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 Objectprocess(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: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
-
process
-